Skip to content

feat: rewrite with Starlight #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 50 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
dda898c
feat: start rewriting with Starlight
zlataovce Apr 7, 2025
13845a1
feat: more pages, add a pretty footer
zlataovce Apr 8, 2025
f41dc6c
feat: Waterfall, destructive banner
zlataovce Apr 8, 2025
2af25cf
feat: Folia
zlataovce Apr 8, 2025
36adc71
feat: destructive link card
zlataovce Apr 8, 2025
a0d1cd5
feat: some pages from misc
zlataovce Apr 8, 2025
ad8dac1
feat: patch in project icons
zlataovce Apr 9, 2025
e09a5bd
feat: Javadoc remark plugin
zlataovce Apr 9, 2025
d7492d1
feat: more pages
zlataovce Apr 9, 2025
234e396
feat: Velocity API pages
zlataovce Apr 9, 2025
79cde43
chore: match accent colors with website
zlataovce Apr 9, 2025
d3bd4c9
chore: replace externally hosted images
kashike Apr 9, 2025
847a5ed
refactor: constant replacement for code blocks
zlataovce Apr 10, 2025
ac310d4
feat: some Paper dev pages
zlataovce Apr 10, 2025
0f7fb5c
fix: make content wider on large screens
zlataovce Apr 10, 2025
febbe9a
feat: page cards for index pages
zlataovce Apr 10, 2025
7133385
feat: index pages, permissions, rewrite CONTRIBUTING.md
zlataovce Apr 11, 2025
4590803
feat: replace mermaid with D2
zlataovce Apr 11, 2025
ae749ff
fix: don't spellcheck D2 output
zlataovce Apr 11, 2025
d9c50d5
feat: configuration pages
zlataovce Apr 11, 2025
8e404bc
fix: remove placeholders in config specs
zlataovce Apr 11, 2025
97fe17d
chore: color corrections
zlataovce Apr 11, 2025
861bc0b
fix(config): split array values correctly
zlataovce Apr 11, 2025
a02d9a7
feat: Paper API pages
zlataovce Apr 12, 2025
69f3994
fix: broken links
zlataovce Apr 12, 2025
d26e667
chore: re-enable tracking
zlataovce Apr 12, 2025
733ee1c
fix: oversights, re-add vanilla guide
zlataovce Apr 12, 2025
15d7b79
fix: remove background from diagrams, adjust image size
zlataovce Apr 12, 2025
1d3fe70
feat: start script generator
zlataovce Apr 12, 2025
eb79022
feat: new pages from rebase
zlataovce Apr 13, 2025
1dc52e4
feat: version tag, redirects, fix codeblock line highlights
zlataovce Apr 13, 2025
f54c73a
fix: version tag style changes
zlataovce Apr 13, 2025
1d77e24
fix: don't translate configuration keys+values
zlataovce Apr 13, 2025
0929766
fix: ugh Prettier
zlataovce Apr 13, 2025
ed27fed
feat: sticky project dropdown, fix main page paddings
zlataovce Apr 13, 2025
75e14b0
feat: change the homepage cards to be clickable (#564)
olijeffers0n Apr 13, 2025
fd4ce6c
feat: scroll to current page in sidebar, dropdown touch-ups
zlataovce Apr 13, 2025
834010d
feat: try out always inlining stylesheets
zlataovce Apr 13, 2025
40a8e8c
feat: try out inlining expressive-code stylesheet
zlataovce Apr 13, 2025
4961c6a
refactor: use assets CDN, preload logo
zlataovce Apr 14, 2025
f52c98c
feat: item command converter (#568)
Strokkur424 Apr 14, 2025
cd7dada
refactor: item command converter patch up
zlataovce Apr 14, 2025
0caa3e0
feat: Adventure links, bump dependencies
zlataovce Apr 15, 2025
5845058
fix: `client:only` -> `client:load`
zlataovce Apr 15, 2025
f1637f4
chore: bump dependencies
zlataovce Apr 16, 2025
7c1c339
chore: remove porting remnants, improve contributing guide
zlataovce Apr 16, 2025
1771a74
fix: reset orange for light mode
zlataovce Apr 17, 2025
7a33789
fix: scroll weirdness, make dropdown shadow less pronounced
zlataovce Apr 17, 2025
1dabe6f
fix: Safari fixes
zlataovce Apr 17, 2025
0150ae0
fix: too large images
zlataovce Apr 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 0 additions & 25 deletions .devcontainer/devcontainer.json

This file was deleted.

5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
max_line_length = 100
max_line_length = 120
insert_final_newline = true
trim_trailing_whitespace = true

[{*.md,*.mdx}]
indent_size = 4
13 changes: 6 additions & 7 deletions .github/workflows/build-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,18 @@ jobs:
with:
cache: "pnpm"
node-version: 20
- name: "setup d2"
run: "curl -fsSL https://d2lang.com/install.sh | sh -s --"
- name: "install dependencies"
run: "pnpm install"
- name: "build"
run: "pnpm run build"
env:
CI_ENV: preview
GITHUB_PR_HEAD_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
run: "pnpm build"
- name: "copy cloudflare configuration files to build directory"
run: |
cp _headers build/
cp _redirects build/
cp _headers dist/
cp _redirects dist/
- name: "upload build artifact"
uses: "actions/upload-artifact@v4"
with:
name: "preview-build"
path: "build"
path: "dist"
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: "preview-build-artifact"
with:
name: "preview-build"
path: "build"
path: "dist"
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: "Deploy to Cloudflare Pages"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
with:
cache: "pnpm"
node-version: 20
- name: "setup d2"
run: "curl -fsSL https://d2lang.com/install.sh | sh -s --"
- name: "install dependencies"
run: "pnpm install"
- name: "build"
run: "pnpm run build"
env:
CI_ENV: production
run: "pnpm build"
- name: "copy cloudflare configuration files to build directory"
run: |
cp _headers build/
cp _redirects build/
cp _headers dist/
cp _redirects dist/
- name: "publish (push)"
id: "cloudflare-publish"
uses: "AdrianGonz97/refined-cf-pages-action@v1"
Expand All @@ -42,5 +42,5 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: "papermc-docs"
deploymentName: "Production"
directory: "build"
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
directory: "dist"
githubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Check format
run: pnpm run format:check
run: pnpm format:check
32 changes: 23 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
/.idea
/node_modules
/build
/.vscode
/.docusaurus
.cache-loader
.DS_Store
# build output
dist/
# generated types
.astro/
.cache/

# dependencies
node_modules/

# logs
npm-debug.log*
.pnp.*
/.meta
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

.idea/
9 changes: 6 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
pnpm-lock.yaml
docs/versioned
pnpm-workspace.yaml
*.md
*.mdx
!README.md
!CONTRIBUTING.md
public/d2

# Prettier has issues with Astro
src/components/overrides/Head.astro
src/components/ConfigNode.astro
18 changes: 17 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,21 @@
"arrowParens": "always",
"singleQuote": false,
"semi": true,
"trailingComma": "es5"
"trailingComma": "es5",
"plugins": ["prettier-plugin-astro", "prettier-plugin-svelte", "prettier-plugin-organize-imports"],
"organizeImportsSkipDestructiveCodeActions": true,
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
},
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
2 changes: 1 addition & 1 deletion .typos.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[files]
extend-exclude = [
"docs/versioned" # old documentation shouldn't be checked
"public/d2" # D2 output shouldn't be checked
]

[default]
Expand Down
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
Loading