-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
380 changed files
with
13,985 additions
and
35,242 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install Dependencies | ||
run: bun install | ||
|
||
- name: Build | ||
run: bun run build | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.AUTOMATA_TOKEN }} | ||
publish_dir: ./dist | ||
user_name: sernbot | ||
user_email: ${{ secrets.AUTOMATA_EMAIL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Lunaria | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, synchronize] | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
lunaria-overview: | ||
name: Generate Lunaria Overview | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install Dependencies | ||
run: bun install | ||
|
||
- name: Generate Lunaria Overview | ||
uses: yanthomasdev/lunaria-action@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# Dependencies | ||
/node_modules | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# Production | ||
/build | ||
# dependencies | ||
node_modules/ | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.yarn/install-state.gz | ||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
sern-handler-* | ||
/tools/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
lts/* | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** @type {import("prettier").Config} */ | ||
export default { | ||
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], | ||
overrides: [ | ||
{ | ||
files: "*.astro", | ||
options: { | ||
parser: "astro", | ||
}, | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Website | ||
# Website (v2) | ||
|
||
sern's clean, modern and user-friendly web interface. | ||
sern's clean, modern, and user-friendly web interface. (now built with [Starlight](https://starlight.astro.build/)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
import starlightBlog from "starlight-blog"; | ||
import tailwind from "@astrojs/tailwind"; | ||
import { createStarlightTypeDocPlugin } from "starlight-typedoc"; | ||
import lunaria from "@lunariajs/starlight"; | ||
import { GITHUB_URL, DISCORD_URL } from "./src/utils/consts"; | ||
import starlightLinksValidator from 'starlight-links-validator'; | ||
import react from "@astrojs/react"; | ||
const [typeDocV3, typeDocV3Sidebar] = createStarlightTypeDocPlugin(); | ||
const [typeDocV4, typeDocV4Sidebar] = createStarlightTypeDocPlugin(); | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
// TODO: Change this whenever site is deployed to `sern.dev` | ||
site: 'https:/deploy-preview-66--sern-docs.netlify.app', | ||
integrations: [starlight({ | ||
title: "sern", | ||
lastUpdated: true, | ||
defaultLocale: "root", | ||
locales: { | ||
root: { | ||
label: "English", | ||
lang: "en" | ||
}, | ||
es: { | ||
label: "Español" | ||
}, | ||
tr: { | ||
label: "Türkçe" | ||
} | ||
}, | ||
social: { | ||
github: GITHUB_URL, | ||
discord: DISCORD_URL | ||
}, | ||
editLink: { | ||
baseUrl: GITHUB_URL + "/website/edit/main/" | ||
}, | ||
components: { | ||
Head: "~/overrides/Head.astro", | ||
SiteTitle: "~/overrides/SiteTitle.astro", | ||
ThemeSelect: "~/overrides/ThemeSelect.astro", | ||
Sidebar: "~/overrides/Sidebar.astro", | ||
FallbackContentNotice: "~/overrides/FallbackContentNotice.astro" | ||
}, | ||
logo: { | ||
src: "~/assets/logo/navbar-icon.png", | ||
replacesTitle: true | ||
}, | ||
customCss: ["~/styles/global.css"], | ||
sidebar: [ | ||
{ | ||
label: "v4", | ||
items: [{ | ||
...typeDocV4Sidebar, | ||
badge: { | ||
text: "Generated" | ||
} | ||
}, { | ||
label: "CLI", | ||
autogenerate: { | ||
directory: "v4/cli" | ||
} | ||
}, { | ||
label: "Reference", | ||
autogenerate: { | ||
directory: "v4/reference" | ||
} | ||
}, { | ||
label: "Snippets", | ||
autogenerate: { | ||
directory: "v4/snippets" | ||
} | ||
}, { | ||
label: "Transition", | ||
autogenerate: { | ||
directory: "v4/transition" | ||
} | ||
}, { | ||
label: "Tools", | ||
autogenerate: { | ||
directory: "v4/tools" | ||
} | ||
}] | ||
}, | ||
{ | ||
label: "v3", | ||
items: [{ | ||
...typeDocV3Sidebar, | ||
badge: { | ||
text: "Generated" | ||
} | ||
}, { | ||
label: "CLI", | ||
autogenerate: { | ||
directory: "v3/cli" | ||
} | ||
}, { | ||
label: "Guide", | ||
items: [{ | ||
label: "Getting Started", | ||
autogenerate: { | ||
directory: "v3/guide/getting-started" | ||
} | ||
}, { | ||
label: "Walkthrough", | ||
autogenerate: { | ||
directory: "v3/guide/walkthrough" | ||
} | ||
}] | ||
}] | ||
}, | ||
], | ||
plugins: [starlightBlog({ | ||
authors: { | ||
jacoobes: { | ||
name: "jacoobes", | ||
title: "Head Dev", | ||
url: "https://github.com/jacoobes", | ||
picture: "https://github.com/jacoobes.png" | ||
}, | ||
ethan: { | ||
name: "Sr Izan", | ||
title: "Head Dev", | ||
url: "https://github.com/SrIzan10", | ||
picture: "https://github.com/SrIzan10.png" | ||
}, | ||
sern: { | ||
name: "sern Team", | ||
url: GITHUB_URL, | ||
picture: "https://github.com/sernbot.png" | ||
}, | ||
murtatrxx: { | ||
name: "Murtatrxx", | ||
title: "Head Dev", | ||
url: "https://github.com/Murtatrxx", | ||
picture: "https://github.com/Murtatrxx.png" | ||
}, | ||
duro: { | ||
name: "Duro", | ||
title: "Developer", | ||
url: "https://github.com/DuroCodes", | ||
picture: "https://github.com/DuroCodes.png" | ||
} | ||
} | ||
}), typeDocV3({ | ||
tsconfig: './sern-handler-v3/tsconfig.json', | ||
entryPoints: ['./sern-handler-v3/src/index.ts'], | ||
output: 'v3/api', | ||
sidebar: { | ||
collapsed: true | ||
} | ||
}), typeDocV4({ | ||
tsconfig: './sern-handler-v4/tsconfig.json', | ||
entryPoints: ['./sern-handler-v4/src/index.ts'], | ||
output: 'v4/api', | ||
sidebar: { | ||
collapsed: true | ||
} | ||
}), lunaria(), starlightLinksValidator({ | ||
exclude: ['/plugins', '?(../../../..?(/../..))/v{3,4}/api/**/*'] | ||
})] | ||
}), tailwind(), react()] | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.