Skip to content

Commit

Permalink
Introduce _ghpages to hold the non-Sphinx static files
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Nov 15, 2022
1 parent 3b05576 commit 41e3423
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ clean:

build:
-mkdir -p $(BUILDDIR)
-cp "$(SOURCEDIR)/_gitignore.txt" "$(BUILDDIR)/.gitignore"
-cp "$(SOURCEDIR)/versions.json" "$(BUILDDIR)/versions.json"
-cp "$(SOURCEDIR)/index.html" "$(BUILDDIR)/index.html"
-cp "$(SOURCEDIR)/_ghpages/_gitignore.txt" "$(BUILDDIR)/.gitignore"
-cp "$(SOURCEDIR)/_ghpages/versions.json" "$(BUILDDIR)/versions.json"
-cp "$(SOURCEDIR)/_ghpages/index.html" "$(BUILDDIR)/index.html"
-touch "$(BUILDDIR)/.nojekyll"
-sphinx-build "$(SOURCEDIR)/2021.12" "$(BUILDDIR)/2021.12" $(SPHINXOPTS)
-cp -r "$(BUILDDIR)/2021.12" "$(BUILDDIR)/latest"
Expand Down
3 changes: 3 additions & 0 deletions spec/_gitignore.txt → spec/_ghpages/_gitignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#/
#
# Note this file is not intended to be a .gitignore for the main branch, but to
# be copied into gh-pages branch.

_site
build/
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 41e3423

Please sign in to comment.