change auto generate

This commit is contained in:
Denis Lehmann 2020-05-05 20:47:18 +02:00
parent 4753eca6d2
commit e830805af2
9 changed files with 24 additions and 17 deletions

View file

@ -115,6 +115,8 @@ Links**](./selfhosted.md).
- [**aria2**](https://aria2.github.io/)
Lightweight multi-protocol & multi-source command-line download
utility
- [**curl**](https://curl.haxx.se/)
Command line tool and library for transferring data with URLs
- [**Mosh**](https://mosh.org/)
Remote terminal application that allows roaming, supports
intermittent connectivity, and provides intelligent local echo and

View file

@ -94,6 +94,9 @@ Nerdy
: Lightweight multi-protocol & multi-source command-line download
utility
[**curl**](https://curl.haxx.se/)
: Command line tool and library for transferring data with URLs
[**Mosh**](https://mosh.org/)
: Remote terminal application that allows roaming, supports
intermittent connectivity, and provides intelligent local echo and

View file

@ -1,17 +1,19 @@
#!/bin/sh
# Cleanup files
pandoc header.md -o header.md
pandoc body.md -o body.md
pandoc header_android.md -o header_android.md
pandoc body_android.md -o body_android.md
pandoc header_selfhosted.md -o header_selfhosted.md
pandoc body_selfhosted.md -o body_selfhosted.md
function generate {
HEADER=./$1/header.md
BODY=./$1/body.md
OUT=../$2.md
# Cleanup files
pandoc $HEADER -o $HEADER
pandoc $BODY -o $BODY
# Generate README.md and android.md
pandoc -H header.md --toc body.md -o ../README.md
pandoc -t gfm ../README.md -o ../README.md
pandoc -H header_android.md --toc body_android.md -o ../android.md
pandoc -t gfm ../android.md -o ../android.md
pandoc -H header_selfhosted.md --toc body_selfhosted.md -o ../selfhosted.md
pandoc -t gfm ../selfhosted.md -o ../selfhosted.md
# Generate output file
pandoc -H $HEADER --toc $BODY -o $OUT
pandoc -t gfm $OUT -o $OUT
}
generate "default" "README"
generate "android" "android"
generate "selfhosted" "selfhosted"

View file

@ -1,4 +1,4 @@
Android Links
=============
Selfhosted Links
================
This is a collection of nice open source software for your server.

View file

@ -1,4 +1,4 @@
# Android Links
# Selfhosted Links
This is a collection of nice open source software for your server.