build instructions and removal of built files (and gh action)
49
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install LaTeXML and dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y latexml
|
||||
sudo apt-get install -y texlive-latex-extra
|
||||
|
||||
- name: Create Python virtual environment
|
||||
run: |
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install beautifulsoup4
|
||||
|
||||
- name: Create export directory
|
||||
run: mkdir -p export
|
||||
|
||||
- name: Build with LaTeXML
|
||||
run: latexmlc --destination=export/index.html pghrt
|
||||
|
||||
- name: Run soup.py post-processing
|
||||
run: venv/bin/python soup.py
|
||||
|
||||
- name: Upload export artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: latexml-export
|
||||
path: export/
|
||||
retention-days: 90
|
||||
5
.gitignore
vendored
@@ -14,4 +14,7 @@ test.py
|
||||
test.html
|
||||
pghrt.pdf
|
||||
contacts.txt
|
||||
*.DS_Store
|
||||
*.DS_Store
|
||||
/venv/
|
||||
/export/index.html
|
||||
/export/img/
|
||||
18
README.md
@@ -3,3 +3,21 @@
|
||||
This is the source code, just in case you wanted to build it yourself for some reason. Or difference tracking line edits. I should've had this originally, but I didn't, sooooo don't worry about it too much. The edits are for posterity more than they are "crucial info that everyone should look at" generally speaking, especially because it's intended to be a resource that is iterated upon and reviewed over time.
|
||||
|
||||
If you are interested in doing a translation or some sort of alternate version, please get in touch!
|
||||
|
||||
## Setting Up
|
||||
This project uses `LaTeXML`. Install it [here](https://math.nist.gov/~BMiller/LaTeXML/get.html)
|
||||
|
||||
You might also need to install `texlive-latex-extra` with your package manager of choice.
|
||||
|
||||
```bash
|
||||
cd pghrt
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install beautifulsoup4
|
||||
```
|
||||
|
||||
## Build Instructions
|
||||
|
||||
```bash
|
||||
latexmlc --destination=export/index.html pghrt
|
||||
venv/bin/python soup.py
|
||||
```
|
||||
2
build.ps1
Normal file → Executable file
@@ -1 +1 @@
|
||||
latexmlc --destination=export/index.html pghrt; python soup.py
|
||||
latexmlc --destination=export/index.html pghrt; python soup.py
|
||||
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 367 KiB |