commit 81b4d9b43bb25d6810b1084a919c769dbca5bc6c Author: Jörn-Michael Miehe Date: Mon Oct 6 22:48:30 2025 +0000 initial commit diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3914eb3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/debian +{ + "name": "lev-templates", + + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "code.lenaisten.de/lenaisten/lev-templates:latest", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "configureZshAsDefaultShell": "true" + }, + "ghcr.io/devcontainers/features/git:1": {} + }, + + // Ensure git is installed before git-lfs + "overrideFeatureInstallOrder": [ + "ghcr.io/devcontainers/features/common-utils", + "ghcr.io/devcontainers/features/git" + ], + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "mhutchie.git-graph" + ] + } + }, + + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fab74f2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/*.tex +/*.pdf diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..0c1d216 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "tomoki1207.pdf" + ], + "unwantedRecommendations": [ + "ms-azuretools.vscode-containers", + "ms-vscode.makefile-tools" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8274d2c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "git.closeDiffOnOperation": true +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f481e25 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,24 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Autodoc: Build & Watch", + "type": "shell", + "command": "autodoc -bw", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Autodoc: Build", + "type": "shell", + "command": "autodoc -b", + "problemMatcher": [], + "group": "build" + } + ] +} \ No newline at end of file diff --git a/lev-dokument.mk b/lev-dokument.mk new file mode 100644 index 0000000..5741ae8 --- /dev/null +++ b/lev-dokument.mk @@ -0,0 +1,34 @@ +#%SRCPAT% \.dok\.md + +include /opt/lenaisten/compile-md.mk + +PANDOCVARS := \ + colorlinks:true \ + csquotes:true \ + hyperrefoptions:pdfa \ + lang:de-DE \ + tables:true + +mdFiles := $(wildcard *.dok.md) +mdSuffix = $(patsubst %.dok.md,%$(1),$(mdFiles)) + +pdfFiles := $(call mdSuffix,.pdf) +texFiles := $(call mdSuffix,.tex) + +.PHONY: all autodoc +all: pdf tex +autodoc: pdf + +.PHONY: pdf tex +pdf: $(pdfFiles) +tex: $(texFiles) + +# pdf + +%.pdf: %.dok.md + $(call md2pdfa,$<,lev-dokument,$@) + +# tex + +%.tex: %.dok.md + $(call md2tex,$<,lev-dokument,$@)