Skip to content

Commit ae7af6f

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/vite-6.3.6
2 parents 8f7741b + afc3c22 commit ae7af6f

26 files changed

+220
-229
lines changed

.all-contributorsrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"projectName": "all-contributors",
2+
"projectName": "all-contributors.github.io",
33
"projectOwner": "all-contributors",
44
"files": [
55
"README.md"
@@ -1042,7 +1042,8 @@
10421042
"contributions": [
10431043
"security",
10441044
"review",
1045-
"doc"
1045+
"doc",
1046+
"infra"
10461047
]
10471048
},
10481049
{

.github/workflows/build-website.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy Site to GitHub Pages
22

33
on:
44
push:
55
branches:
6-
- docs-upgrade
6+
- main
77
jobs:
88
build:
99
name: Build Astro site
@@ -12,7 +12,7 @@ jobs:
1212
- uses: /actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1313
with:
1414
fetch-depth: 0
15-
- uses: actions/setup-node@dbe1369d7be17e7823f8c1ee1ae8bec5779239dd # v3.9.0
15+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1616
with:
1717
node-version: 23
1818
cache: npm
@@ -41,4 +41,4 @@ jobs:
4141
steps:
4242
- name: Deploy to GitHub Pages
4343
id: deployment
44-
uses: actions/deploy-pages@f33f41b675f0ab2dc5a6863c9a170fe83af3571e # v4.0.0
44+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v5
17-
- uses: actions/setup-node@v5
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1818
- run: npm ci
1919
- run: npm run lint

.github/workflows/offline-link-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v5
14+
- run: npm ci
15+
- run: npm run build
1416
- uses: lycheeverse/lychee-action@v2
1517
with:
1618
# Only check local files, no network requests
17-
args: --config './lychee.toml' --no-progress --offline --root-dir "$GITHUB_WORKSPACE/public/" 'src/content/docs/**/*.md'
19+
args: --config './lychee.toml' --no-progress --offline --root-dir "$GITHUB_WORKSPACE/dist/" dist/**/*.html
1820
# Fail job when lychee returns a non-zero exit code
1921
fail: true

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ dist
3535
# Astro generated types
3636
.astro/
3737

38-
3938
.lycheecache
4039
dist/
4140

README.md

Lines changed: 90 additions & 90 deletions
Large diffs are not rendered by default.

astro.config.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
3+
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
4+
import rehypeSlug from 'rehype-slug';
35
import starlight from '@astrojs/starlight';
46
import sitemap from '@astrojs/sitemap';
57
import tailwindcss from '@tailwindcss/vite';
68

79
export default defineConfig({
810
site: 'https://all-contributors.github.io',
911
base: '',
12+
markdown: {
13+
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: 'append' }]],
14+
},
1015
output: 'static',
1116

1217
redirects: {
1318
// Later we can put redirects here if needed
1419
},
15-
1620
integrations: [
1721
starlight({
1822
customCss: [
@@ -65,8 +69,9 @@ export default defineConfig({
6569
],
6670
},
6771
],
68-
}), sitemap()],
69-
72+
}),
73+
sitemap()
74+
],
7075
vite: {
7176
plugins: [tailwindcss()],
7277
resolve: {

lychee.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ require_https = true
3838

3939
# Fallback extensions to apply when a URL does not specify one.
4040
# This is common in documentation tools that cross-reference files without extensions.
41-
fallback_extensions = ["md", "mdx", "html"]
41+
fallback_extensions = ["html"]
4242

4343
############################# Exclusions ##########################
4444

4545
# Exclude URLs and mail addresses from checking. The values are treated as regular expressions
46-
exclude = []
46+
exclude = [
47+
"^file://.*#"
48+
]
4749

4850
# Check fragments - internal links in pages
4951
include_fragments = true

package-lock.json

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"build": "astro build",
1515
"preview": "astro preview",
1616
"astro": "astro",
17-
"link-check-md": "lychee src/content/docs/**/*.md --root-dir $(pwd)/public",
18-
"link-check-md-offline": "lychee src/content/docs/**/*.md --root-dir $(pwd)/public --offline",
17+
"link-check-offline": "lychee --config ./lychee.toml --offline --root-dir \"$(pwd)/dist/\" --remap \"all-contributors.github.io $(pwd)/dist/\" 'dist/**/*.html'",
18+
"link-check": "lychee --config ./lychee.toml --root-dir \"$(pwd)/dist/\" --remap \"all-contributors.github.io $(pwd)/dist/\" 'dist/**/*.html'",
1919
"lint": "markdownlint **/*.{md,mdx} --ignore node_modules",
2020
"lint-fix": "markdownlint **/*.{md,mdx} --ignore node_modules --fix"
2121
},
@@ -25,10 +25,12 @@
2525
"@astrojs/starlight-tailwind": "^4.0.1",
2626
"@tailwindcss/vite": "^4.1.13",
2727
"astro": "^5.6.1",
28-
"sharp": "^0.34.2",
29-
"autoprefixer": "^10.4.21",
28+
"autoprefixer": "^10.4.21",
3029
"postcss": "^8.5.6",
30+
"rehype-autolink-headings": "^7.1.0",
31+
"rehype-slug": "^6.0.0",
3132
"sass-embedded": "^1.92.1",
33+
"sharp": "^0.34.2",
3234
"tailwindcss": "^4.1.13"
3335
},
3436
"devDependencies": {

0 commit comments

Comments
 (0)