Skip to content

Commit 161cbb8

Browse files
committed
add master doc warning
1 parent 7edfc9e commit 161cbb8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/theme/layout.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@
125125
{% if pagename != master_doc and toc.count('href') > 1 %}
126126
<hr>
127127
{% endif %}
128+
{% if "master" in VERSION %}
129+
<div class="version-warning">
130+
{% if language.startswith('zh') %}
131+
您正在浏览 master 分支,该文档可能涉及尚未发布的功能。
132+
{% else %}
133+
You're on the master branch. This documentation may include
134+
functionality that is not released yet.
135+
{% endif %}
136+
</div>
137+
{% endif %}
128138
</div>
129139
<div class="add-your-lang">
130140
<a href="https://www.transifex.com/decentfox-studio/gino_1_0/"

docs/theme/static/css/gino.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,12 @@ div.search i {
394394
color: var(--v-info-light);
395395
}
396396

397+
.version-warning {
398+
border: 1px solid #757575;
399+
background-color: #ffaaaa;
400+
padding: 8px;
401+
}
402+
397403
h1 {
398404
font-size: 32px;
399405
margin: 32px 0 20px 0;

0 commit comments

Comments
 (0)