infi.clickhouse_orm/scripts/generate_toc.sh

19 lines
539 B
Bash
Raw Normal View History

2017-04-28 13:44:45 +03:00
2017-05-02 17:46:47 +03:00
generate_one() {
# Converts Markdown to HTML using Pandoc, and then extracts the header tags
pandoc "$1" | python "../scripts/html_to_markdown_toc.py" "$1" >> toc.md
}
printf "# Table of Contents\n\n" > toc.md
generate_one "index.md"
generate_one "models_and_databases.md"
generate_one "querysets.md"
2020-02-08 13:38:23 +03:00
generate_one "field_options.md"
2017-05-02 17:46:47 +03:00
generate_one "field_types.md"
generate_one "table_engines.md"
generate_one "schema_migrations.md"
generate_one "system_models.md"
generate_one "contributing.md"
2017-05-05 15:31:08 +03:00
generate_one "class_reference.md"