From cfe47619942f4416878ce3680eb09d28fcddadc4 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Sat, 8 May 2021 22:12:40 +0700 Subject: Use hugo for generating markdown --- .build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index 9ad24cb..038ff62 100644 --- a/.build.yml +++ b/.build.yml @@ -3,21 +3,24 @@ oauth: pages.sr.ht/PAGES:RW packages: - golang - hugo - - cargo environment: site: huyngo.srht.site tasks: - install: | - cargo install mdbook git clone https://git.sr.ht/~sircmpwn/openring cd openring go build -o openring sudo cp openring /usr/local/bin/ -- package: | +- embed: git clone https://git.disroot.org/huyngo/conlang - cd conlang - /home/build/.cargo/bin/mdbook build - cd .. + cp -r conlang/src $site/content/conlang + cd $site/content/conlang + mv index.md _index.md + sed "s/\//_/g" SUMMARY.md | sed "s/\._/.\//g" | sed "s/.md/\//g" | grep -v "Introduction" >> _index.md + rm SUMMARY.md + for file in $(find -type f); do ../../add-front-matter.sh $file; done + find -type f | grep "sh$" | xargs rm +- package: | cd $site ./create-webring.sh hugo -- cgit 1.4.1