Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'

- run: pnpm i
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/syncSponsorsData.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ jobs:
sync-sponsors-data:
name: Sync Sponsors Data
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'

- run: pnpm i

- name: sync-sponsors
run: pnpm sync:sponsors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm prettier src/data -w

# tauri-docs PR
- name: Git config
run: |
Expand Down
6 changes: 5 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export default defineConfig({
integrations: [
starlight({
plugins: [
starlightBlog({ authors }),
starlightBlog({
authors,
// We're doing it in `src/components/overrides/Header.astro`
navigation: 'none',
}),
starlightSidebarTopics(
[
{
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,28 @@
"preview": "astro preview"
},
"dependencies": {
"@astrojs/markdown-remark": "^6.3.2",
"@astrojs/rss": "^4.0.12",
"@astrojs/starlight": "0.36.0",
"@astrojs/markdown-remark": "^7.1.0",
"@astrojs/rss": "^4.0.18",
"@astrojs/starlight": "0.38.2",
"@lunariajs/core": "^0.1.1",
"@lunariajs/starlight": "^0.1.1",
"@types/jsdom": "^28.0.1",
"@types/json-schema": "^7.0.15",
"astro": "^5.15.9",
"astro-d2": "^0.8.0",
"astro": "^6.1.3",
"astro-d2": "^0.10.0",
"astro-feelback": "^0.3.4",
"astrojs-service-worker": "^2.0.0",
"jsdom": "^28.0.0",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.14.1",
"rehype-autolink-headings": "^7.1.0",
"sass": "^1.89.0",
"sharp": "^0.34.0",
"shiki": "^3.0.0",
"starlight-blog": "^0.24.0",
"starlight-sidebar-topics": "^0.6.0",
"starlight-links-validator": "^0.18.0"
"sharp": "^0.34.5",
"shiki": "^4.0.2",
"starlight-blog": "^0.26.1",
"starlight-links-validator": "^0.21.0",
"starlight-sidebar-topics": "^0.7.1",
"vite": "^7.3.1"
},
"minimumReleaseAge": 4320,
"packageManager": "pnpm@10.29.3",
Expand Down
24 changes: 11 additions & 13 deletions packages/fetch-sponsors/config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { fileURLToPath } from 'url';
import path from 'path';
import { searchForWorkspaceRoot } from 'vite';
import process from 'node:process';
import path from 'node:path';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
// FIXME: This is used by both this package and the starlight build environment,
// so we can't use `import ProjectContext from 'virtual:starlight/project-context'` here
// (starlight seems to copy all the dependency files out so dynamic relative paths don't work)
const workspaceRoot = searchForWorkspaceRoot(process.cwd());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will take a look and see if Astro has a way to get the workspace location or something tomorrow before merging

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, seems like there is import ProjectContext from 'virtual:starlight/project-context' but this file is used for both running in the fetch-sponsors package and the starlight context...

Will keep this one then


export const OPEN_COLLECTIVE_FILE = path.resolve(
__dirname,
'../../src/data/openCollectiveData.json'
);
export const GITHUB_SPONSORS_FILE = path.resolve(
__dirname,
'../../src/data/githubSponsorsData.json'
);
export const OPEN_COLLECTIVE_FILE = path.resolve(workspaceRoot, 'src/data/openCollectiveData.json');
export const GITHUB_SPONSORS_FILE = path.resolve(workspaceRoot, 'src/data/githubSponsorsData.json');
export const GITHUB_CONTRIBUTORS_FILE = path.resolve(
__dirname,
'../../src/data/githubContributorsData.json'
workspaceRoot,
'src/data/githubContributorsData.json'
);

export const PLATINUM_THRESHOLD = 5_000;
Expand Down
Loading
Loading