adding `make docs-{app,fabric,pytorch}` (#18611)

This commit is contained in:
Jirka Borovec 2023-09-22 08:45:53 +02:00 committed by GitHub
parent 3fbf1540b0
commit b5426903f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -46,9 +46,21 @@ test: clean
python -m coverage run --source src/lightning/fabric -m pytest src/lightning/fabric tests/tests_fabric -v
python -m coverage report
docs: clean
docs: docs-pytorch
pull-template:
pip install -q awscli
aws s3 sync --no-sign-request s3://sphinx-packages/ dist/
docs-app: clean pull-template
pip install -e .[all] --quiet -r requirements/app/docs.txt -f dist/
cd docs/source-app && $(MAKE) html --jobs $(nproc)
docs-fabric: clean pull-template
pip install -e .[all] --quiet -r requirements/fabric/docs.txt -f dist/
cd docs/source-fabric && $(MAKE) html --jobs $(nproc)
docs-pytorch: clean pull-template
pip install -e .[all] --quiet -r requirements/pytorch/docs.txt -f dist/
cd docs/source-pytorch && $(MAKE) html --jobs $(nproc)