Skip to content

Commit

Permalink
Update theme and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
chad-iris committed Aug 6, 2020
1 parent 7d73a86 commit d278d2c
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 16 deletions.
52 changes: 52 additions & 0 deletions _static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

body {
font-family: "Quattrocento Sans", Avenir, Helvetica, Arial, sans-serif;
}

.wy-side-nav-search,
.wy-side-nav-search > a,
.wy-side-nav-search > div.version,
.wy-nav-top {
color: black;
background: white;
}

.wy-menu-vertical a {
color: white;
font-weight: bold;
}

.wy-menu-vertical li.toctree-l2 a,
.wy-menu-vertical li.toctree-l3 a,
.wy-menu-vertical li.toctree-l4 a,
.wy-menu-vertical li.toctree-l5 a,
.wy-menu-vertical li.toctree-l6 a {
color: #404040;
font-weight: bold;
}

.wy-nav-side {
color: black;
background: rgb(51,123,184); /* Darker blue */
}

.wy-menu-vertical li.toctree-l1.current > a,
.wy-menu-vertical li.toctree-l1.current {
background: rgb(116,182,236); /* Medium blue */
border-bottom: rgb(116,182,236);
border-top: rgb(116,182,236);
}

.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l2.current,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a {
background: rgb(207,226,242); /* Light blue */
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3 a:hover {
background: #d6d6d6;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3.current > a {
background: white;
}
Binary file added _static/favicon.ico
Binary file not shown.
Binary file modified _static/fdsn-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions _templates/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{%- extends "sphinx_rtd_theme/breadcrumbs.html" %}

{% block breadcrumbs %}
{% endblock %}
{% block breadcrumbs_aside %}
{% endblock %}
21 changes: 11 additions & 10 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import sphinx_rtd_theme


# -- Project information -----------------------------------------------------

project = 'FDSN Documentation'
copyright = '2020, FDSN'
copyright = '2020, International FDSN'
author = 'FDSN'

# The full version, including alpha/beta/rc tags
Expand All @@ -33,6 +34,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx_rtd_theme"
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -46,20 +48,19 @@

# -- Options for HTML output -------------------------------------------------

def setup(app):
app.add_css_file('css/custom.css')

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'

html_theme_options = {
'navigation_depth': 0,
'sticky_navigation': False,
}
html_logo='_static/fdsn-logo.png'
html_theme = 'sphinx_rtd_theme'

html_logo='_static/FDSN-logo.png'
html_favicon = '_static/favicon.ico'
html_title = 'Specification'
html_search_language = 'en'
html_title = 'FDSN Documentation'
html_show_sphinx = False
#html_search_language = 'en'

# 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,
Expand Down
13 changes: 7 additions & 6 deletions index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.. FDSN Documentation documentation master file, created by
sphinx-quickstart on Mon Jul 20 15:02:00 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. FDSN Documentation documentation master file
Welcome to the FDSN's documentation
Documentation
===================================

The `International Federation of Digital Seismograph Networks
Expand All @@ -15,4 +12,8 @@ at https://www.fdsn.org/publications/.

.. toctree::
:maxdepth: 2
:caption: Contents:
:caption: Projects:

StationXML <https://docs.fdsn.org/projects/stationxml/>

FDSN home <https://www.fdsn.org/>

0 comments on commit d278d2c

Please sign in to comment.