mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
increase heading size
This commit is contained in:
@ -5,15 +5,19 @@
|
|||||||
cd jc
|
cd jc
|
||||||
echo Building docs for: package
|
echo Building docs for: package
|
||||||
pydoc-markdown -m jc '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/readme.md
|
pydoc-markdown -m jc '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/readme.md
|
||||||
|
sed -i "" 's/^#### /### /g' ../docs/readme.md
|
||||||
|
|
||||||
echo Building docs for: lib
|
echo Building docs for: lib
|
||||||
pydoc-markdown -m jc.lib '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/lib.md
|
pydoc-markdown -m jc.lib '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/lib.md
|
||||||
|
sed -i "" 's/^#### /### /g' ../docs/lib.md
|
||||||
|
|
||||||
echo Building docs for: utils
|
echo Building docs for: utils
|
||||||
pydoc-markdown -m jc.utils '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/utils.md
|
pydoc-markdown -m jc.utils '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/utils.md
|
||||||
|
sed -i "" 's/^#### /### /g' ../docs/utils.md
|
||||||
|
|
||||||
echo Building docs for: universal parser
|
echo Building docs for: universal parser
|
||||||
pydoc-markdown -m jc.parsers.universal '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/parsers/universal.md
|
pydoc-markdown -m jc.parsers.universal '{"processors":[{"type":"filter","expression":"not name ==\"info\" and default()"},{"type":"pydocmd"}]}' > ../docs/parsers/universal.md
|
||||||
|
sed -i "" 's/^#### /### /g' ../docs/parsers/universal.md
|
||||||
|
|
||||||
# a bit of inception here... jc is being used to help
|
# a bit of inception here... jc is being used to help
|
||||||
# automate the generation of its own documentation. :)
|
# automate the generation of its own documentation. :)
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Generate docs.md
|
|
||||||
# requires pydoc-markdown 2.1.0.post1
|
|
||||||
|
|
||||||
cd jc
|
|
||||||
echo Building docs for: package
|
|
||||||
pydocmd simple jc+ > ../docs/readme.md
|
|
||||||
|
|
||||||
echo Building docs for: lib
|
|
||||||
pydocmd simple lib+ > ../docs/lib.md
|
|
||||||
|
|
||||||
echo Building docs for: utils
|
|
||||||
pydocmd simple utils+ > ../docs/utils.md
|
|
||||||
|
|
||||||
echo Building docs for: universal parser
|
|
||||||
pydocmd simple jc.parsers.universal+ > ../docs/parsers/universal.md
|
|
||||||
|
|
||||||
# a bit of inception here... jc is being used to help
|
|
||||||
# automate the generation of its own documentation. :)
|
|
||||||
|
|
||||||
# pull jc parser objects into a bash array from jq
|
|
||||||
parsers=()
|
|
||||||
while read -r value
|
|
||||||
do
|
|
||||||
parsers+=("$value")
|
|
||||||
done < <(jc -a | jq -c '.parsers[] | select(.plugin != true)')
|
|
||||||
|
|
||||||
# iterate over the bash array
|
|
||||||
for parser in "${parsers[@]}"
|
|
||||||
do
|
|
||||||
parser_name=$(jq -r '.name' <<< "$parser")
|
|
||||||
compatible=$(jq -r '.compatible | join(", ")' <<< "$parser")
|
|
||||||
version=$(jq -r '.version' <<< "$parser")
|
|
||||||
author=$(jq -r '.author' <<< "$parser")
|
|
||||||
author_email=$(jq -r '.author_email' <<< "$parser")
|
|
||||||
|
|
||||||
echo "Building docs for: ${parser_name}"
|
|
||||||
echo "[Home](https://kellyjonbrazil.github.io/jc/)" > ../docs/parsers/"${parser_name}".md
|
|
||||||
pydocmd simple jc.parsers."${parser_name}"+ >> ../docs/parsers/"${parser_name}".md
|
|
||||||
echo "## Parser Information" >> ../docs/parsers/"${parser_name}".md
|
|
||||||
echo "Compatibility: ${compatible}" >> ../docs/parsers/"${parser_name}".md
|
|
||||||
echo >> ../docs/parsers/"${parser_name}".md
|
|
||||||
echo "Version ${version} by ${author} (${author_email})" >> ../docs/parsers/"${parser_name}".md
|
|
||||||
done
|
|
Reference in New Issue
Block a user