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/)
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
# 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
|
||||
# Cleanup files
|
||||
pandoc $HEADER -o $HEADER
|
||||
pandoc $BODY -o $BODY
|
||||
|
||||
# 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"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Android Links
|
||||
=============
|
||||
Selfhosted Links
|
||||
================
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue