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

Issue 10835012: Extension Docs Server: Include a list of samples used in the api reference page. (Closed)

Created:
8 years, 4 months ago by chebert
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Extension Docs Server: Include a list of samples used in the api reference page. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149690

Patch Set 1 #

Total comments: 11

Patch Set 2 : api_data_source is a factory #

Total comments: 4

Patch Set 3 : fixed the tests #

Total comments: 9

Patch Set 4 : #

Total comments: 7

Patch Set 5 : :. #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 6

Patch Set 8 : . #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -55 lines) Patch
M chrome/common/extensions/docs/server2/api_data_source.py View 1 2 3 4 5 6 7 3 chunks +49 lines, -24 lines 0 comments Download
M chrome/common/extensions/docs/server2/api_data_source_test.py View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/handlebar_dict_generator.py View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/handler.py View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/samples_data_source.py View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source.py View 1 2 3 4 5 6 7 4 chunks +16 lines, -15 lines 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source_test.py View 1 2 5 chunks +13 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/api_reference.html View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/table_of_contents.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/toc_samples.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
chebert
Ignore the changes to the tests for now.
8 years, 4 months ago (2012-07-26 20:34:19 UTC) #1
chebert
https://chromiumcodereview.appspot.com/10835012/diff/1/chrome/common/extensions/docs/server2/handlebar_dict_generator.py File chrome/common/extensions/docs/server2/handlebar_dict_generator.py (right): https://chromiumcodereview.appspot.com/10835012/diff/1/chrome/common/extensions/docs/server2/handlebar_dict_generator.py#newcode73 chrome/common/extensions/docs/server2/handlebar_dict_generator.py:73: if api_name == api['name'].split('.', 2)[1]: not sure if this ...
8 years, 4 months ago (2012-07-26 20:36:39 UTC) #2
cduvall
http://codereview.chromium.org/10835012/diff/1/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): http://codereview.chromium.org/10835012/diff/1/chrome/common/extensions/docs/server2/api_data_source.py#newcode19 chrome/common/extensions/docs/server2/api_data_source.py:19: def __init__(self, cache_builder, base_path): See comment in TDS about ...
8 years, 4 months ago (2012-07-26 22:04:24 UTC) #3
chebert
https://chromiumcodereview.appspot.com/10835012/diff/1/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10835012/diff/1/chrome/common/extensions/docs/server2/api_data_source.py#newcode19 chrome/common/extensions/docs/server2/api_data_source.py:19: def __init__(self, cache_builder, base_path): On 2012/07/26 22:04:24, cduvall wrote: ...
8 years, 4 months ago (2012-07-26 22:30:51 UTC) #4
cduvall
Beautiful https://chromiumcodereview.appspot.com/10835012/diff/10/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py File chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py (right): https://chromiumcodereview.appspot.com/10835012/diff/10/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py#newcode28 chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py:28: print json.dumps(gen.Generate(), indent=2) remove please :) https://chromiumcodereview.appspot.com/10835012/diff/10/chrome/common/extensions/docs/server2/templates/private/sample.html File ...
8 years, 4 months ago (2012-07-26 22:38:24 UTC) #5
chebert
https://chromiumcodereview.appspot.com/10835012/diff/10/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py File chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py (right): https://chromiumcodereview.appspot.com/10835012/diff/10/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py#newcode28 chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py:28: print json.dumps(gen.Generate(), indent=2) On 2012/07/26 22:38:25, cduvall wrote: > ...
8 years, 4 months ago (2012-07-26 23:28:36 UTC) #6
not at google - send to devlin
You'll need to update the table of contents too. Regarding that, I was wondering whether ...
8 years, 4 months ago (2012-07-30 12:23:03 UTC) #7
not at google - send to devlin
And by "inject the samples" I mean "inject the samples data source". http://codereview.chromium.org/10835012/diff/2004/chrome/common/extensions/docs/server2/template_data_source.py File chrome/common/extensions/docs/server2/template_data_source.py ...
8 years, 4 months ago (2012-07-30 12:26:22 UTC) #8
chebert
This hasn't changed much...see comments in api_data_source.py https://chromiumcodereview.appspot.com/10835012/diff/2004/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10835012/diff/2004/chrome/common/extensions/docs/server2/api_data_source.py#newcode31 chrome/common/extensions/docs/server2/api_data_source.py:31: self._idl_cache = ...
8 years, 4 months ago (2012-07-31 22:41:33 UTC) #9
not at google - send to devlin
TOC still needs to be updated. https://chromiumcodereview.appspot.com/10835012/diff/2004/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10835012/diff/2004/chrome/common/extensions/docs/server2/api_data_source.py#newcode31 chrome/common/extensions/docs/server2/api_data_source.py:31: self._idl_cache = cache_builder.build(self._LoadIdlAPI) ...
8 years, 4 months ago (2012-08-01 10:09:18 UTC) #10
chebert
https://chromiumcodereview.appspot.com/10835012/diff/11001/chrome/common/extensions/docs/server2/handlebar_dict_generator.py File chrome/common/extensions/docs/server2/handlebar_dict_generator.py (right): https://chromiumcodereview.appspot.com/10835012/diff/11001/chrome/common/extensions/docs/server2/handlebar_dict_generator.py#newcode36 chrome/common/extensions/docs/server2/handlebar_dict_generator.py:36: self._samples = samples On 2012/08/01 10:09:19, kalman wrote: > ...
8 years, 4 months ago (2012-08-01 18:04:33 UTC) #11
chebert
https://chromiumcodereview.appspot.com/10835012/diff/11001/chrome/common/extensions/docs/server2/template_data_source.py File chrome/common/extensions/docs/server2/template_data_source.py (right): https://chromiumcodereview.appspot.com/10835012/diff/11001/chrome/common/extensions/docs/server2/template_data_source.py#newcode91 chrome/common/extensions/docs/server2/template_data_source.py:91: self._samples_data_source.values()) On 2012/08/01 10:09:19, kalman wrote: > usually you'd ...
8 years, 4 months ago (2012-08-01 18:04:51 UTC) #12
not at google - send to devlin
Nice one, lgtm. Please fix up those things before submitting. The injection stuff in template_data_source.py ...
8 years, 4 months ago (2012-08-01 20:56:32 UTC) #13
chebert
https://chromiumcodereview.appspot.com/10835012/diff/5008/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10835012/diff/5008/chrome/common/extensions/docs/server2/api_data_source.py#newcode90 chrome/common/extensions/docs/server2/api_data_source.py:90: except Exception as e: On 2012/08/01 20:56:32, kalman wrote: ...
8 years, 4 months ago (2012-08-02 18:40:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/10835012/4016
8 years, 4 months ago (2012-08-02 18:53:01 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 20:22:41 UTC) #16
Change committed as 149690

Powered by Google App Engine
This is Rietveld 408576698