Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
2c7c53b4
Commit
2c7c53b4
authored
Feb 04, 2022
by
Matus Valo
Committed by
GitHub
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a "dev version" warning banner to the latest version of documentation (GH-4583)
parent
da631676
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
docs/_templates/layout.html
docs/_templates/layout.html
+10
-0
docs/conf.py
docs/conf.py
+4
-0
No files found.
docs/_templates/layout.html
View file @
2c7c53b4
{% extends "!layout.html" %}
{% block header %}
{%- if development %}
<div
id=
"development-warning"
style=
"padding: .5em; text-align: center; background-color: #FFBABA; color: #6A0E0E;"
>
{% trans %}This version of the documentation is for the in-development branch of Cython.
For the stable version, see {% endtrans %}
<a
href=
"/en/stable/{{ pagename }}{{ file_suffix }}"
>
{% trans %}here{% endtrans %}
</a>
.
</div>
{%- endif %}
{% endblock %}
{% block relbar1 %}
{{ super() }}
{% if pagename != "src/donating" %}
...
...
docs/conf.py
View file @
2c7c53b4
...
...
@@ -184,6 +184,10 @@ html_context = {
'css_files'
:
[
'_static/css/tabs.css'
],
}
development
=
'a'
in
release
or
'b'
in
release
html_context
=
{
'development'
:
development
}
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment