From 0b0224853b5113446346e795ed87520e04f6c738 Mon Sep 17 00:00:00 2001 From: "rockot@chromium.org" Date: Thu, 3 Oct 2013 19:38:05 +0000 Subject: 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 --- tools/json_schema_compiler/model.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/json_schema_compiler') 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: -- cgit v1.1