8000 Add demo warning · symfony/symfony-docs@b5bbf7e · GitHub
[go: up one dir, main page]

Skip to content

Commit b5bbf7e

Browse files
committed
Add demo warning
1 parent e24cb56 commit b5bbf7e

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

_theme/_templates/layout.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
<style>
1414
.highlight .k { font-weight: normal; }
1515
.doc { background: none; }
16+
#demo-warning {
17+
background-color: #FFB3B3;
18+
padding: 3px 10px;
19+
margin-bottom: 30px;
20+
}
21+
#demo-warning h4 { font-size: 1.2em;font-weight: bold; }
22+
#demo-warning p { margin-bottom: 0; }
1623
</style>
1724
{% endblock %}
1825

@@ -27,11 +34,16 @@
2734
{%- if render_sidebar %}
2835
<div id="sidebar" class="col-sm-3">
2936
<div id="sidebar-content">
30-
{%- include "globaltoc.html" %}
37+
<div id="demo-warning">
38+
<h4>This is a demo</h4>
39+
<p>This is a demo provided by platform.sh, visit <a href="http://symfony.com/doc/current/{{ pagename }}">this page in the official docs</a>.</p>
40+
</div>
41+
42+
{%- include "globaltoc.html" %}
3143

32-
{% if not isIndex %}
33-
{%- include "localtoc.html" %}
34-
{% endif %}
44+
{% if not isIndex %}
45+
{%- include "localtoc.html" %}
46+
{% endif %}
3547
</div>
3648
</div>
3749
{%- endif %}
@@ -59,6 +71,10 @@ <h1 class="content_title">{{ title }}</h1>
5971
<a href="{{ next.link|e }}">{{ next.title|striptags|e }} »</a>
6072
</div>
6173
{% endif %}
74+
75+
<div id="license">
76+
<p>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">License</a>.</p>
77+
</div>
6278
</div>
6379
</div>
6480
</div>

0 commit comments

Comments
 (0)
0