Skip to content

Commit 2c47601

Browse files
committed
Attempt to fix docs
1 parent ccd79c3 commit 2c47601

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

.github/workflows/pages.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,27 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3
10+
1011
- uses: actions/setup-python@v3
12+
with:
13+
python-version: '3.10'
14+
1115
- name: Install dependencies
1216
run: |
17+
pip install --upgrade pip
1318
pip install sphinx sphinx_rtd_theme
19+
pip install -e .
20+
1421
- name: Sphinx build
1522
run: |
16-
sphinx-build docs _build
23+
cd docs
24+
make html
25+
1726
- name: Deploy
1827
uses: peaceiris/actions-gh-pages@v3
1928
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
2029
with:
2130
publish_branch: gh-pages
2231
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: _build/
24-
force_orphan: true
32+
publish_dir: docs/_build/html
33+
force_orphan: true

docs/conf.py

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,39 @@
99
import sys
1010
import os
1111

12-
sys.path.insert(0, os.path.abspath('..'))
12+
sys.path.insert(0, os.path.abspath(".."))
1313

14-
project = 'Implicit Filter'
15-
copyright = '2025, Kacper Nowak'
16-
author = 'Kacper Nowak'
14+
project = "Implicit Filter"
15+
copyright = "2025, Kacper Nowak"
16+
author = "Kacper Nowak"
1717

1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2020

21+
autodoc_mock_imports = ["numpy", "scipy", "xarray", "jax", "cupy", "matplotlib"]
22+
2123
extensions = [
22-
'sphinx.ext.todo',
23-
'sphinx.ext.viewcode',
24-
'sphinx.ext.autodoc',
25-
'sphinx.ext.githubpages',
26-
'sphinx_rtd_theme',
27-
'sphinx.ext.napoleon'
24+
"sphinx.ext.todo",
25+
"sphinx.ext.viewcode",
26+
"sphinx.ext.autodoc",
27+
"sphinx.ext.githubpages",
28+
"sphinx_rtd_theme",
29+
"sphinx.ext.napoleon",
2830
]
2931

30-
source_suffix = '.rst'
31-
master_doc = 'index'
32-
language = 'en'
33-
pygments_style = 'sphinx'
34-
35-
apidoc_module_dir = './src/implicit_filter'
36-
apidoc_output_dir = './_build/'
37-
templates_path = ['_templates']
38-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
32+
source_suffix = ".rst"
33+
master_doc = "index"
34+
language = "en"
35+
pygments_style = "sphinx"
3936

37+
apidoc_module_dir = "./src/implicit_filter"
38+
apidoc_output_dir = "./_build/"
39+
templates_path = ["_templates"]
40+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4041

4142

4243
# -- Options for HTML output -------------------------------------------------
4344
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
4445

45-
html_theme = 'sphinx_rtd_theme'
46-
html_static_path = ['_static']
46+
html_theme = "sphinx_rtd_theme"
47+
html_static_path = ["_static"]

0 commit comments

Comments
 (0)