Skip to content

Commit 7cdf478

Browse files
committed
feat(web): rewrite to use vitepress
1 parent 706b7f9 commit 7cdf478

26 files changed

+969
-4979
lines changed

.github/workflows/publish-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
uses: pnpm/action-setup@v4
2121
with:
2222
package_json_file: 'web/package.json'
23-
- name: Build Astro
23+
- name: Build Vitepress
2424
run: |
2525
cd web
2626
pnpm install --frozen-lockfile
2727
pnpm build
2828
- name: Upload web artifact
2929
uses: actions/upload-pages-artifact@v3
3030
with:
31-
path: web/dist/
31+
path: web/.vitepress/dist/
3232
deploy-website:
3333
name: Deploy Website
3434
runs-on: ubuntu-latest

web/.gitignore

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
1-
#SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
1+
#SPDX-FileCopyrightText: 2025 Linnea Gräf <nea@nea.moe>
22
#
33
#SPDX-License-Identifier: CC0-1.0
4+
node_modules
5+
.vitepress/cache
6+
.vitepress/dist
47

5-
# build output
6-
dist/
7-
# generated types
8-
.astro/
9-
10-
# dependencies
11-
node_modules/
12-
13-
# logs
14-
npm-debug.log*
15-
yarn-debug.log*
16-
yarn-error.log*
17-
pnpm-debug.log*
18-
19-
20-
# environment variables
21-
.env
22-
.env.production
23-
24-
# macOS-specific files
25-
.DS_Store
26-
27-
# jetbrains setting folder
28-
.idea/

web/.vitepress/config.mts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "Firmament",
6+
description: "Reaching for the sky on HyPixel SkyBlock",
7+
themeConfig: {
8+
// https://vitepress.dev/reference/default-theme-config
9+
nav: [
10+
{ text: 'Home', link: '/' },
11+
{ text: 'For Developers', link: '/developers' }
12+
],
13+
14+
sidebar: [
15+
{
16+
text: 'Developers',
17+
items: [
18+
{ text: 'Resource Packs', link: '/developers/texture-packs' },
19+
]
20+
}
21+
],
22+
23+
socialLinks: [
24+
{ icon: 'github', link: 'https://github.com/FirmamentMC/Firmament' },
25+
{ icon: 'modrinth', link: 'https://modrinth.com/mod/firmament' },
26+
]
27+
}
28+
})

web/.vscode/extensions.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

web/.vscode/launch.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

web/REUSE.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
#SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
1+
#SPDX-FileCopyrightText: 2025 Linnea Gräf <nea@nea.moe>
22
#
33
#SPDX-License-Identifier: CC0-1.0
44

55
version = 1
66

7-
[[annotations]]
8-
path = ["src/**/*"]
9-
SPDX-License-Identifier = "GPL-3.0-or-later"
10-
SPDX-FileCopyrightText = ["Linnea Gräf <nea@nea.moe>", "Firmament Contributors"]
11-
127
[[annotations]]
138
path = ["pnpm-lock.yaml", "pnpm-workspace.yaml"]
149
SPDX-License-Identifier = "CC0-1.0"
1510
SPDX-FileCopyrightText = ["Auto Generated"]
16-
1711
[[annotations]]
18-
path = ["*.json", "*.mjs", ".vscode/*"]
12+
path = ["**/*.md", "**/*.png"]
13+
SPDX-License-Identifier = "GPL-3.0-or-later"
14+
SPDX-FileCopyrightText = ["Linnea Gräf <nea@nea.moe>", "Firmament Contributors"]
15+
[[annotations]]
16+
path = ["*.json", "*.mjs", ".vitepress/*"]
1917
SPDX-License-Identifier = "CC0-1.0"
2018
SPDX-FileCopyrightText = ["Linnea Gräf <nea@nea.moe>", "Firmament Contributors"]
19+
20+

web/astro.config.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

web/developers/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Developer Documentation
2+
3+
There are a couple ways you can go about improving the Firmament ecosystem:
4+
5+
- [Create your own resource packs for Firmament](./texture-packs)
6+
- [Contribute to the Firmament codebase directly](https://github.com/FirmamentMC/Firmament/blob/mc-1.21.10/CONTRIBUTING.md)
7+
- Integrating using the Firmament API (not yet released)

web/src/pages/docs/_texture-pack-format.md renamed to web/developers/texture-packs.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
3-
4-
SPDX-License-Identifier: CC0-1.0
5-
-->
61

72
# Custom SkyBlock Items Texture Pack Format
83

web/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# https://vitepress.dev/reference/default-theme-home-page
3+
layout: home
4+
5+
hero:
6+
name: "Firmament"
7+
tagline: "Reaching for the sky on HyPixel SkyBlock"
8+
actions:
9+
- theme: brand
10+
text: Download Now!
11+
link: https://modrinth.com/mod/firmament
12+
- theme: alt
13+
text: Download Packs
14+
link: https://modrinth.com/resourcepacks?q=firmament
15+
16+
features:
17+
- title: Item List
18+
details: Firmament has an item list via integration with REI (with our own item list backend coming soon)
19+
- title: Feature B
20+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
21+
- title: Feature C
22+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
23+
---
24+

0 commit comments

Comments
 (0)