Skip to content

Commit 7988ea0

Browse files
committed
docs: website setup
0 parents  commit 7988ea0

16 files changed

Lines changed: 7101 additions & 0 deletions

.github/workflows/deploy.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2+
#
3+
name: Deploy VitePress site to Pages
4+
5+
on:
6+
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
7+
# using the `master` branch as the default branch.
8+
push:
9+
branches: [main]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: pages
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# Build job
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
35+
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm
36+
# with:
37+
# version: 9 # Not needed if you've set "packageManager" in package.json
38+
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 22
43+
cache: npm # or pnpm / yarn
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v4
46+
- name: Install dependencies
47+
run: npm ci # or pnpm install / yarn install / bun install
48+
- name: Build with VitePress
49+
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: .vitepress/dist
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
needs: build
61+
runs-on: ubuntu-latest
62+
name: Deploy
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,macos,linux,git
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,linux,git
3+
4+
### Git ###
5+
# Created by git for backups. To disable backups in Git:
6+
# $ git config --global mergetool.keepBackup false
7+
*.orig
8+
9+
# Created by git when using merge tools for conflicts
10+
*.BACKUP.*
11+
*.BASE.*
12+
*.LOCAL.*
13+
*.REMOTE.*
14+
*_BACKUP_*.txt
15+
*_BASE_*.txt
16+
*_LOCAL_*.txt
17+
*_REMOTE_*.txt
18+
19+
### Linux ###
20+
*~
21+
22+
# temporary files which can be created if a process still has a handle open of a deleted file
23+
.fuse_hidden*
24+
25+
# KDE directory preferences
26+
.directory
27+
28+
# Linux trash folder which might appear on any partition or disk
29+
.Trash-*
30+
31+
# .nfs files are created when an open file is removed but is still being accessed
32+
.nfs*
33+
34+
### macOS ###
35+
# General
36+
.DS_Store
37+
.AppleDouble
38+
.LSOverride
39+
40+
# Icon must end with two \r
41+
Icon
42+
43+
44+
# Thumbnails
45+
._*
46+
47+
# Files that might appear in the root of a volume
48+
.DocumentRevisions-V100
49+
.fseventsd
50+
.Spotlight-V100
51+
.TemporaryItems
52+
.Trashes
53+
.VolumeIcon.icns
54+
.com.apple.timemachine.donotpresent
55+
56+
# Directories potentially created on remote AFP share
57+
.AppleDB
58+
.AppleDesktop
59+
Network Trash Folder
60+
Temporary Items
61+
.apdisk
62+
63+
### macOS Patch ###
64+
# iCloud generated files
65+
*.icloud
66+
67+
### Node ###
68+
# Logs
69+
logs
70+
*.log
71+
npm-debug.log*
72+
yarn-debug.log*
73+
yarn-error.log*
74+
lerna-debug.log*
75+
.pnpm-debug.log*
76+
77+
# Diagnostic reports (https://nodejs.org/api/report.html)
78+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
79+
80+
# Runtime data
81+
pids
82+
*.pid
83+
*.seed
84+
*.pid.lock
85+
86+
# Directory for instrumented libs generated by jscoverage/JSCover
87+
lib-cov
88+
89+
# Coverage directory used by tools like istanbul
90+
coverage
91+
*.lcov
92+
93+
# nyc test coverage
94+
.nyc_output
95+
96+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
97+
.grunt
98+
99+
# Bower dependency directory (https://bower.io/)
100+
bower_components
101+
102+
# node-waf configuration
103+
.lock-wscript
104+
105+
# Compiled binary addons (https://nodejs.org/api/addons.html)
106+
build/Release
107+
108+
# Dependency directories
109+
node_modules/
110+
jspm_packages/
111+
112+
# Snowpack dependency directory (https://snowpack.dev/)
113+
web_modules/
114+
115+
# TypeScript cache
116+
*.tsbuildinfo
117+
118+
# Optional npm cache directory
119+
.npm
120+
121+
# Optional eslint cache
122+
.eslintcache
123+
124+
# Optional stylelint cache
125+
.stylelintcache
126+
127+
# Microbundle cache
128+
.rpt2_cache/
129+
.rts2_cache_cjs/
130+
.rts2_cache_es/
131+
.rts2_cache_umd/
132+
133+
# Optional REPL history
134+
.node_repl_history
135+
136+
# Output of 'npm pack'
137+
*.tgz
138+
139+
# Yarn Integrity file
140+
.yarn-integrity
141+
142+
# dotenv environment variable files
143+
.env
144+
.env.development.local
145+
.env.test.local
146+
.env.production.local
147+
.env.local
148+
149+
# parcel-bundler cache (https://parceljs.org/)
150+
.cache
151+
.parcel-cache
152+
153+
# Next.js build output
154+
.next
155+
out
156+
157+
# Nuxt.js build / generate output
158+
.nuxt
159+
dist
160+
161+
# Gatsby files
162+
.cache/
163+
# Comment in the public line in if your project uses Gatsby and not Next.js
164+
# https://nextjs.org/blog/next-9-1#public-directory-support
165+
# public
166+
167+
# vuepress build output
168+
.vuepress/dist
169+
170+
# vuepress v2.x temp and cache directory
171+
.temp
172+
173+
# Docusaurus cache and generated files
174+
.docusaurus
175+
176+
# Serverless directories
177+
.serverless/
178+
179+
# FuseBox cache
180+
.fusebox/
181+
182+
# DynamoDB Local files
183+
.dynamodb/
184+
185+
# TernJS port file
186+
.tern-port
187+
188+
# Stores VSCode versions used for testing VSCode extensions
189+
.vscode-test
190+
191+
# yarn v2
192+
.yarn/cache
193+
.yarn/unplugged
194+
.yarn/build-state.yml
195+
.yarn/install-state.gz
196+
.pnp.*
197+
198+
### Node Patch ###
199+
# Serverless Webpack directories
200+
.webpack/
201+
202+
# Optional stylelint cache
203+
204+
# SvelteKit build / generate output
205+
.svelte-kit
206+
207+
# End of https://www.toptal.com/developers/gitignore/api/node,macos,linux,git
208+
.vitepress/dist
209+
.vitepress/cache
210+
211+
.idea

