Skip to content

Commit b8effff

Browse files
changes in the autoapi layout
1 parent 2ace9c0 commit b8effff

File tree

3 files changed

+9
-28
lines changed

3 files changed

+9
-28
lines changed

.ci/build_doc.bat

Lines changed: 0 additions & 28 deletions
This file was deleted.

doc/make.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ if "%SPHINXBUILD%" == "" (
99
)
1010
set SOURCEDIR=source
1111
set BUILDDIR=build
12+
set AUTOAPI_OUTDIR=source\api
1213

1314
if "%1" == "" goto help
1415
if "%1" == "clean" goto clean
1516

1617
%SPHINXBUILD% >NUL 2>NUL
18+
1719
if errorlevel 9009 (
1820
echo.
1921
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
@@ -34,6 +36,9 @@ echo.Cleaning files form previous build...
3436
IF EXIST "build" (
3537
rmdir "build" /s /q
3638
)
39+
IF EXIST "source\api" (
40+
rmdir "source\api" /s /q
41+
)
3742
IF EXIST "source\images\auto-generated" (
3843
rmdir "source\images\auto-generated" /s /q
3944
)

doc/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
7575
# ones.
7676
extensions = [
77+
"ansys_sphinx_theme.extension.autoapi",
7778
"sphinx.ext.autosummary",
7879
"enum_tools.autoenum",
7980
"nbsphinx",
@@ -197,6 +198,9 @@ def reset_servers(gallery_conf, fname, when):
197198
html_favicon = ansys_favicon
198199
html_theme_options = {
199200
"github_url": "https://github.com/ansys/pydpf-core",
201+
"ansys_sphinx_theme_autoapi": {
202+
"project": project,
203+
},
200204
"show_prev_next": False,
201205
"show_breadcrumbs": True,
202206
"additional_breadcrumbs": [

0 commit comments

Comments
 (0)