haystack/.github/utils/code_and_docs.sh
Sara Zan a26c042994
Fix typo in code_and_docs.sh (#2662)
* Fix typo in code_and_docs.sh & install ffmpeg in autoformat.yml

* apt update to get ffmpeg

* Update Documentation & Code Style

* Add header and better error message

* Update Documentation & Code Style

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-15 13:50:55 +02:00

27 lines
640 B
Bash
Executable File

#!/bin/bash
echo "========== Apply Black ========== "
black .
echo
echo "========== Convert tutorial notebooks into webpages ========== "
python .github/utils/convert_notebooks_into_webpages.py
echo
echo "========== Generate OpenAPI docs ========== "
python .github/utils/generate_openapi_specs.py
echo
echo "========== Generate JSON schema ========== "
python .github/utils/generate_json_schema.py
echo
echo "========== Generate the API documentation ========== "
set -e # Fails on any error in the following loop
cd docs/_src/api/api/
for file in ../pydoc/* ; do
echo "Processing" $file
pydoc-markdown "$file"
done
echo