Skip to content

Commit

Permalink
adding noxfile for docs and some dependencies. Test1
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillermoFidalgo committed Apr 23, 2024
1 parent 94a1f6c commit 3d41cff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build
path: docs/build/html
name: github-pages


Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py → docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../src"))
sys.path.insert(0, os.path.abspath("../../src"))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down
File renamed without changes.
8 changes: 7 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,10 @@ def docs(session: nox.Session) -> None:
session.install(".[docs]")
session.install("sphinx_rtd_theme")
session.chdir("docs")
session.run("sphinx-build", "-M", "html", ".", "build")
session.run("sphinx-build", "-M", "html", "source/", "build")

@nox.session
def serve(session: nox.Session) -> None:
docs(session)
print("Launching docs at http://localhost:8000/ - use Ctrl-C to quit")
session.run("python", "-m", "http.server", "8000", "-d", "build/html")

0 comments on commit 3d41cff

Please sign in to comment.