mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add hook for rebuilding API schema as part of RTD build
This commit is contained in:
parent
63ecb48ff6
commit
edd13c50f7
@ -9,6 +9,12 @@ from distutils.version import StrictVersion
|
||||
import requests
|
||||
|
||||
|
||||
def rebuild_api_schema():
|
||||
"""Rebuild InvenTree API schema on RTD build."""
|
||||
# TODO
|
||||
print('Rebuilding InvenTree API schema')
|
||||
|
||||
|
||||
def fetch_rtd_versions():
|
||||
"""Get a list of RTD docs versions to build the version selector."""
|
||||
print('Fetching documentation versions from ReadTheDocs')
|
||||
@ -243,4 +249,6 @@ def on_config(config, *args, **kwargs):
|
||||
# Sort releases by descending date
|
||||
config['releases'] = sorted(releases, key=lambda it: it['date'], reverse=True)
|
||||
|
||||
rebuild_api_schema()
|
||||
|
||||
return config
|
||||
|
Loading…
Reference in New Issue
Block a user