Skip to content

Commit 2437105

Browse files
authored
Merge branch 'ep2025' into ep2025-hero
2 parents 546111a + bfab659 commit 2437105

File tree

23 files changed

+1032
-108
lines changed

23 files changed

+1032
-108
lines changed

.github/workflows/build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: make build
3636

3737
- name: Set up SSH key
38-
uses: webfactory/[email protected].0
38+
uses: webfactory/[email protected].1
3939
with:
4040
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
4141

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
run: make install
3434

3535
- name: Build the website
36-
run: make build
36+
run: make build PREVIEW=true
3737

3838
- name: Set up SSH key
39-
uses: webfactory/[email protected].0
39+
uses: webfactory/[email protected].1
4040
with:
4141
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
4242

.github/workflows/rtd-preview.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Read the Docs PR preview
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
documentation-links:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
steps:
15+
- uses: readthedocs/actions/preview@v1
16+
with:
17+
project-slug: "ep-website"
18+
single-version: "true"
19+
message-template: "🖼️ Preview available 🖼️ : {docs-pr-index-url}"

.readthedocs.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
# Specify the language and version your project requires,
12+
# by uncommenting one of the following tools.
13+
#
14+
# python: "3.13"
15+
# ruby: "3.3"
16+
nodejs: "22"
17+
# rust: "1.82"
18+
# golang: "1.23"
19+
20+
commands:
21+
- npm install -g pnpm@latest-10
22+
- make install
23+
- make build PREVIEW=true
24+
- mkdir -p $READTHEDOCS_OUTPUT/html
25+
- cd dist && cp -r * $READTHEDOCS_OUTPUT/html

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ check:
4242
pnpm run astro check
4343

4444
build:
45-
# TODO: update this to just `pnpm build` after resolving the astro-check warnings
46-
pnpm run astro build
45+
pnpm build
4746
# NOTE: also let's find a better way to do this :D
4847
find ./dist/_astro/ -iname '*.jpg' -delete
4948

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import remarkToc from "remark-toc";
88
import rehypeSlug from "rehype-slug";
99
import rehypeAutolinkHeadings from "rehype-autolink-headings";
1010
import metaTags from "astro-meta-tags";
11+
import pagefind from "astro-pagefind";
1112

1213
// https://astro.build/config
1314
export default defineConfig({
@@ -42,6 +43,7 @@ export default defineConfig({
4243
nesting: true,
4344
}),
4445
metaTags(),
46+
pagefind(),
4547
],
4648
output: "static",
4749
});

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,30 @@
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
8-
"build": "astro check && astro build",
8+
"build": "astro check && astro build && pnpm pagefind --site dist",
99
"preview": "astro preview",
1010
"astro": "astro",
1111
"format": "prettier --write --plugin=prettier-plugin-astro ."
1212
},
1313
"dependencies": {
1414
"@astro-community/astro-embed-youtube": "^0.5.6",
1515
"@astrojs/check": "^0.9.4",
16-
"@astrojs/mdx": "^4.1.0",
16+
"@astrojs/mdx": "^4.2.1",
1717
"@astrojs/react": "^4.2.1",
18-
"@astrojs/sitemap": "^3.2.1",
18+
"@astrojs/sitemap": "^3.3.0",
1919
"@astrojs/tailwind": "^5.1.4",
2020
"@fontsource-variable/inter": "^5.1.1",
2121
"@tailwindcss/typography": "^0.5.16",
22-
"@types/react": "^19.0.10",
22+
"@types/react": "^19.0.12",
2323
"@types/react-dom": "^19.0.4",
2424
"astro": "^5.1.6",
2525
"astro-meta-tags": "^0.3.1",
26+
"astro-pagefind": "^1.8.1",
2627
"clsx": "^2.1.1",
2728
"date-fns": "^4.1.0",
2829
"date-fns-tz": "^3.2.0",
2930
"hastscript": "^9.0.0",
31+
"pagefind": "^1.3.0",
3032
"react": "^19.0.0",
3133
"react-dom": "^19.0.0",
3234
"rehype-autolink-headings": "^7.1.0",

pagefind.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
site: dist
2+
glob: "**/*.{html}"

0 commit comments

Comments
 (0)