Skip to content

Commit

Permalink
DOC: Style logo like specutils
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Dec 5, 2023
1 parent 8508eeb commit bbf377d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
Binary file added docs/_static/logo_icon.ico
Binary file not shown.
Binary file added docs/_static/logo_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/_static/specreduce.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@import url("bootstrap-astropy.css");

div.topbar a.brand {
background: transparent url("logo_icon.png") no-repeat 8px 3px;
background-image: url("logo_icon.png"), none;
background-size: 32px 32px;
}

#logotext1 {
color: #519EA8;
}

#logotext2 {
color: #FF5000;
}
13 changes: 9 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,20 @@
# a list of builtin themes. To override the custom theme, set this to the
# name of a builtin theme or the name of a custom theme in html_theme_path.
#html_theme = None
html_static_path = ['_static'] # html_theme = None
html_style = 'specreduce.css'


html_theme_options = {
'logotext1': 'specreduce', # white, semi-bold
'logotext2': '', # orange, light
'logotext1': 'spec', # white, semi-bold
'logotext2': 'reduce', # orange, light
'logotext3': ':docs' # white, light
}


# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars['**'] = ['localtoc.html']
html_sidebars['index'] = ['globaltoc.html', 'localtoc.html']

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
Expand All @@ -112,7 +115,7 @@
# 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
# pixels large.
#html_favicon = ''
html_favicon = '_static/logo_icon.ico'

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand All @@ -125,6 +128,8 @@
# Output file base name for HTML help builder.
htmlhelp_basename = project + 'doc'

# Prefixes that are ignored for sorting the Python module index
modindex_common_prefix = ["specreduce."]

# -- Options for LaTeX output -------------------------------------------------

Expand Down

0 comments on commit bbf377d

Please sign in to comment.