We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4ceb09 + 96bdb8f commit ac3566aCopy full SHA for ac3566a
scripts/generate.sh
@@ -73,7 +73,11 @@ for branch in "${branches_to_process[@]}" ; do
73
else
74
# number of path segments to throw away by tar: content/en/x.y => 3
75
strip_count=3
76
- src_section=docs
+ if git ls-tree -d "$branch" -- "content/en/docs" | grep -q "content/en/docs"; then
77
+ src_section=docs
78
+ else
79
+ src_section=latest
80
+ fi
81
fi
82
if [ "$target_section" == "$current_section" ] ; then
83
# copy the current docs to proper section
0 commit comments