fix(docs): multiversion command
This commit is contained in:
parent
2ed91f6a74
commit
c522b17c88
2 changed files with 2 additions and 2 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -101,7 +101,7 @@ jobs:
|
||||||
- name: Build Python package
|
- name: Build Python package
|
||||||
run: maturin develop --release --manifest-path pyargus/Cargo.toml
|
run: maturin develop --release --manifest-path pyargus/Cargo.toml
|
||||||
- name: Build HTML docs
|
- name: Build HTML docs
|
||||||
run: sphinx-multiversion -b html docs _site
|
run: sphinx-multiversion docs _site -b html
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
|
if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ def docs(session: nox.Session):
|
||||||
session.install("sphinx-autoapi", "sphinx-multiversion")
|
session.install("sphinx-autoapi", "sphinx-multiversion")
|
||||||
with session.chdir(CURRENT_DIR / "pyargus"):
|
with session.chdir(CURRENT_DIR / "pyargus"):
|
||||||
session.install("-e", ".")
|
session.install("-e", ".")
|
||||||
session.run("sphinx-multiversion", "-b", "html", "docs", "_site")
|
session.run("sphinx-multiversion", "docs", "_site", "-b", "html")
|
||||||
|
|
||||||
|
|
||||||
@nox.session(tags=["style", "fix", "rust"], python=False)
|
@nox.session(tags=["style", "fix", "rust"], python=False)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue