TeX4TUM is an online library of small articles of the topics:
Check out the demo: https://www.tex4tum.de
The articles are based on the cheat sheets from www.latex4ei.de
Markdown (MD) files are converted in three steps
If you want to contribute articles, clone the repo and test the build process locally.
Setup and install dependencies locally
make setup
or use our Dockerfile container
docker-compose up # Now you can access the website at localhost:8000
# Build
make
# Serve with hot reload at localhost:8000
make run
# Serve with hot reload at localhost:8000 including _draft articles
# No acronyms replacement to improve build time
make draft
We use pre-commit to manage our git pre-commit hooks.
pre-commit
is automatically installed from requirements.txt
.
To set it up, call
git config --unset-all core.hooksPath # may fail if you don't have any hooks set, but that's ok
pre-commit install --overwrite
With pre-commit
, you don't use your linters/formatters directly anymore, but through pre-commit
:
pre-commit run --file path/to/file1.cpp tools/second_file.py # run on specific file(s)
pre-commit run --all-files # run on all files tracked by git
pre-commit run --from-ref origin/master --to-ref HEAD # run on all files changed on current branch, compared to master
pre-commit run <hook_id> --file <path_to_file> # run specific hook on specific file
_article
: the content source files in Markdown (input)overrides
: Additional files for Matieral mkDocs_plugins
: Our Ruby scripts for processing Markdown source files_sass
: Bootstrap SASS and custom CSS3 filesdocs
: The rendered website in HTML (output)res
: static files such as images and codetmp
: temporary build files