diff options
author | rockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-03 19:38:05 +0000 |
---|---|---|
committer | rockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-03 19:38:05 +0000 |
commit | 0b0224853b5113446346e795ed87520e04f6c738 (patch) | |
tree | 32e15dda2b08669e9c21e6a73fc8c6817aded245 /tools/json_schema_compiler | |
parent | 994cba8c3ea3b85239686c865457fdc20e8fb03f (diff) | |
download | chromium_src-0b0224853b5113446346e795ed87520e04f6c738.zip chromium_src-0b0224853b5113446346e795ed87520e04f6c738.tar.gz chromium_src-0b0224853b5113446346e795ed87520e04f6c738.tar.bz2 |
Support customized display prefixes on API docs.
This adds support for a documentation_options property
to the JSON schema, with currently one subproperty, member_prefix.
When provided, the member_prefix string replaces the normally
hard-coded "chrome." prefix.
NOTRY=true
Review URL: https://codereview.chromium.org/25768002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r-- | tools/json_schema_compiler/model.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py index ed2405c..2fcb4df 100644 --- a/tools/json_schema_compiler/model.py +++ b/tools/json_schema_compiler/model.py @@ -73,6 +73,7 @@ class Namespace(object): self.properties = _GetProperties(self, json, self, toplevel_origin) self.compiler_options = (json.get('compiler_options', {}) if include_compiler_options else {}) + self.documentation_options = json.get('documentation_options', {}) class Origin(object): """Stores the possible origin of model object as a pair of bools. These are: |