Skip to content

Commit

Permalink
A few layout optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Nov 29, 2023
1 parent 1db5eda commit 2d64dc7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 15 deletions.
18 changes: 17 additions & 1 deletion _static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

.wy-table-responsive table p {
line-height: 22px !important;
font-size: 0.91rem !important;
font-size: 0.91rem !important;
}

.wy-table-responsive {
Expand Down Expand Up @@ -219,3 +219,19 @@ div.container > ul {
margin:0 !important;
padding: 0 1ex 0 0 !important;
}

/* Hide "On GitHub" section from versions menu */
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(2) {
display: none;
}
/* Hide the entire navigation bar at the top */
div.rst-content > div[role=navigation] {
display: none;
}
div.document h1 {
border-bottom:1px solid #ccc;
color: #3782bb;
}
div.document h2 {
color: #3782bb;
}
29 changes: 18 additions & 11 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,33 @@
source_suffix = '.rst'
master_doc = 'index'
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store', 'overlay']
html_theme = 'sphinx_rtd_theme'

extensions = [
# ... other extensions here
'versionwarning.extension',
'apiheader',
'apimember',
'apisectionannotationhack',
'sphinx_rtd_theme',
]

html_theme = "sphinx_rtd_theme"
html_theme_options = {
# Toc options
'collapse_navigation': False,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False
'titles_only': False,
'style_external_links': True,
}

html_context = {
'display_github': False
}

html_show_sourcelink = False

# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand All @@ -43,15 +59,6 @@
versionwarning_older_title = 'Warning'
versionwarning_older_message = 'This is an outdated API documentation for Thunderbird {this}. See version {newest} for the current ESR of Thunderbird.'


extensions = [
# ... other extensions here
'versionwarning.extension',
'apiheader',
'apimember',
'apisectionannotationhack',
]

def setup(app):
#app.add_javascript("custom.js")
app.add_css_file('theme_overrides.css')
6 changes: 3 additions & 3 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ as well. The APIs listed in the following table are known to work with Thunderbi
.. |identity-Description| replace:: Use the identity API to get an OAuth2 authorization code or access token, which an extension can then use to access user data from a service that supports OAuth2 access (such as Google or Facebook).
.. |idle-Description| replace:: Find out when the user's system is idle, locked, or active.
.. |privacy-Description| replace:: Access and modify various privacy-related settings.
.. |management-Description| replace:: Gets information about installed add-ons.
.. |management-Description| replace:: Gets information about installed extensions.
.. |notifications-Description| replace:: Display notifications to the user, using the underlying operating system's notification mechanism.
.. |permissions-Description| replace:: Enables extensions to request extra permissions at runtime, after they have been installed.
.. |pkcs11-Description| replace:: Enables an extension to enumerate PKCS #11 security modules and to make them accessible as sources of keys and certificates.
Expand Down Expand Up @@ -262,15 +262,15 @@ as well. The APIs listed in the following table are known to work with Thunderbi

.. toctree::
:maxdepth: 1
:caption: How To Guides
:caption: How-to guides

how-to/eventListeners
how-to/messageLists
how-to/experiments

.. toctree::
:maxdepth: 1
:caption: Changes to APIs
:caption: Changelog

changes/esr78
changes/esr91
Expand Down

0 comments on commit 2d64dc7

Please sign in to comment.