File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 125125
126126# The list of plugins to load. See Plugins.
127127PLUGINS = [
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
131133PLUGIN_PATHS = [
@@ -792,8 +794,10 @@ def menu_item(self):
792794PYSPICE_BUGTRACKER = GITHUB_URL + '/issues'
793795
794796RELEASES_URL = '/releases'
795- LAST_RELEASE = 'v1.4'
797+ DEV_RELEASE = 'v1.6'
798+ LAST_RELEASE = 'v1.5'
796799OLD_RELEASES = [
800+ 'v1.4' ,
797801 'v1.3' ,
798802 'v1.2' ,
799803]
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments