initial commit with stuff from arise
Some checks are pending
Deploy Arise to html branch / Deploy Arise (push) Waiting to run
Some checks are pending
Deploy Arise to html branch / Deploy Arise (push) Waiting to run
This commit is contained in:
commit
0faf445b39
62 changed files with 3401 additions and 0 deletions
22
lib/functions/subshell/build_page_tree.sh
Normal file
22
lib/functions/subshell/build_page_tree.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
#############
|
||||
# DESCRIPTION
|
||||
#############
|
||||
# Builds all pages on the site by calling "build_page" for every markdown file it can find outside of /config.
|
||||
#
|
||||
# Note that this function actually takes the root site directory to recursively build from as an argument.
|
||||
#
|
||||
#############
|
||||
# Usage:
|
||||
# build_page /path/to/arise-out/
|
||||
|
||||
build_page_tree() (
|
||||
cd $1
|
||||
|
||||
find . -type f -name "index.md" -not \( -path ./config -prune \) | while read fname; do
|
||||
build_page $fname
|
||||
|
||||
# Add the source file to the list of files to remove in cleanup
|
||||
echo "$(realpath $fname)" >> $removelist
|
||||
done
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue