Comfortable Open Writing Kit
1.0K
Write and compose in markdown (or HTML) - convert to HTML, LaTeX, and PDF.
.bib-based references and citations;
among many other things. Also see example output)Built on top of Pandoc (file format converter), and inspired by this pandoc book template.
docker run -u $(id -u):$(id -g) --rm -v "$(pwd):/app" -p 8000:8000 svbaelen/config --init
For default HTML output (and file watcher + HTTP server):
docker run -u $(id -u):$(id -g) --rm -v "$(pwd):/app" -p 8000:8000 svbaelen/cowkit
See the config section to find out where to put what. Other examples can be found here.
You can specify a cowkit version with the image tag, e.g., cowkit:latest. For a non-docker runtime environment, see development
section.
Check available options for the cowkit utility with --help:
docker run -u $(id -u):$(id -g) --rm -v "$(pwd):/app" -p 8000:8000 svbaelen/cowkit --help
docker image pull svbaelen/cowkit:latest
config/config.yaml: main (output-independent) configconfig/<fmt>/config.yaml: output-specific config (can overwrite values set in main config.yaml).config/<fmt>/templates/<file>: templates related to specific output formatssrc/<file>.md: content files written in markdown. Every section, subsection, paragraph, figure, etc. can
have a separate file. In the metadata section of each markdown file (between ---) you can add all kinds of metadata and config options supported
by pandoc (and pandoc extensions), e.g., see here.Set (different) config and/or template files via cowkit CLI arguments.
Additional functionality such as auto-reload can be disabled or extended via the header-includes section in the markdown metadata, e.g., see this example.
Create an alias to one or more relevant docker commands. Note that you can replace .bash_aliases with .bashrc or some other shell config file in your PATH:
# map to `cowkit`
CMD='docker run -u $(id -u):$(id -g) --rm -v "$(pwd):/app" -p 8000:8000 svbaelen/cowkit'
echo "alias cowkit='$CMD'" >> ~/.bash_aliases && source ~/.bash_aliases
Note that CLI arguments still work, e.g.:
cowkit --initcowkit --format pdf --template /path/to/templateNaturally, these commands can be updated or removed anytime in ~/.bash_aliases.
If re-running build process is too slow for you, open a ./config/<fmt>/config.yaml file and comment out stuff. Start with the Lua-based
filters (which will skip bibliography rebuilds). If still too slow, uncomment sections/chapters etc.
Content type
Image
Digest
sha256:60432834a…
Size
545.4 MB
Last updated
over 1 year ago
docker pull svbaelen/cowkit