mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 12:32:42 +00:00
Fix Markdown Footnotes and Other Improvements (#173)
* fix some typos in Simplified Chinese translations * add markdown-it-footnote * use markdown-it-footnote | fix lint | fix Actions
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
build-site:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Install GraphicsMagick
|
||||
run: sudo apt install graphicsmagick
|
||||
@@ -18,13 +18,13 @@ jobs:
|
||||
sudo apt install ./google-chrome-stable_current_amd64.deb
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Restore node_modules cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
${{ runner.os }}-node_modules
|
||||
|
||||
- name: Restore Asset Cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
key: if-cache
|
||||
path: |
|
||||
@@ -49,6 +49,11 @@ jobs:
|
||||
- name: Build site
|
||||
run: npm run build
|
||||
|
||||
- name: Spawn HTTP server
|
||||
uses: Eun/http-server-action@v1
|
||||
with:
|
||||
directory: dist
|
||||
|
||||
- name: (EN) Generate PDF from HTML
|
||||
run: |
|
||||
google-chrome --headless --print-to-pdf-no-header \
|
||||
@@ -101,7 +106,7 @@ jobs:
|
||||
run: ls -la ${{ github.workspace }}/dist
|
||||
|
||||
- name: Upload PDFs
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: site-pdfs
|
||||
path: |
|
||||
|
||||
Reference in New Issue
Block a user