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

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

Issue 15087006: Docserver: there is only one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: epic rebase Created 7 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/preview.py
diff --git a/chrome/common/extensions/docs/server2/preview.py b/chrome/common/extensions/docs/server2/preview.py
index d645abb28133f7206e869bd8cfd3246115785f93..f09f0cf67caceccec681d6565278fdfde95c20e2 100755
--- a/chrome/common/extensions/docs/server2/preview.py
+++ b/chrome/common/extensions/docs/server2/preview.py
@@ -23,9 +23,6 @@
# ./preview.py -r extensions/tabs.html
#
# will output the documentation for the tabs API on stdout and exit immediately.
-#
-# Note: absolute paths into static content (e.g. /static/css/site.css) will be
-# relative paths (e.g. static/css/site.css) for convenient sandboxing.
# NOTE: RUN THIS FIRST. Or all third_party imports will fail.
import build_server
@@ -91,9 +88,7 @@ if __name__ == '__main__':
if opts.time:
print('Took %s seconds' % (time.time() - start_time))
else:
- # Static paths will show up as /trunk/static/foo but this only makes
- # sense from a webserver.
- print(response.content.ToString().replace('/trunk/', ''))
+ print(response.content.ToString())
exit()
print('Starting previewserver on port %s' % opts.port)

Powered by Google App Engine
This is Rietveld 408576698