Skip to content

Commit 83747a2

Browse files
committed
Fix docs generation
1 parent f4397f8 commit 83747a2

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

docs/docs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
DOCS=$(dirname "$0")
44

5-
sphinx-apidoc -f -d 1 -o $DOCS/source $DOCS/../algolib
6-
sphinx-build -b html $DOCS/source $DOCS/build
5+
find source -name '*.rst' -type f ! -name 'index.rst' -exec rm {} +
6+
sphinx-apidoc -f -e -d 2 -o $DOCS/source $DOCS/../algolib
7+
sphinx-build -b html $DOCS/source $DOCS/build/docs -a

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# For the full list of built-in configuration values, see the documentation:
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55

6+
import os
7+
import sys
8+
9+
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
10+
sys.path.insert(0, basedir)
11+
612
# -- Project information -----------------------------------------------------
713
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
814

@@ -21,5 +27,5 @@
2127
# -- Options for HTML output -------------------------------------------------
2228
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2329

24-
html_theme = 'alabaster'
30+
html_theme = 'agogo'
2531
html_static_path = ['_static']

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Welcome to AlgoLib's documentation!
22
===================================
33

44
.. toctree::
5-
:maxdepth: 1
5+
:maxdepth: 4
66
:caption: Contents:
77

88
modules

0 commit comments

Comments
 (0)