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

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: console and audits are back 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 456aa831bf2084e5e55c8ab15c0b292694b26406..e77f6b46f0eac6145b8cfe25ba9b8bf0e09d9201 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