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

Adds a "Generated on <timestamp>" line to the html footer #33962

Merged
merged 1 commit into from
Jun 13, 2016
Merged
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
5 changes: 3 additions & 2 deletions doc/_themes/saltstack2/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@
<div class="footer">
<hr />

{% if on_saltstack %}
<div class="row">

{% if on_saltstack %}
<div class="col-sm-6">
<p><i>Generated on {{today}}.</i></p>

{% if build_type == "latest" %}
<p>You are viewing docs for the latest stable release, {{ latest_release }}. Switch to docs for the previous stable release, <a data-container="body" data-toggle="tooltip" data-placement="bottom" title="Docs for the previous stable release" href="/en/{{ previous_release_dir }}/">{{ previous_release }}</a>, or to a recent doc build from the <a data-container="body" data-toggle="tooltip" data-placement="bottom" title="Latest docs from the develop branch" href="/en/develop/">develop</a> branch.</p>
Expand All @@ -220,8 +221,8 @@


</div>
{% endif %}
</div>
{% endif %}
</div> <!--end footer-->
{%- endblock %}

Expand Down
4 changes: 4 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sys
import os
import types
import time

from sphinx.directives import TocTree

Expand Down Expand Up @@ -198,6 +199,8 @@ def inner(fn, *iargs, **ikwargs):
next_release = '' # next release
next_release_dir = '' # path on web server for next release branch

today = time.strftime("%B %d, %Y") + " at " + time.strftime("%X %Z")

# < --- START do not merge these settings to other branches START ---> #
build_type = 'previous' # latest, previous, develop, next
release = previous_release # version, latest_release, previous_release
Expand Down Expand Up @@ -341,6 +344,7 @@ def inner(fn, *iargs, **ikwargs):
'previous_release_dir': previous_release_dir,
'search_cx': search_cx,
'build_type': build_type,
'today': today,
}

html_use_index = True
Expand Down