Skip to content

Commit

Permalink
Doc test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien4193 committed Nov 16, 2022
1 parent 3b16b26 commit 6879a01
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: ubuntu-20.04
tools:
python: "3.9"

sphinx:
configuration: python/doc/source/conf.py

python:
install:
- requirements: python/requirements.txt
18 changes: 14 additions & 4 deletions python/doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import pathlib
import sys

SOURCE = pathlib.Path(__file__).parent
DOC = SOURCE.parent
PYTHON = DOC.parent

sys.path.insert(0, str(PYTHON))

import brayns

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand All @@ -26,10 +37,9 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx-jsonschema',
'sphinx.ext.autosummary'
'sphinx.ext.autosummary',
]


# Add any paths that contain templates here, relative to this directory.
templates_path = []

Expand All @@ -50,9 +60,9 @@
# built documents.
#
# The short X.Y version.
version = '3.0'
version = brayns.__version__
# The full version, including alpha/beta/rc tags.
release = f'{version}.0'
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 6879a01

Please sign in to comment.