Adjust to personal needs
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "latexmk",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/build.sh pandoc",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"dependsOrder": "sequence",
|
||||
"dependsOn": ["clean"]
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/build.sh clean",
|
||||
"group": "none",
|
||||
}
|
||||
]
|
||||
}
|
46
templates/markdown/.drone.yml
Normal file
46
templates/markdown/.drone.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: hunspell_chapters
|
||||
image: fastexitlane/hunspell:latest
|
||||
commands:
|
||||
- export HUNSPELL_FINDINGS=`for filename in chapter/*.md; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore $filename; done | sort | uniq`
|
||||
- echo $HUNSPELL_FINDINGS
|
||||
- '[ -z "$HUNSPELL_FINDINGS" ] && exit 0 || exit 1'
|
||||
failure: ignore
|
||||
- name: hunspell_appendix
|
||||
image: fastexitlane/hunspell:latest
|
||||
commands:
|
||||
- export HUNSPELL_FINDINGS=`for filename in appendix/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
||||
- echo $HUNSPELL_FINDINGS
|
||||
- '[ -z "$HUNSPELL_FINDINGS" ] && exit 0 || exit 1'
|
||||
failure: ignore
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: pandoc
|
||||
image: fastexitlane/pandoc-latex:latest
|
||||
commands:
|
||||
- ./build.sh pandoc
|
||||
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://git.kingofdog.de
|
||||
files:
|
||||
- main.pdf
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
0
templates/markdown/github-workflow.yml
Normal file
0
templates/markdown/github-workflow.yml
Normal file
43
templates/markdown/tasks.json
Normal file
43
templates/markdown/tasks.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "latexmk",
|
||||
"type": "shell",
|
||||
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh pandoc",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"dependsOrder": "sequence",
|
||||
"dependsOn": [
|
||||
"clean"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"type": "shell",
|
||||
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh clean",
|
||||
"group": "none"
|
||||
},
|
||||
{
|
||||
"label": "wordcount",
|
||||
"type": "shell",
|
||||
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest pandoc --lua-filter=/work/wordcount.lua /work/chapter/out.md",
|
||||
"group": "none",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "overusedwords",
|
||||
"type": "shell",
|
||||
"command": "cat chapter/out.md | tr 'A-ZÄÖÜ' 'a-zäöü' | sed --regexp-extended 's/\\\\acf?s?p?\\{([^}]+)\\}/\\1/g' | sed 's/-/ /g' | sed 's/[^a-zäöü ]//g' | tr -s '[[:space:]]' '\\n' | sort | uniq -c | sort -nr | head -n100 > words.txt",
|
||||
"windows": {
|
||||
"command": "wsl cat chapter/out.md `| tr 'A-ZÄÖÜ' 'a-zäöü' `| sed 's/-/ /g' `| sed 's/[^a-zäöü]//g' `> words.txt"
|
||||
},
|
||||
"group": "none",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user