From b5426903f12fab19081103a3b7eeb53d4d85bee0 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Fri, 22 Sep 2023 08:45:53 +0200 Subject: [PATCH] adding `make docs-{app,fabric,pytorch}` (#18611) --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fee23e40cb..8694ac38a6 100644 --- a/Makefile +++ b/Makefile @@ -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)