Skip to content

Commit

Permalink
docs: try autobuild for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Apr 27, 2024
1 parent f303fda commit 0ef24c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean test get-sphinx-template docs env data
.PHONY: clean test get-sphinx-template docs live-docs env data

export FREEZE_REQUIREMENTS=1
# assume you have installed need packages
Expand Down Expand Up @@ -38,6 +38,10 @@ docs: clean get-sphinx-template
# apt-get install -y texlive-latex-extra dvipng texlive-pictures texlive-fonts-recommended cm-super
cd docs && make html --debug --jobs $(nproc) SPHINXOPTS="-W --keep-going"

live-docs: get-sphinx-template
pip install -e . --quiet -r requirements/_docs.txt
cd docs && make livehtml

env:
pip install -e . -U -r requirements/_devel.txt

Expand Down
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ help:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1 change: 1 addition & 0 deletions requirements/_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ sphinx-autodoc-typehints ==1.23.0
sphinx-paramlinks ==0.6.0
sphinx-togglebutton ==0.3.2
sphinx-copybutton ==0.5.2
sphinx-autobuild ==2024.04.16

lightning >=1.8.0, <2.3.0
lightning-utilities ==0.11.2
Expand Down

0 comments on commit 0ef24c2

Please sign in to comment.