Skip to content

Commit 0e04760

Browse files
authored
docs: pre-install lai sphinx theme (#18764)
1 parent 1d5851f commit 0e04760

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.github/actions/pip-wheels/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ runs:
3434
fp = 'requirements.dump'
3535
with open(fp) as fopen:
3636
lines = [ln.strip() for ln in fopen.readlines()]
37+
# prevent collisions with version appendix
3738
lines = [ln.split('+')[0] for ln in lines if '-e ' not in ln]
39+
# drop sphinx theme package
40+
lines = [ln for ln in lines if 'sphinx-theme' not in ln]
3841
with open(fp, 'w') as fopen:
3942
fopen.writelines([ln + os.linesep for ln in lines])
4043
shell: python

.github/workflows/docs-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
run: |
5858
pip install awscli
5959
aws s3 sync --no-sign-request s3://sphinx-packages/ ${PYPI_LOCAL_DIR}
60+
pip install lai-sphinx-theme -U -f ${PYPI_LOCAL_DIR}
6061
6162
- name: pip wheels cache
6263
uses: actions/cache/restore@v3
@@ -75,7 +76,6 @@ jobs:
7576
run: |
7677
mkdir -p ${PYPI_CACHE_DIR} # in case cache was not hit
7778
ls -lh ${PYPI_CACHE_DIR}
78-
mkdir -p ${PYPI_LOCAL_DIR} # in case template is not pulled
7979
pip install .[all] -U -r requirements/${{ matrix.pkg-name }}/docs.txt \
8080
-f ${PYPI_LOCAL_DIR} -f ${PYPI_CACHE_DIR} -f ${TORCH_URL}
8181
pip list
@@ -164,7 +164,7 @@ jobs:
164164
# Uploading docs to GCS, so they can be served on lightning.ai
165165
- name: Upload docs/${{ matrix.pkg-name }}/release to GCS 🪣
166166
if: startsWith(github.ref, 'refs/tags/')
167-
run: gsutil -m rsync -d -R docs/build/html/ ${GCP_TARGET}/${{ github.ref_name }}
167+
run: gsutil -m rsync -d -R docs/build/html/ ${GCP_TARGET}/${{ github.ref_name }}
168168

169169
# Uploading docs as archive to GCS, so they can be as backup
170170
- name: Upload docs as archive to GCS 🪣

requirements/app/docs.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
-r ../docs.txt
2-
3-
lai-sphinx-theme

requirements/docs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ sphinxcontrib-video ==0.2.0
1717
jinja2 <3.2.0
1818

1919
lightning-utilities >=0.9.0
20+
21+
lai-sphinx-theme

requirements/fabric/docs.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
-r ../docs.txt
22

3-
lai-sphinx-theme
43
tensorboard

requirements/pytorch/docs.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
nbformat # used for generate empty notebook
44
ipython[notebook] <8.7.0
55
setuptools<58.0 # workaround for `error in ipython setup command: use_2to3 is invalid.`
6-
lai-sphinx-theme
6+
7+
-r ../../_notebooks/.actions/requires.txt

0 commit comments

Comments
 (0)