Skip to content

Commit 79ee51d

Browse files
committed
Documentation, refactoring, FB4, firebird-base
1 parent 0c501f3 commit 79ee51d

25 files changed

+8533
-5013
lines changed

docs/_static/basic.css

Lines changed: 812 additions & 0 deletions
Large diffs are not rendered by default.

docs/_static/dialog-note.png

1.54 KB
Loading

docs/_static/dialog-seealso.png

1.47 KB
Loading

docs/_static/dialog-topic.png

1.87 KB
Loading

docs/_static/dialog-warning.png

1.36 KB
Loading

docs/changelog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#########
2+
Changelog
3+
#########
4+
5+
6+
Version 0.5.0
7+
=============
8+
9+
Initial release.

docs/conf.py

Lines changed: 113 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

17+
import sphinx_bootstrap_theme
1718

1819
# -- Project information -----------------------------------------------------
1920

2021
project = 'firebird-driver'
21-
copyright = '2020, Pavel Císař'
22+
copyright = '2020, The Firebird Project'
2223
author = 'Pavel Císař'
2324

2425
# The short X.Y version
@@ -55,13 +56,98 @@
5556
# This pattern also affects html_static_path and html_extra_path.
5657
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
5758

59+
default_role = 'py:obj'
5860

5961
# -- Options for HTML output -------------------------------------------------
6062

6163
# The theme to use for HTML and HTML Help pages. See the documentation for
6264
# a list of builtin themes.
6365
#
64-
html_theme = 'alabaster'
66+
#html_theme = 'alabaster'
67+
68+
html_theme = "bootstrap"
69+
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
70+
71+
# bootstrap theme config
72+
73+
# (Optional) Logo. Should be small enough to fit the navbar (ideally 24x24).
74+
# Path should be relative to the ``_static`` files directory.
75+
#html_logo = "my_logo.png"
76+
77+
# Theme options are theme-specific and customize the look and feel of a
78+
# theme further.
79+
html_theme_options = {
80+
# Navigation bar title. (Default: ``project`` value)
81+
#'navbar_title': "FDB",
82+
83+
# Tab name for entire site. (Default: "Site")
84+
'navbar_site_name': "Content",
85+
86+
# A list of tuples containing pages or urls to link to.
87+
# Valid tuples should be in the following forms:
88+
# (name, page) # a link to a page
89+
# (name, "/aa/bb", 1) # a link to an arbitrary relative url
90+
# (name, "http://example.com", True) # arbitrary absolute url
91+
# Note the "1" or "True" value above as the third argument to indicate
92+
# an arbitrary url.
93+
'navbar_links': [
94+
("Usage Guide", "usage-guide"),
95+
("Reference", "reference"),
96+
("Index", "genindex"),
97+
],
98+
99+
# Render the next and previous page links in navbar. (Default: true)
100+
#'navbar_sidebarrel': True,
101+
102+
# Render the current pages TOC in the navbar. (Default: true)
103+
#'navbar_pagenav': True,
104+
105+
# Tab name for the current pages TOC. (Default: "Page")
106+
#'navbar_pagenav_name': "Page",
107+
108+
# Global TOC depth for "site" navbar tab. (Default: 1)
109+
# Switching to -1 shows all levels.
110+
'globaltoc_depth': 3,
111+
112+
# Include hidden TOCs in Site navbar?
113+
#
114+
# Note: If this is "false", you cannot have mixed ``:hidden:`` and
115+
# non-hidden ``toctree`` directives in the same page, or else the build
116+
# will break.
117+
#
118+
# Values: "true" (default) or "false"
119+
'globaltoc_includehidden': "true",
120+
121+
# HTML navbar class (Default: "navbar") to attach to <div> element.
122+
# For black navbar, do "navbar navbar-inverse"
123+
'navbar_class': "navbar navbar-inverse",
124+
125+
# Fix navigation bar to top of page?
126+
# Values: "true" (default) or "false"
127+
'navbar_fixed_top': "true",
128+
129+
# Location of link to source.
130+
# Options are "nav" (default), "footer" or anything else to exclude.
131+
'source_link_position': "none",
132+
133+
# Bootswatch (http://bootswatch.com/) theme.
134+
#
135+
# Options are nothing (default) or the name of a valid theme
136+
# such as "cosmo" or "sandstone".
137+
#
138+
# The set of valid themes depend on the version of Bootstrap
139+
# that's used (the next config option).
140+
#
141+
# Currently, the supported themes are:
142+
# - Bootstrap 2: https://bootswatch.com/2
143+
# - Bootstrap 3: https://bootswatch.com/3
144+
#'bootswatch_theme': "united", # cerulean, flatly, lumen, materia, united, yeti
145+
'bootswatch_theme': "cerulean",
146+
147+
# Choose Bootstrap version.
148+
# Values: "3" (default) or "2" (in quotes)
149+
'bootstrap_version': "2",
150+
}
65151

66152
# Add any paths that contain custom static files (such as style sheets) here,
67153
# relative to this directory. They are copied after the builtin static files,
@@ -71,10 +157,34 @@
71157

72158
# -- Extension configuration -------------------------------------------------
73159

160+
# Autodoc options
161+
# ---------------
162+
autodoc_default_options = {
163+
'content': 'both',
164+
'members': True,
165+
'member-order': 'groupwise',
166+
'undoc-members': True,
167+
'exclude-members': '__weakref__',
168+
'show-inheritance': True,
169+
'no-inherited-members': True,
170+
}
171+
set_type_checking_flag = True
172+
#always_document_param_types = True
173+
174+
# Napoleon options
175+
# ----------------
176+
napoleon_include_init_with_doc = True
177+
napoleon_include_private_with_doc = True
178+
napoleon_include_special_with_doc = True
179+
napoleon_use_admonition_for_examples = False
180+
napoleon_use_admonition_for_notes = True
181+
napoleon_use_admonition_for_references = True
182+
napoleon_use_ivar = True
183+
74184
# -- Options for intersphinx extension ---------------------------------------
75185

76186
# Example configuration for intersphinx: refer to the Python standard library.
77-
intersphinx_mapping = {'https://docs.python.org/3/': None}
187+
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
78188

79189
# -- Options for todo extension ----------------------------------------------
80190

0 commit comments

Comments
 (0)