Skip to content

Commit

Permalink
docs(billingbudgets): add Python 2 sunset banner (via synth) (#9813)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and busunkim96 committed Nov 15, 2019
1 parent 7d985c9 commit 9958b17
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/google-cloud-billing-budgets/docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
div#python2-eol {
border-color: red;
border-width: medium;
}
50 changes: 50 additions & 0 deletions packages/google-cloud-billing-budgets/docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

{% extends "!layout.html" %}
{%- block content %}
{%- if theme_fixed_sidebar|lower == 'true' %}
<div class="document">
{{ sidebar() }}
{%- block document %}
<div class="documentwrapper">
{%- if render_sidebar %}
<div class="bodywrapper">
{%- endif %}

{%- block relbar_top %}
{%- if theme_show_relbar_top|tobool %}
<div class="related top">
&nbsp;
{{- rellink_markup () }}
</div>
{%- endif %}
{% endblock %}

<div class="body" role="main">
<div class="admonition" id="python2-eol">
On January 1, 2020 this library will no longer support Python 2 on the latest released version.
Previously released library versions will continue to be available. For more information please
visit <a href="https://cloud.google.com/python/docs/python2-sunset/">Python 2 support on Google Cloud</a>.
</div>
{% block body %} {% endblock %}
</div>

{%- block relbar_bottom %}
{%- if theme_show_relbar_bottom|tobool %}
<div class="related bottom">
&nbsp;
{{- rellink_markup () }}
</div>
{%- endif %}
{% endblock %}

{%- if render_sidebar %}
</div>
{%- endif %}
</div>
{%- endblock %}
<div class="clearer"></div>
</div>
{%- else %}
{{ super() }}
{%- endif %}
{%- endblock %}
2 changes: 1 addition & 1 deletion packages/google-cloud-billing-budgets/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = []
html_static_path = ["_static"]

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-billing-budgets/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-11-14T17:31:28.944629Z",
"updateTime": "2019-11-15T13:16:37.374488Z",
"sources": [
{
"generator": {
Expand All @@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "f8720321aecf4aab42e03602ac2c67f9777d9170",
"internalRef": "280434856"
"sha": "f6808ff4e8b966cd571e99279d4a2780ed97dff2",
"internalRef": "280581337"
}
},
{
Expand Down

0 comments on commit 9958b17

Please sign in to comment.