Skip to content

Commit b18c819

Browse files
committed
Merge pull request #428 from silvolu/fix-docs-static-resources
Use 'pathto' to load static resource
2 parents 1b9f1c2 + cbf46fb commit b18c819

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/_templates/layout.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<header class="page-header fixed" role="banner">
6060
<h1 class="logo">
6161
<a href="index.html" title="back to home">
62-
<img src="_static/images/logo.svg" alt="Google Cloud Platform" />
62+
<img src="{{ pathto('_static/images/logo.svg', 1) }}" alt="Google Cloud Platform" />
6363
<span class="gcloud">gcloud</span>
6464
</a>
6565
</h1>
@@ -69,13 +69,13 @@ <h1 class="logo">
6969
<li>
7070
<a href="
7171
https://googlecloudplatform.github.io/gcloud-node" title="Node.js docs page">
72-
<img src="_static/images/icon-lang-nodejs.svg" alt="Node.js icon" class="menu-icon" />
72+
<img src="{{ pathto('_static/images/icon-lang-nodejs.svg', 1) }}" alt="Node.js icon" class="menu-icon" />
7373
Node.js
7474
</a>
7575
</li>
7676
<li>
7777
<a href="#" title="Python docs page">
78-
<img src="_static/images/icon-lang-python.svg" alt="Python icon" class="menu-icon" />
78+
<img src="{{ pathto('_static/images/icon-lang-python.svg', 1) }}" alt="Python icon" class="menu-icon" />
7979
Python
8080
</a>
8181
</li>
@@ -114,35 +114,35 @@ <h1 class="page-title">Python</h1>
114114
<ul class="external-links">
115115
<li>
116116
<a href="https://github.com/GoogleCloudPlatform/gcloud-python/" title="Python on Github">
117-
<img src="_static/images/icon-link-github.svg" alt="Github icon" />
117+
<img src="{{ pathto('_static/images/icon-link-github.svg', 1) }}" alt="Github icon" />
118118
Github
119119
</a>
120120
</li>
121121
<li>
122122
<a href="https://github.com/GoogleCloudPlatform/gcloud-python/issues" title="Python issues on Github">
123-
<img src="_static/images/icon-link-github.svg" alt="Github icon" />
123+
<img src="{{ pathto('_static/images/icon-link-github.svg', 1) }}" alt="Github icon" />
124124
Issues
125125
</a>
126126
</li>
127127
<li>
128128
<a href="http://stackoverflow.com/questions/tagged/gcloud-python" title="gcloud on StackOverflow">
129-
<img src="_static/images/icon-link-stackoverflow.svg" alt="StackOverflow icon" />
129+
<img src="{{ pathto('_static/images/icon-link-stackoverflow.svg', 1) }}" alt="StackOverflow icon" />
130130
gcloud
131131
</a>
132132
</li>
133133
<li>
134134
<a href="https://pypi.python.org/pypi/gcloud" title="Python package manager">
135-
<img src="_static/images/icon-link-package-manager.svg" alt="Package Manager icon" />
135+
<img src="{{ pathto('_static/images/icon-link-package-manager.svg', 1) }}" alt="Package Manager icon" />
136136
Package Manager
137137
</a>
138138
</li>
139139
</ul>
140140
</nav><!-- end of .side-nav -->
141141
</article><!-- end of .main -->
142142

143-
<script src="_static/js/vendor/jquery-1.10.2.min.js"></script>
144-
<script src="_static/js/plugins.js"></script>
145-
<script src="_static/js/main.js"></script>
143+
<script src="{{ pathto('_static/js/vendor/jquery-1.10.2.min.js', 1) }}"></script>
144+
<script src="{{ pathto('_static/js/plugins.js', 1) }}"></script>
145+
<script src="{{ pathto('_static/js/main.js', 1) }}"></script>
146146
{% endblock %}
147147

148148
{# Silence the footer #}

0 commit comments

Comments
 (0)