File tree Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
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 🪣
Original file line number Diff line number Diff line change 11-r ../docs.txt
2-
3- lai-sphinx-theme
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ sphinxcontrib-video ==0.2.0
1717jinja2 <3.2.0
1818
1919lightning-utilities >=0.9.0
20+
21+ lai-sphinx-theme
Original file line number Diff line number Diff line change 11-r ../docs.txt
22
3- lai-sphinx-theme
43tensorboard
Original file line number Diff line number Diff line change 33nbformat # used for generate empty notebook
44ipython[notebook] <8.7.0
55setuptools<58.0 # workaround for `error in ipython setup command: use_2to3 is invalid.`
6- lai-sphinx-theme
6+
7+ -r ../../_notebooks/.actions/requires.txt
You can’t perform that action at this time.
0 commit comments