Skip to content

Commit

Permalink
ci/docs: add preview to each PR (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jun 30, 2023
1 parent 7a426b4 commit 22954dc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: RTFD Preview
on:
pull_request_target:
types:
- opened

permissions:
pull-requests: write

jobs:
documentation-links:
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "lightning-bolts"
21 changes: 11 additions & 10 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
sphinx==4.2 # fails with sphinx.ext.viewcode # fails with sphinx_paramlinks
sphinx ==6.2
recommonmark # fails with badges
mistune < 2.0
m2r # fails with multi-line text
nbsphinx>=0.8
pandoc>=1.0
docutils>=0.16
sphinxcontrib-fulltoc>=1.0
nbsphinx >0.8, <=0.9.2
pandoc >2.0, <=2.3
# docutils
sphinxcontrib-fulltoc >1.0, <=1.2.0
sphinxcontrib-mockautodoc
https://github.com/PyTorchLightning/lightning_sphinx_theme/archive/master.zip#egg=pt-lightning-sphinx-theme
sphinx-autodoc-typehints>=1.0
sphinx-paramlinks>=0.4.0
sphinx-togglebutton>=0.2
sphinx-copybutton>=0.3
sphinx-autodoc-typehints >1.0, <=1.17.1
sphinx-paramlinks >0.4.0, <=0.5.4
sphinx-togglebutton >0.2, <=0.3.2
sphinx-copybutton >0.3, <=0.5.2

pt-lightning-sphinx-theme @ https://github.com/PyTorchLightning/lightning_sphinx_theme/archive/master.zip
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

# If your documentation needs a minimal Sphinx version, state it here.

needs_sphinx = "4.2"
needs_sphinx = "6.2"

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -134,7 +134,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down

0 comments on commit 22954dc

Please sign in to comment.