2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

Use neoteroi-mkdocs instead

- seems to render more reliably
This commit is contained in:
Oliver Walters
2024-02-11 08:35:57 +11:00
parent 2627917383
commit 45ac4e774f
8 changed files with 34697 additions and 19 deletions

View File

@ -898,6 +898,8 @@ def schema(c, filename='schema.yml', overwrite=False, ignore_warnings=False):
"""Export current API schema."""
check_file_existance(filename, overwrite)
filename = os.path.abspath(filename)
cmd = f'spectacular --file {filename} --validate --color'
if not ignore_warnings: