Skip to content

Commit

Permalink
Add deprecation warning to asset ref docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Aug 15, 2019
1 parent 5a063e1 commit 8ff77d8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
4 changes: 4 additions & 0 deletions asset/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;
}
47 changes: 47 additions & 0 deletions asset/docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% 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 ="">Python 2 Deprecation and EOL</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 asset/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,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

0 comments on commit 8ff77d8

Please sign in to comment.