Update pipeline and markdown snippets
This commit is contained in:
parent
4ec3a39c8e
commit
15a55e5d3c
43
.vscode/markdown.code-snippets
vendored
43
.vscode/markdown.code-snippets
vendored
|
@ -1,22 +1,59 @@
|
||||||
{
|
{
|
||||||
|
"figure": {
|
||||||
|
"scope": "latex",
|
||||||
|
"prefix": "fig",
|
||||||
|
"body": [
|
||||||
|
"\\begin{figure}[h]",
|
||||||
|
" \\centering",
|
||||||
|
" \\fbox{\\includegraphics[width=1\\textwidth]{resources/$1}}",
|
||||||
|
" \\caption{$2}",
|
||||||
|
" \\label{fig:$3}",
|
||||||
|
" \\source{$4}",
|
||||||
|
"\\end{figure}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"code listing": {
|
||||||
|
"scope": "latex",
|
||||||
|
"prefix": "lst",
|
||||||
|
"body": [
|
||||||
|
"\\begin{code}",
|
||||||
|
" \\inputminted{${1:language}}{resources/${2:source file}}",
|
||||||
|
" \\label{lst:$3}",
|
||||||
|
" \\captionof{listing}{$4}",
|
||||||
|
" \\source{$5}",
|
||||||
|
"\\end{code}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"table": {
|
||||||
|
"scope": "latex",
|
||||||
|
"prefix": "tab",
|
||||||
|
"body": [
|
||||||
|
"\\begin{table}[h]",
|
||||||
|
" \\centering",
|
||||||
|
" \\begin{tabularx}{\\textwidth}{$1}",
|
||||||
|
" $5",
|
||||||
|
" \\end{tabularx}",
|
||||||
|
" \\caption{$2}",
|
||||||
|
" \\label{tab:$3}",
|
||||||
|
" \\source{$4}",
|
||||||
|
"\\end{table}"
|
||||||
|
]
|
||||||
|
},
|
||||||
"online im Internet": {
|
"online im Internet": {
|
||||||
"scope": "markdown",
|
"scope": "markdown",
|
||||||
"prefix": "oii",
|
"prefix": "oii",
|
||||||
"body": "online im Internet"
|
"body": "online im Internet"
|
||||||
},
|
},
|
||||||
|
|
||||||
"autocite": {
|
"autocite": {
|
||||||
"scope": "markdown",
|
"scope": "markdown",
|
||||||
"prefix": "ac",
|
"prefix": "ac",
|
||||||
"body": "[vgl. @${1:bibentry}, ${2:page}]"
|
"body": "[vgl. @${1:bibentry}, ${2:page}]"
|
||||||
},
|
},
|
||||||
|
|
||||||
"label": {
|
"label": {
|
||||||
"scope": "markdown",
|
"scope": "markdown",
|
||||||
"prefix": "lbl",
|
"prefix": "lbl",
|
||||||
"body": "{#${1:type}:${2:id}}"
|
"body": "{#${1:type}:${2:id}}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"reference": {
|
"reference": {
|
||||||
"scope": "markdown",
|
"scope": "markdown",
|
||||||
"prefix": "ref",
|
"prefix": "ref",
|
||||||
|
|
|
@ -24,23 +24,31 @@ type: docker
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: pandoc
|
- name: pandoc
|
||||||
image: fastexitlane/pandoc-latex:latest
|
image: fastexitlane/pandoc-latex:latest
|
||||||
commands:
|
commands:
|
||||||
- ./build.sh pandoc
|
- ./build.sh pandoc
|
||||||
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
|
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
|
||||||
- name: gitea_release
|
- mv out/main.pdf "$(date +"%F-%H-%M")_$DRONE_REPO_NAME.pdf"
|
||||||
|
- name: upload
|
||||||
|
image: plugins/s3
|
||||||
|
settings:
|
||||||
|
bucket: praxisarbeit-artifacts
|
||||||
|
access_key:
|
||||||
|
from_secret: minio_access_key
|
||||||
|
secret_key:
|
||||||
|
from_secret: minio_secret_key
|
||||||
|
source: ./*.pdf
|
||||||
|
region: eu-dogland
|
||||||
|
target: /version-${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://minio.kingofdog.de
|
||||||
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://git.kingofdog.de
|
base_url: https://git.kingofdog.de
|
||||||
files:
|
files: ./*.pdf
|
||||||
- main.pdf
|
|
||||||
when:
|
when:
|
||||||
event:
|
event: tag
|
||||||
- tag
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
Loading…
Reference in New Issue
Block a user