mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Further additions to the theme
This commit is contained in:
parent
ccab070776
commit
310eeb0fe5
4 changed files with 53 additions and 22 deletions
13
docs/source/_templates/localtoc.html
Normal file
13
docs/source/_templates/localtoc.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{#
|
||||
basic/localtoc.html
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sphinx sidebar template: local table of contents.
|
||||
|
||||
:copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
:license: BSD, see LICENSE for details.
|
||||
#}
|
||||
{%- if display_toc %}
|
||||
<p><h3><a href="{{ pathto(master_doc) }}">{{ _('Table of Contents') }}</a></h3>
|
||||
{{ toc }}
|
||||
{%- endif %}
|
||||
13
docs/source/_templates/sourcelink.html
Normal file
13
docs/source/_templates/sourcelink.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{#
|
||||
Page source link
|
||||
|
||||
#}
|
||||
{%- if show_source and has_source and sourcename %}
|
||||
<div role="note" aria-label="source link">
|
||||
<!--h3>{{ _('This Page') }}</h3-->
|
||||
<ul class="this-page-menu">
|
||||
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
|
||||
rel="nofollow">{{ _('Show Page Source') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
|
@ -65,6 +65,22 @@ autosectionlabel_prefix_document = True
|
|||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
# 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".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Custom extras for sidebar
|
||||
html_sidebars = {
|
||||
'**': [
|
||||
"searchbox.html",
|
||||
"localtoc.html",
|
||||
# "globaltoc.html",
|
||||
"relations.html",
|
||||
"sourcelink.html",
|
||||
"versioning.html",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
# napoleon Google-style docstring parser
|
||||
|
|
@ -100,6 +116,7 @@ autodoc_default_options = {
|
|||
"special-members": "__init__",
|
||||
}
|
||||
|
||||
|
||||
def autodoc_skip_member(app, what, name, obj, skip, options):
|
||||
if _no_autodoc:
|
||||
return True
|
||||
|
|
@ -115,17 +132,6 @@ def autodoc_skip_member(app, what, name, obj, skip, options):
|
|||
#
|
||||
html_theme = 'alabaster'
|
||||
|
||||
# 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".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Custom extras for sidebar
|
||||
# html_sidebars = {
|
||||
# '**': [
|
||||
# "versioning.html"
|
||||
# ]
|
||||
# }
|
||||
|
||||
# sphinx-multiversion config
|
||||
|
||||
|
|
@ -147,10 +153,10 @@ def url_resolver(url):
|
|||
return _github_doc_root + url
|
||||
|
||||
|
||||
|
||||
# dynamic setup
|
||||
|
||||
auto_toc_sections = ["Contents", "Toc"]
|
||||
auto_toc_sections = ["Contents", "Toc", "Index"]
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.connect("autodoc-skip-member", autodoc_skip_member)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
# Home
|
||||
|
||||
# Evennia Documentation
|
||||
|
||||
This is the manual of [Evennia](http://www.evennia.com), the open source Python `MU*` creation system.
|
||||
|
|
@ -11,14 +9,15 @@ suggestion box][form]!
|
|||
There is [a lengthier introduction](Evennia-Introduction) to read. You might also want to read about
|
||||
[how to get and give help](how-to-get-and-give-help).
|
||||
|
||||
# Contents
|
||||
# Index
|
||||
|
||||
- The [Getting Started](Getting-Started) page helps installing and starting Evennia for the first time.
|
||||
- The [Admin Docs](Administrative-Docs) covers running and maintaining an Evennia server.
|
||||
- The [Builder Docs](Builder-Docs) helps for starting to build a game world using Evennia.
|
||||
- The [Developer Central](Developer-Central) describes how Evennia works and is used by coders.
|
||||
- The [Tutorials & Examples](Tutorials) contains help pages on a step-by-step or tutorial format.
|
||||
- The [API](api/evennia-api) documentation is created from the latest source code.
|
||||
* [Getting Started](Getting-Started) page helps installing and starting Evennia for the first time.
|
||||
* [Admin Docs](Administrative-Docs) covers running and maintaining an Evennia server.
|
||||
* [Builder Docs](Builder-Docs) helps for starting to build a game world using Evennia.
|
||||
* [Developer Central](Developer-Central) describes how Evennia works and is used by coders.
|
||||
* [Tutorials & Examples](Tutorials) contains help pages on a step-by-step or tutorial format.
|
||||
* [API](api/evennia-api) documentation is created from the latest source code.
|
||||
* [Document index](toc)
|
||||
|
||||
[search]: https://www.google.com/cse/publicurl?cx=010440404980795145992:6ztkvqc46je
|
||||
[group]: https://groups.google.com/forum/#%21forum/evennia
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue