aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-09 17:48:17 +0300
committerCem Keylan <cem@ckyln.com>2020-09-09 17:48:17 +0300
commitbf99c5434d8e2afe41579f510c05be46410ba5e7 (patch)
tree274b6e1b9d26a54e3dfbde112ce86e0244e0696b /build
parent2fd9794e997632cdbf124e96a8006ade0532ab51 (diff)
downloadwebsite-bf99c5434d8e2afe41579f510c05be46410ba5e7.tar.gz
remove submodule from src/docs
Diffstat (limited to 'build')
-rwxr-xr-xbuild13
1 files changed, 2 insertions, 11 deletions
diff --git a/build b/build
index 1d4484e..74c7d9b 100755
--- a/build
+++ b/build
@@ -90,15 +90,6 @@ site_index() {
done
}
-docs_index() (
- cp templates/docs-index src/docs.md
- find src/docs ! -name .git ! -name README | sort | while read -r file; do
- case "$file" in src/docs) continue; esac
- [ -d "$file" ] && printf '### %s\n' "${file#src/docs/}" && continue
- filedest=${file#src} filedest=${filedest%.*}.html
- printf '[%s](%s)\n' "$(gettitle "$file")" "$filedest"
- done >> src/docs.md
-)
genrss() {
find "$1" -type f ! -name index.md | sort -r | while read -r post ; do
@@ -127,8 +118,8 @@ main() {
# Recreate docs directory
rm -rf docs; mkdir -p docs
- # Generate the indexes for blog and the wiki
- site_index; blog_index; docs_index
+ # Generate the indexes.
+ site_index; blog_index
# Generate rss feeds
genrss index news index.html > src/news.xml