Skip to content

Commit 9580939

Browse files
authored
Merge branch 'ep2025' into visa-form
2 parents c3f41d6 + 5131230 commit 9580939

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+5161
-1580
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: 4 additions & 4 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

@@ -52,11 +52,11 @@ jobs:
5252
run: make preview BRANCH=$GITHUB_BRANCH_NAME
5353

5454
- name: Update PR Comment
55-
uses: actions/github-script@v6
55+
uses: actions/github-script@v7
5656
if: github.event_name == 'pull_request'
5757

5858
with:
59-
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
github-token: ${{ secrets.COMMENT_TOKEN }}
6060
script: |
6161
console.log("Hello world!");
6262
const pr_id = ${{ github.event.number }};

.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: 12 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({
@@ -34,6 +35,16 @@ export default defineConfig({
3435
],
3536
},
3637
site: "https://ep2025.europython.eu",
38+
redirects: {
39+
"/c-api-summit/": "/programme/c-api-summit/",
40+
"/programme/cfp/": "/programme/cfp/",
41+
"/planning/": "https://forms.gle/riw6CvML8ck94A4V9",
42+
"/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18",
43+
"/rust-summit/": "/programme/rust-summit/",
44+
"/sponsor/": "/sponsorship/sponsor/",
45+
"/voting/": "/programme/voting/",
46+
"/wasm-summit/": "/programme/wasm-summit/",
47+
},
3748
integrations: [
3849
mdx(),
3950
sitemap(),
@@ -42,6 +53,7 @@ export default defineConfig({
4253
nesting: true,
4354
}),
4455
metaTags(),
56+
pagefind(),
4557
],
4658
output: "static",
4759
});

package.json

Lines changed: 8 additions & 6 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.0.5",
17-
"@astrojs/react": "^4.1.4",
18-
"@astrojs/sitemap": "^3.2.1",
16+
"@astrojs/mdx": "^4.2.1",
17+
"@astrojs/react": "^4.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.7",
23-
"@types/react-dom": "^18.3.5",
22+
"@types/react": "^19.0.12",
23+
"@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)