Skip to content

Commit fbb2cca

Browse files
authored
maint: implementing autoapi and general maintenance (#167)
1 parent cafd321 commit fbb2cca

25 files changed

+72
-214
lines changed

doc/Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,20 @@ help:
1616
# Catch-all target: route all unknown targets to Sphinx using the new
1717
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1818
%: Makefile
19-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19+
# TODO: these lines of code until $(SPHINXBUILD) should be removed once the feature branch is merged
20+
pip freeze > temp_req.txt;
21+
@if grep -q "sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi" temp_req.txt;\
22+
then\
23+
echo found;\
24+
else\
25+
pip uninstall --yes sphinx-autoapi;\
26+
pip install "sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi@feat/single-page-stable";\
27+
fi
28+
rm temp_req.txt;\
29+
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O);
2030

2131
clean:
2232
rm -rf $(BUILDDIR)/*
23-
find . -type d -name "_autosummary" -exec rm -rf {} +
2433

2534
pdf:
2635
@$(SPHINXBUILD) -M latex "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/make.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ if "%SPHINXBUILD%" == "" (
1010
set SOURCEDIR=source
1111
set BUILDDIR=_build
1212

13+
REM TODO: these lines of code should be removed once the feature branch is merged
14+
for /f %%i in ('pip freeze ^| findstr /c:"sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi"') do set is_custom_sphinx_autoapi_installed=%%i
15+
if NOT "%is_custom_sphinx_autoapi_installed%" == "sphinx-autoapi" (
16+
pip uninstall --yes sphinx-autoapi
17+
pip install "sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi@feat/single-page-stable")
18+
REM TODO: these lines of code should be removed once the feature branch is merged
19+
1320
if "%1" == "" goto help
1421
if "%1" == "clean" goto clean
1522
if "%1" == "linkcheck" goto linkcheck

doc/source/api/ast_class.rst

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

doc/source/api/ast_functions.rst

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

doc/source/api/autogenerateddirectory.rst

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

doc/source/api/custom_functions.rst

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

doc/source/api/directory_format.rst

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

doc/source/api/download.rst

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

doc/source/api/index.rst

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

doc/source/api/load_xml_doc.rst

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

0 commit comments

Comments
 (0)