mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-22 23:51:03 +00:00
21 lines
622 B
Python
21 lines
622 B
Python
|
# TODO: Port to Python
|
||
|
# Needed packages: asciidoctor
|
||
|
|
||
|
# List of documentation files
|
||
|
# DOC_FILE_NAMES=$(fd -d 1 -t f --extension adoc --exclude "README.adoc")
|
||
|
#
|
||
|
# for doc_file_name in "${DOC_FILE_NAMES[@]}"; do
|
||
|
# DOC_FILE_NAME_WITHOUT_EXTENSION=${doc_file_name::-5}
|
||
|
# OUTPUT_PATH=../advlabdb/templates/docs/$DOC_FILE_NAME_WITHOUT_EXTENSION.html
|
||
|
#
|
||
|
# # Convert to html with asciidoctor
|
||
|
# asciidoctor -v --backend html5 "$doc_file_name" -o "$OUTPUT_PATH"
|
||
|
#
|
||
|
# # Add the Jinja raw tag
|
||
|
# sed -i "1i {% raw %}" "$OUTPUT_PATH"
|
||
|
# echo -e "\n{% endraw %}" >>"$OUTPUT_PATH"
|
||
|
#
|
||
|
# # Done
|
||
|
# echo "Generated $OUTPUT_PATH"
|
||
|
# done
|