Skip to content

Commit

Permalink
add doc autobuild and dev target (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker authored Jul 29, 2024
1 parent 31a6498 commit 029a1a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ SPHINXBUILD = python3 -msphinx
SPHINXPROJ = Smithy
SHELL := /bin/bash

install:
install: requirements.txt
python3 -m venv build/venv
source build/venv/bin/activate && pip3 install -r requirements.txt . && pip3 install -e .
touch install

clean:
-rm -rf build/*
Expand All @@ -28,4 +29,7 @@ merge-versions:
openhtml:
open "build/html/index.html"

dev: install
@source build/venv/bin/activate && sphinx-autobuild "source-2.0" "build/2.0" $(SPHINXOPTS) $(O)

.PHONY: Makefile clean
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Sphinx-Substitution-Extensions==2022.2.16
sphinx-tabs>=3.4.4

sphinx_copybutton==0.5.0
sphinx-autobuild>=2024.4.16

0 comments on commit 029a1a8

Please sign in to comment.