Skip to content

Commit 1cea2a7

Browse files
committed
Fix embed and gadget page.
Reviewed in https://codereview.appspot.com/6873059/.
1 parent 994123c commit 1cea2a7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

samples/api-python-client-doc/embed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<tr>
6969
<td><img class=icon src="{{ item.icons.x16 }}"/> {{ item.title }}</td>
7070
<td><a target=_top href="{{ item.documentationLink }}">Documentation</a></td>
71-
<td><a target=_top href="/{{ item.name }}_{{ item.safe_version }}.html">PyDoc</a></td>
71+
<td><a target=_top href="https://google-api-client-libraries.appspot.com/documentation/{{ item.name }}/{{ item.version }}/python/latest/">PyDoc</a></td>
7272
<td>{{ item.name }}</td>
7373
<td>{{ item.version}}</td>
7474
</tr>

samples/api-python-client-doc/gadget.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<tr>
99
<td><img style="width: 16px; height: 16px" src="{{ item.icons.x16 }}"/> {{ item.name }} </td>
1010
<td><a href="{{ item.documentationLink }}">Documentation</a></td>
11-
<td><a href="/{{ item.name }}_{{ item.safe_version }}.html">PyDoc</a></td>
11+
<td><a href="https://google-api-client-libraries.appspot.com/documentation/{{ item.name }}/{{ item.version }}/python/latest/">PyDoc</a></td>
1212
</tr>
1313
{% endfor %}
1414
</table>

samples/api-python-client-doc/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ class ResourceHandler(webapp.RequestHandler):
104104

105105
def get(self, service_name, version, collection):
106106

107-
real_version = describe.unsafe_version(version)
108107
return self.redirect('https://google-api-client-libraries.appspot.com/documentation/%s/%s/python/latest/%s_%s.%s.html'
109-
% (service_name, real_version, service_name, real_version, collection))
108+
% (service_name, version, service_name, version, collection))
110109

111110

112111
def main():

0 commit comments

Comments
 (0)