-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start making website improvements * Fix site build * Fix site formatting * Change the path to bot files * Fix nav bar * Update LilyBot docs * Update LilyBot docs * Revert "Update LilyBot docs" This reverts commit e9a558d. * Update LilyBot docs * Update LilyBot docs * Update about page * Update LilyBot docs * Use correct size and src for webmanifest * Clean up config.ts and remove un-needed plugin stuff * Work on fixing the eyeball crime * Add allium to improvements * Update colours a little bit and re-arrange code * Switch back to pnpm again * Update styling and colours * Remove contributors listing and update text colours * Fix container colours * Fix container colours * Update LilyBot docs * Update LilyBot docs * Update Vuepress * Add description and meta tags, add more info to the about Lily page * Update contributing guidelines * Update vue and vuepress * Revert "Update vue and vuepress" This reverts commit 1fac196. * Make updates to site * Update LilyBot docs * Do some websiting! * Make contributing guidelines refer to this repo as the website not LilyBot I didn't copy and paste it back in the day shush * Re-fill the navbar with the stuff * Waa waa formatting * Update website and tempest description * Add missing dependency * Change pnpm-lock.yaml to hopefully actually build * Maybe? * Update vuepress, apply hopes and prayers * Build on github before beaming to cloudflare? --------- Co-authored-by: = <=>
- Loading branch information
1 parent
ef89035
commit a77f0e2
Showing
21 changed files
with
4,127 additions
and
7,042 deletions.
There are no files selected for viewing
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
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,65 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy-preview: | ||
environment: Site | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
deployments: write | ||
|
||
name: Deploy Prod | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 8 | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
|
||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
|
||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: "${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yml') }}" | ||
|
||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Build site | ||
run: pnpm install && pnpm run docs:build | ||
|
||
- name: Deploy to Cloudflare Pages | ||
uses: AdrianGonz97/refined-cf-pages-action@v1 | ||
|
||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
projectName: website | ||
directory: docs/.vuepress/dist | ||
deploymentName: Site |
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,78 @@ | ||
name: Preview | ||
|
||
on: | ||
pull_request_target: | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.event.number || github.sha }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy-preview: | ||
environment: Preview | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
deployments: write | ||
|
||
name: Deploy Preview | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 8 | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
|
||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
|
||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: "${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}" | ||
|
||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Build site | ||
run: pnpm install && pnpm run build | ||
|
||
- name: Deploy to Cloudflare Pages | ||
id: deploy | ||
uses: AdrianGonz97/refined-cf-pages-action@v1 | ||
|
||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
projectName: kordex-site-preview | ||
directory: build | ||
deploymentName: Preview | ||
|
||
- name: Update PR Comment | ||
uses: thollander/actions-comment-pull-request@v2 | ||
|
||
with: | ||
comment_tag: "preview-deployment" | ||
|
||
message: | | ||
✨ The preview for your Pull Request has been built, and may be found here: [${{steps.deploy.outputs.url}}](${{steps.deploy.outputs.url}}) |
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
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,105 +1,93 @@ | ||
import {defineUserConfig} from "@vuepress/cli"; | ||
import {defaultTheme} from "vuepress"; | ||
import {backToTopPlugin} from "@vuepress/plugin-back-to-top"; | ||
// noinspection JSUnusedGlobalSymbols | ||
|
||
import {viteBundler} from '@vuepress/bundler-vite' | ||
import {defaultTheme} from "@vuepress/theme-default"; | ||
import {defineUserConfig} from "vuepress" | ||
|
||
|
||
export default defineUserConfig({ | ||
base: '/', | ||
lang: 'en-US', | ||
title: 'HyacinthBots', | ||
description: 'Discord bots, open source, free, forever.', | ||
base: '/', | ||
lang: 'en-US', | ||
title: 'HyacinthBots', | ||
description: 'Discord bots, open source, free, forever.', | ||
bundler: viteBundler(), | ||
|
||
theme: defaultTheme({ | ||
logo: 'https://raw.githubusercontent.com/HyacinthBots/art/main/branding/icons/Hyacinth%20transparent%20icon.png', | ||
toggleColorMode: 'Toggle color mode', | ||
toggleSidebar: 'Toggle sidebar', | ||
contributors: false, | ||
notFound: ['The page you are looking for does not exist or has been moved!'], | ||
theme: defaultTheme({ | ||
logo: 'https://raw.githubusercontent.com/HyacinthBots/art/main/branding/icons/Hyacinth%20transparent%20icon.png', | ||
contributors: false, | ||
notFound: ['The page you are looking for does not exist or has been moved! :('], | ||
|
||
editLink: true, | ||
editLinkText: 'Help improve this page on GitHub', | ||
editLinkPattern: ':repo/edit/:branch/:path', | ||
editLink: true, | ||
editLinkText: 'Improve this page on GitHub', | ||
editLinkPattern: ':repo/edit/:branch/:path', | ||
|
||
docsRepo: 'https://github.com/HyacinthBots/website', | ||
docsBranch: 'main', | ||
docsDir: 'docs', | ||
repo: 'https://github.com/HyacinthBots/', | ||
docsRepo: 'https://github.com/HyacinthBots/website', | ||
docsBranch: 'main', | ||
docsDir: 'docs', | ||
|
||
navbar: [ | ||
{ | ||
text: 'Home', | ||
link: '/' | ||
}, | ||
{ | ||
text: 'About', | ||
link: '/about.md' | ||
}, | ||
{ | ||
text: 'Bots', | ||
children: [ | ||
{ | ||
text: "Lily", | ||
link: '/bots/lily.md' | ||
}, | ||
{ | ||
text: "Watchdog", | ||
link: '/bots/watchdog.md' | ||
}, | ||
{ | ||
text: "Allium", | ||
link: '/bots/allium.md' | ||
}] | ||
} | ||
], | ||
sidebar: [ | ||
{ | ||
text: 'Home', | ||
link: '/', | ||
}, | ||
{ | ||
text: 'About', | ||
link: '/about.md' | ||
}, | ||
{ | ||
text: 'Bots', | ||
link: '/bots.md', | ||
children: [ | ||
{ | ||
text: 'Lily', | ||
link: '/bots/lily.md', | ||
children: [ | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/HyacinthBots/LilyBot' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'Watchdog', | ||
link: '/bots/watchdog.md', | ||
children: [ | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/HyacinthBots/watchdog' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'Allium', | ||
link: '/bots/allium.md', | ||
children: [ | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/HyacinthBots/allium' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
), | ||
navbar: [ | ||
{ | ||
text: 'Discord', | ||
link: 'https://discord.gg/hy2329fcTZ', | ||
}, | ||
{ | ||
text: 'Buy us a coffee!', | ||
link: 'https://buymeacoffee.com/hyacinthbots', | ||
} | ||
], | ||
|
||
plugins: [ | ||
backToTopPlugin() | ||
] | ||
sidebar: [ | ||
{ | ||
text: 'Home', | ||
link: '/', | ||
}, | ||
{ | ||
text: 'About', | ||
link: '/about.md' | ||
}, | ||
{ | ||
text: 'Bots', | ||
link: '/bots.md', | ||
prefix: "/bots/", | ||
children: [ | ||
{ | ||
text: 'Lily', | ||
link: 'lily/about-lily.md', | ||
children: [ | ||
{ | ||
text: 'Commands', | ||
link: 'lily/commands.md' | ||
}, | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/HyacinthBots/LilyBot' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'Watchdog', | ||
link: 'watchdog/about-watchdog.md', | ||
children: [ | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/HyacinthBots/watchdog' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'Allium', | ||
link: 'allium/about-allium.md', | ||
children: [ | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/HyacinthBots/allium' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
sidebarDepth: 1 | ||
}), | ||
}) |
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
Oops, something went wrong.