Skip to content

Commit 9a010a5

Browse files
authored
Issue 400b: fix for documentation versioning (#531)
* add documentation versioning based on git branches * add escape characters to reg exp * fix typo * add missing index.html * add merging master to docs_stable on tag creation * fix the project path for branching end merging documentation * do not remove all versions of docs * create the docs directory if it does not exist
1 parent a64f953 commit 9a010a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Jenkinsfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ builders = pipeline_builder.createBuilders { container ->
201201
git fetch
202202
git checkout gh-pages
203203
git pull
204-
shopt -u dotglob && rm -rf ./*
205-
mkdir -p ./latest
204+
mkdir -p ./latest && shopt -u dotglob && rm -rf ./latest/*
206205
mv -f ../build/doc/build/* ./latest/
207206
mv -f ../build/doc/doxygen_html ./latest/doxygen
208207
mv -f ../build/doc/index.html ./
@@ -238,8 +237,7 @@ builders = pipeline_builder.createBuilders { container ->
238237
git fetch
239238
git checkout gh-pages
240239
git pull
241-
shopt -u dotglob && rm -rf ./*
242-
mkdir -p ./${version}
240+
mkdir -p ./${version} && shopt -u dotglob && rm -rf ./${version}/*
243241
mv -f ../build/doc/build/* ./${version}/
244242
mv -f ../build/doc/doxygen_html ./${version}/doxygen
245243
find ./ -type d -name "CMakeFiles" -prune -exec rm -rf {} \\;

0 commit comments

Comments
 (0)