mirror of https://github.com/zulip/zulip.git
api docs: Move OpenAPI files to zerver/openapi.
This commit is contained in:
parent
d28a4d1f86
commit
30682241c7
|
@ -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)
|
||||
|
|
|
@ -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(),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue