|
1 | | -# -*- coding: utf-8 -*- |
2 | | -import sys, os |
3 | | -sys.path.insert(0, os.path.abspath('.')) |
| 1 | +from datetime import date |
4 | 2 |
|
5 | | -#needs_sphinx = '1.0' |
| 3 | +project = "SphinxQL Query Builder" |
| 4 | +author = "FoolCode" |
| 5 | +copyright = f"2012-{date.today().year}, {author}" |
6 | 6 |
|
7 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] |
8 | | - |
9 | | -templates_path = ['_templates'] |
10 | | - |
11 | | -source_suffix = '.rst' |
12 | | -master_doc = 'index' |
13 | | - |
14 | | -# General information about the project. |
15 | | -project = u'SphinxQL Query Builder' |
16 | | -copyright = u'2012-2015, FoolCode' |
17 | | - |
18 | | -version = '1.0.0' |
| 7 | +# We track release notes in CHANGELOG.md and do not hardcode package versions here. |
| 8 | +version = "4.x" |
19 | 9 | release = version |
20 | 10 |
|
21 | | -exclude_patterns = ['_build', 'html', 'doctrees'] |
22 | | -add_function_parentheses = True |
23 | | -add_module_names = True |
24 | | -show_authors = False |
25 | | -pygments_style = 'sphinx' |
26 | | -modindex_common_prefix = ['foolfuuka'] |
27 | | -html_theme = 'default' |
28 | | -html_static_path = ['_static'] |
29 | | -htmlhelp_basename = 'FoolFuukaDoc' |
30 | | - |
31 | | -from sphinx.highlighting import lexers |
32 | | -from pygments.lexers.web import JsonLexer |
33 | | -from pygments.lexers.web import PhpLexer |
34 | | - |
35 | | -lexers['json'] = JsonLexer(startinline=True) |
36 | | -lexers['php'] = PhpLexer(startinline=True) |
| 11 | +extensions = [ |
| 12 | + "sphinx.ext.autodoc", |
| 13 | + "sphinx.ext.viewcode", |
| 14 | + "sphinx.ext.githubpages", |
| 15 | + "sphinx_copybutton", |
| 16 | +] |
| 17 | + |
| 18 | +templates_path = ["_templates"] |
| 19 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 20 | + |
| 21 | +source_suffix = {".rst": "restructuredtext"} |
| 22 | +root_doc = "index" |
| 23 | +language = "en" |
| 24 | + |
| 25 | +pygments_style = "sphinx" |
| 26 | +pygments_dark_style = "monokai" |
| 27 | + |
| 28 | +html_theme = "furo" |
| 29 | +html_title = "SphinxQL Query Builder Documentation" |
| 30 | +html_static_path = ["_static"] |
| 31 | +html_css_files = ["custom.css"] |
| 32 | +html_theme_options = { |
| 33 | + "source_repository": "https://github.com/FoolCode/SphinxQL-Query-Builder/", |
| 34 | + "source_branch": "master", |
| 35 | + "source_directory": "docs/", |
| 36 | + "navigation_with_keys": True, |
| 37 | +} |
| 38 | + |
| 39 | +copybutton_prompt_text = r">>> |\.\.\. |\$ " |
| 40 | +copybutton_prompt_is_regexp = True |
0 commit comments