.vitepress/config.mts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import { defineConfig } from "vitepress";
2+
import { tabsMarkdownPlugin } from "vitepress-plugin-tabs";
3+
import bracketed_spans_plugin from "markdown-it-bracketed-spans"
4+
import container_plugin from "markdown-it-container"
5+
6+
// https://vitepress.dev/reference/site-config
7+
export default defineConfig({
8+
title: "Flowstom",
9+
description:
10+
"A fork of Minestom aimed at simplifying the process of adding custom server-side content. ",
11+
markdown: {
12+
breaks: true,
13+
config(md) {
14+
md.use(tabsMarkdownPlugin);
15+
md.use(bracketed_spans_plugin)
16+
md.use(container_plugin, 'alert', {
17+
render(tokens, idx) {
18+
const token = tokens[idx]
19+
const type = token.info.trim().split(' ')[1] || 'info'
20+
if (token.nesting === 1) {
21+
return `<div class="alert alert-${type}">
22+
<div class="alert-header">${type.toUpperCase()}</div>
23+
<div class="alert-content">\n`
24+
} else {
25+
return `</div></div>\n`
26+
}
27+
}
28+
})
29+
}
30+
},
31+
head: [
32+
["link", { rel: "icon", href: "/favicon.ico" }],
33+
["meta", { name: "theme-color", content: "#d332ff" }],
34+
],
35+
cleanUrls: true,
36+
themeConfig: {
37+
// https://vitepress.dev/reference/default-theme-config
38+
search: {
39+
provider: "local"
40+
},
41+
logo: "/flowstom-logo.png",
42+
nav: [
43+
{ text: "Docs", link: "/docs/getting-started" },
44+
{ text: "Javadoc", link: "https://javadoc.flowstom.net" },
45+
],
46+
47+
sidebar: {
48+
"/docs/": [
49+
{
50+
text: "Getting Started",
51+
link: "/docs/getting-started",
52+
},
53+
{
54+
text: "Project Setup",
55+
link: "/docs/project-setup"
56+
},
57+
],
58+
},
59+
socialLinks: [
60+
{
61+
icon: "github",
62+
link: "https://github.com/Flowstom/Flowstom",
63+
},
64+
{
65+
icon: "discord",
66+
link: "https://discord.gg/ytFkQ7SjGw",
67+
},
68+
],
69+
},
70+
});

0 commit comments

Comments
 (0)