Index: chrome/common/extensions/docs/server2/intro_data_source.py |
diff --git a/chrome/common/extensions/docs/server2/intro_data_source.py b/chrome/common/extensions/docs/server2/intro_data_source.py |
index 161373414ab1ebb2983d8915188e4f73e6672ad0..688362a248439b31f63b8ebc98dbe39fbb4877a4 100644 |
--- a/chrome/common/extensions/docs/server2/intro_data_source.py |
+++ b/chrome/common/extensions/docs/server2/intro_data_source.py |
@@ -94,8 +94,11 @@ class IntroDataSource(DataSource): |
def _MakeIntro(self, intro_path, intro): |
# Guess the name of the API from the path to the intro. |
api_name = os.path.splitext(intro_path.split('/')[-1])[0] |
+ request_path = '' |
+ if self._request: |
+ request_path = self._request.path |
not at google - send to devlin
2013/11/22 20:16:10
nit: ternary:
request_path = self._request.path i
benwells
2013/11/25 01:12:37
I was thinking it might be better to make sure tha
benwells
2013/11/27 07:28:31
Removed the code by making sure self._request was
|
intro_with_links = self._ref_resolver.ResolveAllLinks( |
- intro, namespace=api_name) |
+ intro, requestPath=request_path, namespace=api_name) |
not at google - send to devlin
2013/11/22 20:16:10
python style requires request_path not requestPath
benwells
2013/11/27 07:28:31
Done.
|
# TODO(kalman): In order to pick up every header tag, and therefore make a |
# complete TOC, the render context of the Handlebar needs to be passed |