change auto generate
This commit is contained in:
parent
4753eca6d2
commit
e830805af2
9 changed files with 24 additions and 17 deletions
|
|
@ -115,6 +115,8 @@ Links**](./selfhosted.md).
|
||||||
- [**aria2**](https://aria2.github.io/)
|
- [**aria2**](https://aria2.github.io/)
|
||||||
Lightweight multi-protocol & multi-source command-line download
|
Lightweight multi-protocol & multi-source command-line download
|
||||||
utility
|
utility
|
||||||
|
- [**curl**](https://curl.haxx.se/)
|
||||||
|
Command line tool and library for transferring data with URLs
|
||||||
- [**Mosh**](https://mosh.org/)
|
- [**Mosh**](https://mosh.org/)
|
||||||
Remote terminal application that allows roaming, supports
|
Remote terminal application that allows roaming, supports
|
||||||
intermittent connectivity, and provides intelligent local echo and
|
intermittent connectivity, and provides intelligent local echo and
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,9 @@ Nerdy
|
||||||
: Lightweight multi-protocol & multi-source command-line download
|
: Lightweight multi-protocol & multi-source command-line download
|
||||||
utility
|
utility
|
||||||
|
|
||||||
|
[**curl**](https://curl.haxx.se/)
|
||||||
|
: Command line tool and library for transferring data with URLs
|
||||||
|
|
||||||
[**Mosh**](https://mosh.org/)
|
[**Mosh**](https://mosh.org/)
|
||||||
: Remote terminal application that allows roaming, supports
|
: Remote terminal application that allows roaming, supports
|
||||||
intermittent connectivity, and provides intelligent local echo and
|
intermittent connectivity, and provides intelligent local echo and
|
||||||
|
|
@ -1,17 +1,19 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Cleanup files
|
function generate {
|
||||||
pandoc header.md -o header.md
|
HEADER=./$1/header.md
|
||||||
pandoc body.md -o body.md
|
BODY=./$1/body.md
|
||||||
pandoc header_android.md -o header_android.md
|
OUT=../$2.md
|
||||||
pandoc body_android.md -o body_android.md
|
|
||||||
pandoc header_selfhosted.md -o header_selfhosted.md
|
# Cleanup files
|
||||||
pandoc body_selfhosted.md -o body_selfhosted.md
|
pandoc $HEADER -o $HEADER
|
||||||
|
pandoc $BODY -o $BODY
|
||||||
|
|
||||||
# Generate README.md and android.md
|
# Generate output file
|
||||||
pandoc -H header.md --toc body.md -o ../README.md
|
pandoc -H $HEADER --toc $BODY -o $OUT
|
||||||
pandoc -t gfm ../README.md -o ../README.md
|
pandoc -t gfm $OUT -o $OUT
|
||||||
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
|
generate "default" "README"
|
||||||
pandoc -t gfm ../selfhosted.md -o ../selfhosted.md
|
generate "android" "android"
|
||||||
|
generate "selfhosted" "selfhosted"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
Android Links
|
Selfhosted Links
|
||||||
=============
|
================
|
||||||
|
|
||||||
This is a collection of nice open source software for your server.
|
This is a collection of nice open source software for your server.
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Android Links
|
# Selfhosted Links
|
||||||
|
|
||||||
This is a collection of nice open source software for your server.
|
This is a collection of nice open source software for your server.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue