Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SaketKulkarni121 authored Jun 3, 2024
1 parent 01b521d commit f6092fa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions documentation/html/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,23 @@ help:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# manual
github_docs:
cd documentation/html
rm -rf build
mkdir ./build && touch ./build/.nojekyll
@cp -a source/index.rst /source/index.rst
@make -C ./build html
@cp -a ./build/_build/html/. ./docs

# automatic github action push or pull request
github_action_docs:
cd documentation/html
rm -rf build
mkdir build && touch build/.nojekyll
@cp -a index.rst source/index.rst
rm -rf build/_build && mkdir build/_build
rm -rf build/_autosummary
pipx run poetry run sphinx-build -b html build build/_build/html
@cp -a build/_build/html/* docs

0 comments on commit f6092fa

Please sign in to comment.