Skip to content

Commit

Permalink
Upgrade to Astro v3 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 authored Sep 20, 2023
1 parent 3022c9e commit 87fdc9c
Show file tree
Hide file tree
Showing 25 changed files with 1,092 additions and 1,083 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ jobs:
uses: JarvusInnovations/background-action@v1
with:
run: pnpm preview --host 0.0.0.0
wait-on: http://127.0.0.1:3000
wait-on: http://127.0.0.1:4321

- name: Install lychee
run: curl -L https://github.com/lycheeverse/lychee/releases/download/v0.13.0/lychee-v0.13.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz

- name: Run lychee on sitemap
run: cat dist/sitemap-0.xml | grep -Eo "<loc>[^<]+" | sed "s/<loc>//" | sed "s/https/http/" | sed "s/labs.leaningtech.com/127.0.0.1:3000/" | sed "s/rss.xml//" | xargs ./lychee --cache --no-progress
run: cat dist/sitemap-0.xml | grep -Eo "<loc>[^<]+" | sed "s/<loc>//" | sed "s/https/http/" | sed "s/labs.leaningtech.com/127.0.0.1:4321/" | sed "s/rss.xml//" | xargs ./lychee --cache --no-progress
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
3. Clone this repository
4. Install dependencies: `pnpm install`
5. Spawn development server: `pnpm start`
6. Visit [localhost:3000](http://localhost:3000)
6. Visit [localhost:4321](http://localhost:4321)

## Linting

Expand Down
4 changes: 2 additions & 2 deletions lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# pnpm build && pnpm preview --host 0.0.0.0
# lychee dist src/content

base = "http://127.0.0.1:3000"
remap = [ "https://labs.leaningtech.com http://127.0.0.1:3000" ]
base = "http://127.0.0.1:4321"
remap = [ "https://labs.leaningtech.com http://127.0.0.1:4321" ]

# Check links inside `<code>` and `<pre>` blocks
include_verbatim = true
Expand Down
31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,28 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/prefetch": "^0.3.0",
"@astrojs/rss": "^2.4.3",
"@astrojs/sitemap": "^1.3.3",
"@astrojs/svelte": "^3.1.0",
"@astrojs/tailwind": "^4.0.0",
"@tailwindcss/typography": "^0.5.9",
"astro": "^2.8.5",
"astro-expressive-code": "^0.22.2",
"@astrojs/mdx": "^1.1.0",
"@astrojs/prefetch": "^0.4.0",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/svelte": "^4.0.2",
"@astrojs/tailwind": "^5.0.0",
"@tailwindcss/typography": "^0.5.10",
"astro": "^3.1.1",
"astro-expressive-code": "^0.23.0",
"astro-icon": "^0.8.1",
"astro-pagefind": "^1.2.3",
"astro-robots-txt": "^0.5.0",
"astro-pagefind": "^1.2.4",
"astro-robots-txt": "^1.0.0",
"pagefind": "^0.12.0",
"svelte": "^4.1.2",
"sharp": "^0.32.6",
"svelte": "^4.2.1",
"tailwindcss": "^3.3.3"
},
"devDependencies": {
"prettier": "^3.0.0",
"prettier-plugin-astro": "^0.11.0",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-svelte": "^3.0.3",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"prettier": {
"trailingComma": "all",
Expand Down
Loading

0 comments on commit 87fdc9c

Please sign in to comment.