Skip to content

Commit

Permalink
docs: Use furo
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 14, 2021
1 parent 662538f commit 5f79fb6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
11 changes: 11 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
python:
install:
- path: .
- requirements: docs/requirements.txt
sphinx:
fail_on_warning: true
39 changes: 18 additions & 21 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
import os
import sys

sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath(".."))


# -- Project information -----------------------------------------------------

project = 'OCDS Merge'
copyright = '2019, Open Contracting Partnership'
author = 'Open Contracting Partnership'
project = "OCDS Merge"
copyright = "2019, Open Contracting Partnership"
author = "Open Contracting Partnership"

# The short X.Y version
version = '0.6.6'
version = "0.6.6"
# The full version, including alpha/beta/rc tags
release = version

Expand All @@ -37,25 +37,26 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
]

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

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'default'
html_theme = "furo"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand All @@ -65,17 +66,13 @@

# -- Extension configuration -------------------------------------------------

# Needed for ReadTheDocs (Sphinx 1.8).
master_doc = 'index'

autodoc_default_options = {
'members': None,
"members": None,
"member-order": "bysource",
}
autodoc_member_order = 'bysource'

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
autodoc_typehints = "description"
autodoc_type_aliases = {}

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
furo

0 comments on commit 5f79fb6

Please sign in to comment.