1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE.txt, distributed with this software.
# ----------------------------------------------------------------------------
# Configuration file for the Sphinx documentation builder.
from datetime import datetime
# -- Project information -----------------------------------------------------
project = 'scikit-bio'
author = f'{project} development team'
copyright = f'2014-{datetime.now().year}, {author}'
# -- General configuration ---------------------------------------------------
extensions = [
'sphinx.ext.extlinks',
'sphinx.ext.autosectionlabel',
'sphinx_design',
'sphinx_copybutton',
'sphinxcontrib.youtube',
'sphinx_sitemap',
]
root_doc = 'index'
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
html_title = project
html_short_title = project
html_baseurl = 'https://scikit.bio'
sitemap_url_scheme = '/{link}'
html_logo = '_static/img/logo.svg'
html_favicon = '_static/favicon.ico'
# static files
html_static_path = ['_static']
html_css_files = ['css/style.css']
# do not show side bar with section navigation
html_sidebars = {"**": []}
# do not show source links
html_show_sourcelink = False
# link to document:section
autosectionlabel_prefix_document = True
# -- External links ----------------------------------------------------------
github_url = f'https://github.com/{project}/{project}'
twitter_url = 'https://twitter.com/scikitbio'
extlinks = {
'home': (f'{html_baseurl}/%s', None),
'repo': (f'{github_url}/%s', None),
'docs': (f'{html_baseurl}/docs/dev/generated/skbio.%s.html', None),
}
# -- PyData Theme configuration ----------------------------------------------
# References:
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#
# references
html_theme = 'pydata_sphinx_theme'
html_theme_options = {
# logo image for light/dark modes
# image files must be placed under _static/
'logo': {
'alt_text': html_title,
'image_light': '_static/img/logo.svg',
'image_dark': '_static/img/logo_inv.svg',
},
# social media links displayed as icons
'github_url': github_url,
'twitter_url': twitter_url,
# disable prev & next buttons
'show_prev_next': False,
# disable search button
'navbar_persistent': [],
# display all header links
'header_links_before_dropdown': 7,
# footer layout
'footer_start': ['copyright'],
'footer_center': ['sphinx-version'],
'footer_end': ['theme-version'],
}
|