Skip to content

Commit

Permalink
fix sidebar index (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagotrs committed Mar 31, 2021
1 parent 8b1eb54 commit 8d7c153
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
3 changes: 3 additions & 0 deletions _static/electrum.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.wy-side-nav-search {
background-color:#343131;
}
21 changes: 17 additions & 4 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import sphinx_rtd_theme

# -- General configuration ------------------------------------------------

Expand All @@ -31,7 +31,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
extensions = ["sphinx_rtd_theme"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -83,19 +83,32 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'default'
html_theme = "sphinx_rtd_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'collapse_navigation': False,
'display_version': False,
'logo_only': True,
}

html_logo = 'png/electrum.png'

# 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']


html_context = {
'css_files': [
'_static/electrum.css'
]
}

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
Expand Down
14 changes: 4 additions & 10 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ Welcome to the Electrum Documentation!

Electrum is a lightweight Bitcoin wallet.

GUI and beginners
-----------------

.. toctree::
:maxdepth: 2
:caption: GUI and beginners

faq
invoices
Expand All @@ -22,34 +20,30 @@ GUI and beginners
hardware-linux
tails

Advanced users
--------------

.. toctree::
:maxdepth: 2
:caption: Advanced users

coldstorage_cmdline
hardfork
tor
gpg-check

Daemon and Command Line
-----------------------

.. toctree::
:maxdepth: 2
:caption: Daemon and Command Line

cmdline
ssl
merchant
watchtower
jsonrpc

For developers
--------------

.. toctree::
:maxdepth: 2
:caption: For developers

console
spv
Expand Down
Binary file added png/electrum.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8d7c153

Please sign in to comment.