Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RA1]: Adding Piccolo theme #3364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Binary file added doc/ref_arch/openstack/_static/anuket-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions doc/ref_arch/openstack/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/* Changing the color of top navbar in piccolo */
div#top_nav nav {
background-color: #16326c;
padding:0.5rem;
}

/* Changing the size of the logo in the top navbar in piccolo */
div#top_nav nav h1 img {
height: 2rem;
}

/* Changing the margin of the main text in piccolo */
div.document {
margin-left: 10rem;
margin-right: 20rem;
}

/* Changing link color in piccolo */
a {
color: #007574ff;
}

/* Changing link color in the left sidebar in piccolo */
div.sphinxsidebar ul li a.current {
color: #007574ff;
}

/* Changing the hover color in the left sidebar in piccolo */
div.sphinxsidebar ul li a:hover {
color: #007574ff;
}

/* Changing the hover color in the right sidebar in piccolo */
div#right_sidebar ul li a:hover {
color: #007574ff;
}

/* Changing the color of the > icon next to Page contents */
div#right_sidebar p span.icon {
color: #007574ff;
}

/* Changing the color of the Page contents title */
div#right_sidebar p span {
color: #007574ff;
}

/* Changing the color of the search button */
div.document form input[type=submit], div.document form button {
background-color: #16326c;
}

/* Changing the color of the Search text in the Search button */
div#searchbox form.search input[type="submit"] {
color: #16326c;
}

/* Changing the color of the > icon next to the collapsed Page contents */
div#show_right_sidebar p span.icon {
color: rgba(0, 0, 0, 0.6);
}

/* Removing option to switch to dark mode */
div#top_nav nav a#mode_toggle, div#top_nav nav a#source_link {
display: none;
}
Binary file added doc/ref_arch/openstack/_static/favicon.ico
Binary file not shown.
18 changes: 18 additions & 0 deletions doc/ref_arch/openstack/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@
]
autosectionlabel_prefix_document = True
autosectionlabel_maxdepth = 4

html_css_files = [
'custom.css',
]

html_show_sourcelink = False
html_theme_options = {
# If False, expand all TOC entries
'globaltoc_collapse': False,
# If True, show hidden TOC entries
'globaltoc_includehidden': False,
}

# Inverse png
html_logo = '_static/anuket-logo.png'
html_favicon = '_static/favicon.ico'


numfig = True
numfig_format = {'figure': 'Figure %s', 'table': 'Table %s',
'code-block': 'Listing %s', 'section': 'Section %s'}
Expand Down
3 changes: 1 addition & 2 deletions doc/ref_arch/openstack/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
sphinx!=1.6.6,!=1.6.7,!=2.1.0,!=3.0.0,!=3.4.2 # BSD
sphinx-rtd-theme # MIT
sphinx # BSD
doc8 # Apache-2.0
piccolo-theme
sphinxcontrib-bibtex
Expand Down