layout | title |
---|---|
pubtex |
PubTeX |
This is a template for publicly hosting LaTeX files with GitHub actions.
It roughly works as follows:
- You write your latex files as you would normally
- Whenever you push your changes to
main
, your files are compiled and pushed to thegh-pages
branch. - You can now download them directly or publish the branch with GitHub Pages
You also get this nice front page for free :)
- Use this template (you only need to include the
main
branch) - List all
.tex
files you want to compile in.github/workflows/publish.yml
under thefiles
option - If you want to generate handouts for some Beamer slides, list those files under the
handouts
option - Create SSH deploy key
- (optional) Enable GitHub Pages for the
gh-pages
branch
Name | Description | Default |
---|---|---|
deploy_key |
Deploy key used to deploy to GitHub Pages | |
files |
Space-separated list of files that should be compiled | |
handouts |
Space-separated list of Beamer files that handouts should be generated for | |
publish_dir |
The directory that should be published with GitHub Pages | dist |
index_page |
Path to the Markdown file that should be the main page | README.md |
pre_compile_command |
Command to run before compiling LaTeX sources | tlmgr update --self && tlmgr update --all |