mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
39ba25c5ed
* Render API docs
* Cleanup broken links
* Re-enable strict mode
* Change json to yaml
* Update docs/docs/api/schema.md
Co-authored-by: Matthias Mair <code@mjmair.com>
* Update docs/docs/api/schema.md
Co-authored-by: Matthias Mair <code@mjmair.com>
* Use neoteroi-mkdocs instead
- seems to render more reliably
* Fix SERVERS section for SPECTACTULAR_SETTINGS
* Script for splitting schema into smaller sections
* Generate an index file for the schema pages
* Move schema.md up one directory
* Fix formatting
* Remove tracked file
* Add hook for rebuilding API schema as part of RTD build
* Extract schema as RTD build step
* install invoke
* export env vars
* remove argparse
* Fix order of operations
* Compress env vars
* Remove custom env vars
- Now configured as part of RTD project
* Migrate db
* Revert "remove argparse"
This reverts commit 4665805340
.
* Post-process generated schema file
* Fix file formatting
* Add note about schema repo
* no message
* Reduce schema overhead
* Ignore generated files
* Delete generated file
* Update .gitignore
* Add extra split for machine integration
* Remove schema files
- These will be auto-generated too
* Generate individual schema .md files
* Re-add .md files
- Need git commit log to work
* Update .gitignore
* Fix for CI test
* patch machine.api
* Revert previous change
* Formatting fix
* Adjust export step
* Bump API version
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
22 lines
450 B
YAML
22 lines
450 B
YAML
version: 2
|
|
|
|
mkdocs:
|
|
configuration: docs/mkdocs.yml
|
|
|
|
python:
|
|
install:
|
|
- requirements: docs/requirements.txt
|
|
- requirements: requirements.txt
|
|
|
|
build:
|
|
os: "ubuntu-22.04"
|
|
tools:
|
|
python: "3.9"
|
|
jobs:
|
|
post_install:
|
|
- echo "Generating API schema file"
|
|
- pip install -U invoke
|
|
- invoke migrate
|
|
- invoke schema --filename docs/schema.yml --ignore-warnings
|
|
- python docs/extract_schema.py docs/schema.yml
|