Skip to content

Commit ee3f4e0

Browse files
committed
docs/Makefile: allow build without Conda environment
1 parent 35f75aa commit ee3f4e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ SPHINXPROJ = SphinxContribHDLDiagramsDocs
2626
SOURCEDIR = .
2727
BUILDDIR = _build
2828

29+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -T -D language=en $(SPHINXOPTS) .
30+
2931
# Put it first so that "make" without argument is like "make help".
3032
help:
3133
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -49,6 +51,9 @@ env:
4951
source env/bin/activate; conda config --system --add pkgs_dirs $(PWD)/env/pkgs
5052
source env/bin/activate; conda env update --name base --file ../environment.yml
5153

54+
html:
55+
sphinx-build -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
56+
5257
.PHONY: env
5358

5459
# Catch-all target: route all unknown targets to Sphinx using the new

0 commit comments

Comments
 (0)