Skip to content

Commit

Permalink
Migrate to Astro (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthierman authored Aug 28, 2023
1 parent f545a7e commit 1df3761
Show file tree
Hide file tree
Showing 568 changed files with 21,866 additions and 11,657 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/jekyll.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Astro Deploy

on:
workflow_dispatch:
push:
branches: [master]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

env:
BUILD_PATH: "."

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "*"
check-latest: true
cache: "pnpm"

- name: Setup pages
id: pages
uses: actions/configure-pages@v3

- run: |
pnpm install --frozen-lockfile
pnpm build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ${{ env.BUILD_PATH }}/dist

deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.pages_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
9 changes: 4 additions & 5 deletions .github/workflows/surge-xt-manual-pdf.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Surge XT Manual PDF

on:
push:
paths:
- 'manual_xt/**'
# push:
# paths:
# - "src/content/pages/manual-xt.mdx"
workflow_dispatch:

permissions:
Expand All @@ -24,8 +24,7 @@ jobs:
sudo apt install ./pandoc-3.1.1-1-amd64.deb;
wget -q https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb;
sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb;
cd manual_xt;
pandoc -f gfm -t html Surge-XT.md -o Surge-XT-Manual.pdf
pandoc -f gfm -t html src/content/pages/manual-xt.mdx -o Surge-XT-Manual.pdf
--css ./pdf.css -V title:""
--pdf-engine-opt="--footer-font-name" --pdf-engine-opt="Lato"
--pdf-engine-opt="--footer-font-size" --pdf-engine-opt="12"
Expand Down
28 changes: 20 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
.Gemfile.swp
.bundle/
vendor/
Gemfile.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
12 changes: 12 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
tabWidth: 4
bracketSameLine: true
overrides:
- files: ["*.yml", "*.yaml"]
options:
tabWidth: 2
- files: ["*.astro"]
options:
parser: "astro"
plugins:
- "prettier-plugin-astro"
- "prettier-plugin-tailwindcss"
24 changes: 0 additions & 24 deletions 404.html

This file was deleted.

16 changes: 0 additions & 16 deletions Gemfile

This file was deleted.

Loading

0 comments on commit 1df3761

Please sign in to comment.