Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamc committed Oct 24, 2024
1 parent 5fc3d4a commit 6e2f242
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,37 @@ format: format-black format-isort
tests:
$(PYTEST) ${TESTS_DIR}

# Launch the docs, executing code blocks and examples
docs-full:
$(PYTHON) -m webbrowser -t "http://127.0.0.1:8000/"
SMAC_DOC_RENDER_EXAMPLES=all \
SMAC_DOCS_OFFLINE=true \
SMAC_EXEC_DOCS=true \
mkdocs serve --watch-theme

# Launch the docs and execute code blocks
docs-code:
$(PYTHON) -m webbrowser -t "http://127.0.0.1:8000/"
SMAC_DOCS_OFFLINE=true \
SMAC_EXEC_DOCS=true \
SMAC_DOC_RENDER_EXAMPLES=false \
mkdocs serve --watch-theme

# Launch the docs but dont run code examples
docs:
$(PYTHON) -m webbrowser -t "http://127.0.0.1:8000/"
$(PYTHON) -m mkdocs serve --clean --watch-theme
SMAC_DOCS_OFFLINE=true \
SMAC_EXEC_DOCS=false \
SMAC_DOC_RENDER_EXAMPLES=false \
mkdocs serve --watch-theme
# https://github.com/pawamoy/markdown-exec/issues/19

# Build a distribution in ./dist
build:
$(PYTHON) setup.py sdist

clean: clean-build clean-docs clean-data

clean-docs:
$(MAKE) -C ${DOCDIR} clean

clean-build:
$(PYTHON) setup.py clean
rm -rf ${DIST}
Expand Down

0 comments on commit 6e2f242

Please sign in to comment.