Skip to content

Commit d24ed73

Browse files
Kevin Paulpre-commit-ci[bot]
andauthored
Updates to use newly updated theme (#197)
* Add banner directive * Add new theme to dependencies * Add gallery to TOC * Add text color CSS classes * Update to use new theme * Remove unused pages * Remove old theme * CSS fixes * Alphabetize * Remove text-light class * Comment out quick fixes * Make gallery a standalone page * Vertically center thumbnail images in cards * Updates to use new theme * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Updates to config to unify with foundations * Update author and copyright * Add link to author and fix last updated format * Moving GA ID to theme options * Adding NSF ack as special template * Updated theme options * New navbar and generatic footer menu (for now) * Update pre-commit * Add fixed navbar and footer menu Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 979b277 commit d24ed73

File tree

5 files changed

+72
-53
lines changed

5 files changed

+72
-53
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div class="container-fluid footer-extra">
2+
<div class="container">
3+
<div class="row">
4+
<p class="m-0">
5+
<img src="{{ pathto('_static/images/logos/footer-logo-nsf.png', 1) }}" style="float:left;width:60px;height:60px;margin-right:1rem;">
6+
This material is based upon work supported by the National
7+
Science Foundation under Grant Nos. 2026863 and 2026899. Any
8+
opinions, findings, and conclusions or recommendations expressed
9+
in this material are those of the author(s) and do not necessarily
10+
reflect the views of the National Science Foundation.
11+
</p>
12+
</div>
13+
</div>
14+
</div>

portal/_templates/footer-menu.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{% set ext_icon = '<i class="fas fa-external-link-alt"></i>' %}
2+
<div class="container-fluid footer-menu pt-4">
3+
<div class="container">
4+
<div class="row justify-content-center">
5+
<div class="col-9 col-sm-4 col-md-4 col-lg-3 footer-menu-col">
6+
<h1>{{ _("About") }}</h1>
7+
<ul class="list-unstyled">
8+
<li><a href="https://projectpythia.org/about.html">{{ _("About Project Pythia") }}</a></li>
9+
<li><a href="https://foundations.projectpythia.org/preamble/how-to-use.html">{{ _("How to use Pythia Foundations") }}</a></li>
10+
<li><a href="https://projectpythia.org/#the-project-pythia-team">{{ _("The Project Team") }}</a></li>
11+
</ul>
12+
</div>
13+
<div class="col-9 col-sm-4 col-md-4 col-lg-3 footer-menu-col">
14+
<h1>{{ _("Give Feedback") }}</h1>
15+
<ul class="list-unstyled">
16+
<li><a href="mailto:[email protected]">{{ _("Email us!") }}</a></li>
17+
<li><a href="https://github.com/ProjectPythia/projectpythia.github.io/discussions">{{ _("Project Pythia Discussions") }}</a></li>
18+
<li><a href="https://github.com/ProjectPythia/pythia-foundations/discussions">{{ _("Pythia Foundations Discussions") }}</a></li>
19+
</ul>
20+
</div>
21+
<div class="col-9 col-sm-4 col-md-4 col-lg-3 footer-menu-col">
22+
<h1>{{ _("Contribute") }}</h1>
23+
<ul class="list-unstyled">
24+
<li><a href="https://projectpythia.org/contributing.html">{{ _("How to contribute to Project Pythia") }}</a></li>
25+
<li><a href="https://foundations.projectpythia.org/appendix/how-to-contribute.html">{{ _("How to contribute to Pythia Foundations") }}</a></li>
26+
<li><a href="https://projectpythia.org/code_of_conduct.html">{{ _("Our code of conduct") }}</a></li>
27+
<li><a href="https://projectpythia.org/#weekly-working-group-meetings">{{ _("Join our weekly meetings") }}</a></li>
28+
<li><a href="https://github.com/ProjectPythia">{{ _("Join us on GitHub") }}</a></li>
29+
</ul>
30+
</div>
31+
</div>
32+
</div>
33+
</div>

portal/_templates/layout.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

portal/conf.py

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# add these directories to sys.path here. If the directory is relative to the
1414
# documentation root, use os.path.abspath to make it absolute, like shown here.
1515
#
16-
import datetime
1716
import os
1817
import shutil
1918
import sys
@@ -24,8 +23,8 @@
2423
# -- Project information -----------------------------------------------------
2524

2625
project = 'Project Pythia'
27-
author = 'Project Pythia Developers & Contributors'
28-
copyright = f'2021-{datetime.datetime.now().year}, {author}'
26+
author = 'the <a href="https://projectpythia.org/">Project Pythia</a> Community'
27+
copyright = '2022'
2928

3029
# -- General configuration ---------------------------------------------------
3130

@@ -59,7 +58,7 @@
5958
# a list of builtin themes.
6059
#
6160
html_theme = 'sphinx_pythia_theme'
62-
html_last_updated_fmt = '%d %B %Y'
61+
html_last_updated_fmt = '%-d %B %Y'
6362

6463
# Logo & Title
6564
html_logo = '_static/images/logos/pythia_logo-white-rtext.svg'
@@ -78,44 +77,31 @@
7877
html_css_files = ['custom.css']
7978
# html_js_files = ['custom.js']
8079

80+
# Disable Sidebars on special pages
81+
html_sidebars = {
82+
'index': [],
83+
'gallery': [],
84+
}
85+
8186
# HTML Theme-specific Options
8287
html_theme_options = {
83-
'page_layouts': {'index': 'banner', 'gallery': 'standalone'},
84-
'domnav': [
85-
{
86-
'content': 'Start Learning',
87-
'url': '/index.html#start-learning',
88-
},
89-
{
90-
'content': 'Join us!',
91-
'url': '/index.html#join-us',
92-
},
93-
{
94-
'content': 'Team',
95-
'url': '/index.html#the-project-pythia-team',
96-
},
97-
{
98-
'content': 'About',
99-
'url': 'about',
100-
},
88+
'google_analytics_id': 'G-T9KGMX7VHZ',
89+
'github_url': 'https://github.com/ProjectPythia',
90+
'twitter_url': 'https://twitter.com/project_pythia',
91+
'logo_link': 'https://projectpythia.org',
92+
'navbar_links': [
93+
{'name': 'Home', 'url': 'https://projectpythia.org'},
94+
{'name': 'Foundations', 'url': 'https://foundations.projectpythia.org'},
95+
{'name': 'Gallery', 'url': 'https://projectpythia.org/gallery.html'},
96+
{'name': 'Community', 'url': 'https://projectpythia.org/#join-us'},
10197
],
102-
'footer': {
103-
'logos': {
104-
'NCAR': '_static/images/logos/NCAR-contemp-logo-blue.svg',
105-
'Unidata': '_static/images/logos/Unidata_logo_horizontal_1200x300.svg',
106-
'UAlbany': '_static/images/logos/UAlbany-A2-logo-purple-gold.svg',
107-
},
108-
'acknowledgement': {
109-
'content': (
110-
'This material is based upon work supported by the National '
111-
'Science Foundation under Grant Nos. 2026863 and 2026899. Any '
112-
'opinions, findings, and conclusions or recommendations expressed '
113-
'in this material are those of the author(s) and do not necessarily '
114-
'reflect the views of the National Science Foundation.'
115-
),
116-
'image': '_static/images/logos/footer-logo-nsf.png',
117-
},
98+
'page_layouts': {'index': 'page-banner.html', 'gallery': 'page-standalone.html'},
99+
'footer_logos': {
100+
'NCAR': '_static/images/logos/NCAR-contemp-logo-blue.svg',
101+
'Unidata': '_static/images/logos/Unidata_logo_horizontal_1200x300.svg',
102+
'UAlbany': '_static/images/logos/UAlbany-A2-logo-purple-gold.svg',
118103
},
104+
'extra_navbar': ('Theme by <a href="https://projectpythia.org">Project Pythia</a>'),
119105
}
120106

121107
# Panels config

portal/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:color: rgba(26, 100, 143, 0.85)
55
:image: _static/images/backgrounds/pexels-jeff-stapleton-5792818.jpg
66
:caption: Photo by Jeff Stapleton from Pexels
7+
:class: dark-banner
78
:::
89

910
Scientists working in a multitude of disciplines rely heavily on

0 commit comments

Comments
 (0)