api docs: Move OpenAPI files to zerver/openapi.

This commit is contained in:
Yago González 2018-05-26 21:46:55 +02:00
parent d28a4d1f86
commit 30682241c7
4 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,8 @@ class MarkdownArgumentsTableGenerator(Extension):
configs = {}
self.config = {
'base_path': ['.', 'Default location from which to evaluate relative paths for the JSON files.'],
'openapi_path': ['../../../zerver/openapi',
'Default location from which to evaluate relative paths for the YAML files.']
}
for key, value in configs.items():
self.setConfig(key, value)

View File

@ -96,7 +96,8 @@ def render_markdown_path(markdown_file_path: str, context: Optional[Dict[Any, An
),
zerver.lib.bugdown.fenced_code.makeExtension(),
zerver.lib.bugdown.api_arguments_table_generator.makeExtension(
base_path='templates/zerver/api/'),
base_path='templates/zerver/api/',
openapi_path='zerver/openapi'),
zerver.lib.bugdown.api_code_examples.makeExtension(),
zerver.lib.bugdown.help_settings_links.makeExtension(),
]