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

Issue 2957009: Change the existing extension samples page to an automatically-generated searchable directory. (Closed)

Created:
10 years, 5 months ago by kurrik.chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, chrome-devrel_googlegroups.com
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Change the existing extension samples page to an automatically-generated searchable directory. * Fixes a typo in the maps_app sample that prevents the manifest from being parsed as valid JSON. * Adds code to build a samples.json file in the documentation root, for use by the jstemplate docs rendering process. * Adds build/sample.py, a class which parses an individual sample's metadata out of the filesystem * Adds css/samples.css for directory-specific styles (could be merged into base styles if this is an issue) * Adds images/sample-default-icon.png for samples which don't have 128px icons. * Adds js/sample_search.js as the source for the sample search code (was difficult to escape this through the JSTemplate code without being in a different file). BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55111

Patch Set 1 #

Patch Set 2 : Fixing presumit warnings #

Patch Set 3 : Strips a few trailing spaces and adds a license to sample_search.js #

Total comments: 6

Patch Set 4 : Requested changes from the review #

Total comments: 1

Patch Set 5 : Add an extensibility model so that individual pages can extend their template data. #

Total comments: 14

Patch Set 6 : Make changes suggested by Antony #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4085 lines, -350 lines) Patch
M chrome/common/extensions/docs/build/build.py View 1 2 3 5 chunks +22 lines, -17 lines 0 comments Download
A chrome/common/extensions/docs/build/directory.py View 4 5 1 chunk +552 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/css/samples.css View 1 2 3 4 5 1 chunk +99 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/extensions/maps_app/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
A chrome/common/extensions/docs/images/sample-default-icon.png View Binary file 0 comments Download
M chrome/common/extensions/docs/js/api_page_generator.js View 1 2 3 4 13 chunks +59 lines, -23 lines 0 comments Download
A chrome/common/extensions/docs/js/sample_search.js View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 1 2 3 4 5 3 chunks +1919 lines, -165 lines 0 comments Download
A chrome/common/extensions/docs/samples.json View 1 2 3 4 5 1 chunk +1237 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/static/samples.html View 1 2 3 4 1 chunk +114 lines, -144 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kurrik.chromium
Here is the long-awaited CL to generate a samples directory as part of the documentation ...
10 years, 5 months ago (2010-07-14 00:07:14 UTC) #1
rafaelw
http://codereview.chromium.org/2957009/diff/5001/6001 File chrome/common/extensions/docs/build/build.py (right): http://codereview.chromium.org/2957009/diff/5001/6001#newcode151 chrome/common/extensions/docs/build/build.py:151: def LoadAPIManifest(): My python is pretty weak. Is there ...
10 years, 5 months ago (2010-07-16 19:05:55 UTC) #2
kurrik.chromium
http://codereview.chromium.org/2957009/diff/5001/6001 File chrome/common/extensions/docs/build/build.py (right): http://codereview.chromium.org/2957009/diff/5001/6001#newcode151 chrome/common/extensions/docs/build/build.py:151: def LoadAPIManifest(): On 2010/07/16 19:05:56, rafaelw wrote: > My ...
10 years, 4 months ago (2010-07-31 01:04:58 UTC) #3
kurrik.chromium
Declaring a preRender function directly on the page or from an included script didn't appear ...
10 years, 4 months ago (2010-07-31 01:56:05 UTC) #4
rafaelw
awesome. nice solution. lgtm modulo python code. thanks again for doing this. antony can you ...
10 years, 4 months ago (2010-08-02 22:13:03 UTC) #5
asargent_no_longer_on_chrome
LGTM with a few nits and suggestions. http://codereview.chromium.org/2957009/diff/18001/19002 File chrome/common/extensions/docs/build/directory.py (right): http://codereview.chromium.org/2957009/diff/18001/19002#newcode30 chrome/common/extensions/docs/build/directory.py:30: methods: A ...
10 years, 4 months ago (2010-08-03 16:48:56 UTC) #6
kurrik.chromium
Thanks for the review. I've made your suggested changes. http://codereview.chromium.org/2957009/diff/18001/19002 File chrome/common/extensions/docs/build/directory.py (right): http://codereview.chromium.org/2957009/diff/18001/19002#newcode30 chrome/common/extensions/docs/build/directory.py:30: ...
10 years, 4 months ago (2010-08-03 23:26:53 UTC) #7
asargent_no_longer_on_chrome
10 years, 4 months ago (2010-08-05 18:51:13 UTC) #8
(Just noticed this review is still open - in case it wasn't clear, on extensions
team we often have the convention of saying "lgtm with these
nits/suggestions..." meaning that we trust you'll address those and you can go
ahead and submit without needing to get a final lgtm)

Powered by Google App Engine
This is Rietveld 408576698