Skip to content

Commit

Permalink
Update static.yml conf.py pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
TY-Cheng committed Oct 16, 2024
1 parent 522bee1 commit 41bacc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
workflows: [Lint Pytest]
types:
- completed


# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,8 +22,8 @@ jobs:
deploy:
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.12"]

runs-on: ubuntu-latest
# Give commit access to the workflow
permissions:
Expand Down
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys
from sphinx_pyproject import SphinxConfig


sys.path.append(".")
# * load the pyproject.toml file using SphinxConfig
# * using Path for better cross-platform compatibility
try:
Expand All @@ -18,11 +19,11 @@
html_theme = config.get("html_theme", "furo")
html_title = f"{project} v{version}"
html_theme_options = {
"sidebar_hide_name": True,
"sidebar_hide_name": False,
# "light_logo": "../torchvinecopulib.png",
# "dark_logo": "../torchvinecopulib.png",
# "sticky_navigation": True,
"navigation_with_keys": True,
# "navigation_with_keys": True,
# "footer_text": f"© {copyright}",
# "navigation_depth": 4,
# "titles_only": False,
Expand Down
9 changes: 1 addition & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ classifiers = [
"Topic :: Scientific/Engineering",
]

[tool.sphinx-pyproject]
extensions = [
"sphinx.ext.githubpages",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.sphinx-pyproject.build]
[tool.sphinx-pyproject]
source-dir = "docs"
build-dir = "docs/_build"
all_files = true
Expand Down

0 comments on commit 41bacc9

Please sign in to comment.