-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging for CTAN requires documentation to be in a specific PDF format, so I figured rather than duplicating between the markdown README and a new doc I'd just keep it centralised in one. This creates those new documents, updates the previous docs to reflect that, and adds scripts to compile them automatically.
- Loading branch information
Showing
8 changed files
with
592 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Beamer Documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/beamertheme-edmaths-docs.tex' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_latex: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
root_file: docs/beamertheme-edmaths-docs.tex | ||
args: "-pdfps -file-line-error -halt-on-error -interaction=nonstopmode" | ||
|
||
- name: Commit PDF to gh-pages | ||
run: | | ||
mkdir build | ||
mv docs/beamertheme-edmaths-docs.pdf build/ | ||
git fetch --all | ||
git checkout --track origin/gh-pages | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
cp build/beamertheme-edmaths-docs.pdf . | ||
git add ./beamertheme-edmaths-docs.pdf | ||
git commit -m "Update beamertheme-edmaths documentation" | ||
- name: Push changes to gh-pages | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Report Documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/edmaths-docs.tex' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_latex: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
root_file: docs/edmaths-docs.tex | ||
args: "-pdfps -file-line-error -halt-on-error -interaction=nonstopmode" | ||
|
||
- name: Commit PDF to gh-pages | ||
run: | | ||
mkdir build | ||
mv docs/edmaths-docs.pdf build/ | ||
git fetch --all | ||
git checkout --track origin/gh-pages | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
cp build/edmaths-docs.pdf . | ||
git add ./edmaths-docs.pdf | ||
git commit -m "Update edmaths documentation" | ||
- name: Push changes to gh-pages | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.