Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7903)

Unified Diff: chrome/common/extensions/docs/server2/handlebar_dict_generator.py

Issue 10797039: Extensions Docs Server: devtools API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/handlebar_dict_generator.py
diff --git a/chrome/common/extensions/docs/server2/handlebar_dict_generator.py b/chrome/common/extensions/docs/server2/handlebar_dict_generator.py
index 1e9f74fdb7cbd6001aab5bc9a909c1b50c579a03..a3ab7ff3472253a2d89925f0b2374dcf7fcf8b2e 100644
--- a/chrome/common/extensions/docs/server2/handlebar_dict_generator.py
+++ b/chrome/common/extensions/docs/server2/handlebar_dict_generator.py
@@ -24,8 +24,8 @@ def _RemoveNoDocs(item):
def _GetLinkToRefType(namespace_name, ref_type):
terms = ref_type.split('.')
if len(terms) > 1:
- text = '.'.join(terms[1:])
- href = terms[0] + '.html' + '#type-' + text
+ text = terms[-1]
+ href = '.'.join(terms[:-1]) + '.html' + '#type-' + text
else:
href = namespace_name + '.html' + '#type-' +ref_type
text = ref_type

Powered by Google App Engine
This is Rietveld 408576698