-
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.
* feat: migrate to starlight * fix: add .gitignore * fix: delete node_modules directory * chore: update lockfile * fix: remove .DS_STORE files * feat: add github pages workflow * feat: add netlify.toml, remove unneeded import on sponsors page * fix: fix netlify publish directory * fix: add .nvmrc * fix: add checking for typedoc file * fix: fix github pages script `bun build` -> `bun run build` * fix: fix publish_dir in github pages workflow * feat: add custom Head file for open-graph * fix: hopefully fix deploying * fix: fix git repo path * fix: maybe fix build? * fix: maybe fix build idk at this point * fix: this should fix typedoc but it's throwing errors for no reason * fix: my disappointment is immeasurable and my day is ruined * fix: make API docs collapsed by default * fix: remove sern-handler before git clone * fix: fix og:image for sern by adding sern-logo to public folder * fix: fix image path i think * fix: fix services tabs * on push no branch (for testing) * also add workflow dispatch * move to automata pushing & change back the branch rule * remove sern capitalization --------- Co-authored-by: Izan Gil <[email protected]>
- Loading branch information
Showing
232 changed files
with
4,140 additions
and
33,070 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: rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install && cd .. && 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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# Dependencies | ||
/node_modules | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# Production | ||
/build | ||
# dependencies | ||
node_modules/ | ||
sern-handler | ||
|
||
# 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 |
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 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,95 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import starlight from '@astrojs/starlight'; | ||
import starlightBlog from 'starlight-blog'; | ||
import tailwind from "@astrojs/tailwind"; | ||
import starlightDocSearch from '@astrojs/starlight-docsearch'; | ||
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc'; | ||
|
||
export default defineConfig({ | ||
integrations: [starlight({ | ||
title: 'sern', | ||
social: { | ||
github: 'https://github.com/sern-handler', | ||
discord: 'https://discord.gg/DwbF5H5JgQ', | ||
}, | ||
components: { | ||
ThemeSelect: './src/components/ThemeSelect.astro', | ||
Head: './src/components/Head.astro', | ||
}, | ||
logo: { | ||
src: './src/assets/logo/navbar-icon.png', | ||
replacesTitle: true, | ||
}, | ||
customCss: [ | ||
'./src/styles/global.css', | ||
], | ||
sidebar: [ | ||
typeDocSidebarGroup, | ||
{ | ||
label: 'CLI', | ||
autogenerate: { directory: 'cli' }, | ||
}, | ||
{ | ||
label: 'Guide', | ||
items: [ | ||
{ | ||
label: 'Getting Started', | ||
autogenerate: { directory: 'guide/getting-started' }, | ||
}, | ||
{ | ||
label: 'Walkthrough', | ||
autogenerate: { directory: 'guide/walkthrough' }, | ||
}, | ||
], | ||
}, | ||
], | ||
plugins: [ | ||
starlightDocSearch({ | ||
appId: 'AA9S5J9NYT', | ||
apiKey: 'ccfe6abc4d12ac6f882565a9d0caafb1', | ||
indexName: 'sern', | ||
}), | ||
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: 'https://github.com/sern-handler', | ||
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', | ||
}, | ||
} | ||
}), | ||
starlightTypeDoc({ | ||
tsconfig: './sern-handler/tsconfig.json', | ||
entryPoints: ['./sern-handler/src/index.ts'], | ||
autogenerate: { | ||
directory: 'api', | ||
}, | ||
sidebar: { collapsed: true }, | ||
}), | ||
], | ||
}), tailwind()] | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.