Skip to content

Commit

Permalink
Update make docs command (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki authored Apr 14, 2024
1 parent 72aa929 commit 9e83421
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test clean docs env data
.PHONY: clean test pull-template docs env data

export FREEZE_REQUIREMENTS=1
# assume you have installed need packages
Expand Down Expand Up @@ -28,10 +28,14 @@ test: clean env data
cd tests && python -m pytest unittests -v --cov=torchmetrics
cd tests && python -m coverage report

docs: clean
pip install -e . --quiet -r requirements/_docs.txt
pull-template:
pip install -q awscli
aws s3 sync --no-sign-request s3://sphinx-packages/ dist/

docs: clean pull-template
pip install -e . --quiet -r requirements/_docs.txt -f dist/
# apt-get install -y texlive-latex-extra dvipng texlive-pictures texlive-fonts-recommended cm-super
TOKENIZERS_PARALLELISM=false python -m sphinx -b html -W --keep-going docs/source docs/build
cd docs && make html --debug --jobs $(nproc) SPHINXOPTS="-W --keep-going"

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

0 comments on commit 9e83421

Please sign in to comment.