Skip to content

Commit bcd3aea

Browse files
pelican fixes and page update
1 parent 360cf64 commit bcd3aea

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

doc/pelican/pelicanconf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@
125125

126126
# The list of plugins to load. See Plugins.
127127
PLUGINS = [
128-
# 'i18n_subsites',
128+
# https://github.com/getpelican/pelican-plugins/blob/master/i18n_subsites/localizing_using_jinja2.rst
129+
# required else CRITICAL: 'gettext' is undefined
130+
'i18n_subsites',
129131
]
130132
# A list of directories where to look for plugins. See Plugins
131133
PLUGIN_PATHS = [
@@ -792,8 +794,10 @@ def menu_item(self):
792794
PYSPICE_BUGTRACKER = GITHUB_URL + '/issues'
793795

794796
RELEASES_URL = '/releases'
795-
LAST_RELEASE = 'v1.4'
797+
DEV_RELEASE = 'v1.6'
798+
LAST_RELEASE = 'v1.5'
796799
OLD_RELEASES = [
800+
'v1.4',
797801
'v1.3',
798802
'v1.2',
799803
]

doc/pelican/src/documentation.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ <h5>Last Release Documentation</h5>
2323
</div>
2424
<div class="col-sm">
2525
<div class="jumbotron py-4">
26-
<h5>Previous Release Documentation</h5>
27-
<a href="{{ RELEASES_URL }}/{{ OLD_RELEASES[0] }}" class="btn btn-primary">Release {{ OLD_RELEASES[0] }}</a>
26+
<h5 class="text-danger">Dev Release Documentation</h5>
27+
<a href="{{ RELEASES_URL }}/{{ DEV_RELEASE }}" class="btn btn-primary">Release {{ DEV_RELEASE }}</a>
2828
</div>
2929
</div>
30+
<!-- <div class="col-sm">
31+
<div class="jumbotron py-4">
32+
<h5>Previous Release Documentation</h5>
33+
<a href="{{ RELEASES_URL }}/{{ OLD_RELEASES[0] }}" class="btn btn-primary">Release {{ OLD_RELEASES[0] }}</a>
34+
</div>
35+
</div> -->
3036
</div>
3137

3238
<div class="container">
3339
<h3>Older Releases</h3>
34-
35-
{% for release in OLD_RELEASES[1:] %}
36-
{# flexbox ??? #}
40+
{# {% for release in OLD_RELEASES[1:] %} #}
41+
{% for release in OLD_RELEASES %}
42+
{# flexbox ??? #}
3743
<ul class="list-unstyled">
3844
<li><a href="{{ RELEASES_URL }}/{{ release }}" class="btn btn-primary">Release {{ release }}</a></li>
3945
</ul>

doc/pelican/tasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ def clean(ctx):
6161
####################################################################################################
6262

6363
@task
64-
def build(ctx):
64+
def build(ctx, debug=False):
6565
"""Build local version of site"""
66-
ctx.run('pelican -s {settings_base}'.format(**CONFIG))
66+
debug = '-D' if debug else ''
67+
ctx.run('pelican {debug} -s {settings_base}'.format(**CONFIG, debug=debug))
6768

6869
####################################################################################################
6970

0 commit comments

Comments
 (0)