Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Implement Graylog logo, update sidebar colors and automatically update current year in copyright. (3.2) #1066

Merged
merged 2 commits into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
.wy-nav-content {
max-width: 1000px !important;
}

/* override logo height */
.wy-side-nav-search > a img.logo {
height: 40px;
}
12 changes: 8 additions & 4 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import sys
import os
import datetime

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

Expand Down Expand Up @@ -57,7 +58,7 @@

# General information about the project.
project = u'Graylog'
copyright = u'2015-2020 Graylog, Inc.'
copyright = (u'2015-%d Graylog, Inc.' % datetime.date.today().year)

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -119,7 +120,10 @@
# 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 = {
'style_nav_header_background': '#1F1F1F',
'logo_only': True,
}

# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
Expand All @@ -133,7 +137,7 @@

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
html_logo = 'images/logo.svg'

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
Expand Down Expand Up @@ -296,7 +300,7 @@
epub_title = u'Graylog'
epub_author = u'Graylog, Inc.'
epub_publisher = u'Graylog, Inc.'
epub_copyright = u'2015-2020 Graylog, Inc.'
epub_copyright = (u'2015-%d Graylog, Inc.' % datetime.date.today().year)

# The basename for the epub file. It defaults to the project name.
#epub_basename = u'Graylog'
Expand Down
35 changes: 35 additions & 0 deletions images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.