Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commitb7f81c8

Browse files
authored
docs: add python 2 sunset banner to documentation (#9036)
1 parentf4fa69b commitb7f81c8

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

‎docs/_static/custom.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
div#python2-eol {
2+
border-color: red;
3+
border-width: medium;
4+
}

‎docs/_templates/layout.html‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{% extends "!layout.html" %}
2+
{%- block content %}
3+
{%- if theme_fixed_sidebar|lower == 'true' %}
4+
<divclass="document">
5+
{{ sidebar() }}
6+
{%- block document %}
7+
<divclass="documentwrapper">
8+
{%- if render_sidebar %}
9+
<divclass="bodywrapper">
10+
{%- endif %}
11+
12+
{%- block relbar_top %}
13+
{%- if theme_show_relbar_top|tobool %}
14+
<divclass="related top">
15+
&nbsp;
16+
{{- rellink_markup () }}
17+
</div>
18+
{%- endif %}
19+
{% endblock %}
20+
21+
<divclass="body"role="main">
22+
<divclass="admonition"id="python2-eol">
23+
On January 1, 2020 this library will no longer support Python 2 on the latest released version.
24+
Previously released library versions will continue to be available. For more information please
25+
visit<ahref="https://cloud.google.com/python/docs/python2-sunset/">Python 2 support on Google Cloud</a>.
26+
</div>
27+
{% block body %} {% endblock %}
28+
</div>
29+
30+
{%- block relbar_bottom %}
31+
{%- if theme_show_relbar_bottom|tobool %}
32+
<divclass="related bottom">
33+
&nbsp;
34+
{{- rellink_markup () }}
35+
</div>
36+
{%- endif %}
37+
{% endblock %}
38+
39+
{%- if render_sidebar %}
40+
</div>
41+
{%- endif %}
42+
</div>
43+
{%- endblock %}
44+
<divclass="clearer"></div>
45+
</div>
46+
{%- else %}
47+
{{ super() }}
48+
{%- endif %}
49+
{%- endblock %}

‎docs/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
# Add any paths that contain custom static files (such as style sheets) here,
165165
# relative to this directory. They are copied after the builtin static files,
166166
# so a file named "default.css" will overwrite the builtin "default.css".
167-
#html_static_path = []
167+
html_static_path= ["_static"]
168168

169169
# Add any extra paths that contain custom files (such as robots.txt or
170170
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp