diff --git a/Makefile b/Makefile index 78103d36f00..3a37d20da25 100644 --- a/Makefile +++ b/Makefile @@ -80,10 +80,11 @@ multiversion: Makefile sphinx-multiversion $(SPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html @echo Step 3: Deleting temporary commits ./make_help_scripts/delete_tmp_commits.py - @echo Step 4: Create correct index + @echo Step 4: Create correct index + legacy master version @echo "" > "$(BUILDDIR)"/html/index.html -# legacy, renaming Rolling version from "master" to "rolling" - @mkdir -p "$(BUILDDIR)"/html/master && echo "" > "$(BUILDDIR)"/html/master/index.html +# legacy, renamed Rolling version from "master" to "rolling" + @cp -r "$(BUILDDIR)"/html/rolling/ "$(BUILDDIR)"/html/master + @echo "" > "$(BUILDDIR)"/html/master/index.html multiversion-with-errors: Makefile @echo Building multi version documentation without API @@ -93,10 +94,11 @@ multiversion-with-errors: Makefile sphinx-multiversion $(SPHINXOPTS) -W --keep-going $(SOURCEDIR) $(BUILDDIR)/html @echo Step 3: Deleting temporary commits ./make_help_scripts/delete_tmp_commits.py - @echo Step 4: Create correct index + @echo Step 4: Create correct index + legacy master version @echo "" > "$(BUILDDIR)"/html/index.html -# legacy, renaming Rolling version from "master" to "rolling" - @mkdir -p "$(BUILDDIR)"/html/master && echo "" > "$(BUILDDIR)"/html/master/index.html +# legacy, renamed Rolling version from "master" to "rolling" + @cp -r "$(BUILDDIR)"/html/rolling/ "$(BUILDDIR)"/html/master + @echo "" > "$(BUILDDIR)"/html/master/index.html multiversion-with-api: Makefile @echo Building multi version documentation with API @@ -110,10 +112,11 @@ multiversion-with-api: Makefile ./make_help_scripts/delete_sub_repos.py @echo Step 5: Building multiversion API ./make_help_scripts/create_api_multi_version.py - @echo Step 6: Create correct index + @echo Step 4: Create correct index + legacy master version @echo "" > "$(BUILDDIR)"/html/index.html -# legacy, renaming Rolling version from "master" to "rolling" - @mkdir -p "$(BUILDDIR)"/html/master && echo "" > "$(BUILDDIR)"/html/master/index.html +# legacy, renamed Rolling version from "master" to "rolling" + @cp -r "$(BUILDDIR)"/html/rolling/ "$(BUILDDIR)"/html/master + @echo "" > "$(BUILDDIR)"/html/master/index.html .PHONY: help Makefile html-with-errors html-with-api multiversion multiversion-with-api multiversion-with-errors html-all-subrepos html-all-subrepos-with-api html-all-subrepos-with-errors linkcheck-all-subrepos-with-api