build instructions and removal of built files (and gh action)

This commit is contained in:
Spax
2025-11-02 00:55:43 -07:00
parent 0ea85d1885
commit ee91611c92
17 changed files with 72 additions and 2835 deletions

49
.github/workflows/build.yml vendored Normal file
View 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
View File

@@ -14,4 +14,7 @@ test.py
test.html
pghrt.pdf
contacts.txt
*.DS_Store
*.DS_Store
/venv/
/export/index.html
/export/img/

View File

@@ -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
View File

@@ -1 +1 @@
latexmlc --destination=export/index.html pghrt; python soup.py
latexmlc --destination=export/index.html pghrt; python soup.py

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 KiB

File diff suppressed because it is too large Load Diff