diff options
author | Colin Watson <cjwatson@debian.org> | 2023-06-28 22:44:06 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2023-06-28 22:44:06 +0100 |
commit | 0f96ae90f194236823aa97e709f6b4935fbd69b3 (patch) | |
tree | 6558626ee51d81a80475a45ec809d8b0cabfbe50 /docs | |
parent | be15a5ec8a45c072c2262e3a7ce598004f8739cf (diff) |
New upstream version 2.0.0
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 20 | ||||
-rw-r--r-- | docs/index.rst | 2 |
2 files changed, 9 insertions, 13 deletions
diff --git a/docs/conf.py b/docs/conf.py index af0256c..2169b97 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -import os +import sphinx_py3doc_enhanced_theme extensions = [ 'autoapi.extension', @@ -19,10 +16,10 @@ autoapi_dirs = ['../src'] source_suffix = '.rst' master_doc = 'index' project = 'tblib' -year = '2013-2020' +year = '2013-2022' author = 'Ionel Cristian Mărieș' -copyright = '{0}, {1}'.format(year, author) -version = release = '1.7.0' +copyright = f'{year}, {author}' +version = release = '2.0.0' pygments_style = 'trac' templates_path = ['.'] @@ -30,20 +27,19 @@ extlinks = { 'issue': ('https://github.com/ionelmc/python-tblib/issues/%s', '#'), 'pr': ('https://github.com/ionelmc/python-tblib/pull/%s', 'PR #'), } -import sphinx_py3doc_enhanced_theme -html_theme = "sphinx_py3doc_enhanced_theme" +html_theme = 'sphinx_py3doc_enhanced_theme' html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path()] html_theme_options = { - 'githuburl': 'https://github.com/ionelmc/python-tblib/' + 'githuburl': 'https://github.com/ionelmc/python-tblib/', } html_use_smartypants = True html_last_updated_fmt = '%b %d, %Y' html_split_index = False html_sidebars = { - '**': ['searchbox.html', 'globaltoc.html', 'sourcelink.html'], + '**': ['searchbox.html', 'globaltoc.html', 'sourcelink.html'], } -html_short_title = '%s-%s' % (project, version) +html_short_title = f'{project}-{version}' napoleon_use_ivar = True napoleon_use_rtype = False diff --git a/docs/index.rst b/docs/index.rst index e55d633..040ea20 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,6 +9,7 @@ Contents installation usage contributing + autoapi/index authors changelog @@ -18,4 +19,3 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` * :ref:`search` - |