Skip to content

Commit 7d53d36

Browse files
committed
add basic website
1 parent 935d55d commit 7d53d36

30 files changed

Lines changed: 23463 additions & 23 deletions

‎.gitattributes‎

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

‎.github/workflows/static.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Build website
37+
shell: sh
38+
run: |
39+
yarn
40+
yarn build
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: 'build'
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
112
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

‎CNAME‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
whisper.appsinacup.com

‎LICENSE‎

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

‎README.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

‎babel.config.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

‎docs/documentation/_category_.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"label": "Documentation",
3+
"position": 3,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Learn what every property of the Godot Whisper."
7+
}
8+
}
9+

‎docs/intro.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
TODO
6+
7+
# Getting Started
8+
9+
Get started by **installing the plugin** and then enabling it.
10+
11+
## What you'll need
12+
13+
- [Godot](https://godotengine.org/download/) version 4 or above.
14+
- [Godot Whisper](https://godotengine.org/asset-library/asset/2638) plugin from the Godot Asset Library
15+
16+
## Install the plugin
17+
18+
First create a new **Godot Project**. Next click on the **AssetLib** tab and search for the **Godot Whisper** addon and click on it.
19+
20+
![installing the plugin](/img/intro/install-addon.png)
21+
22+
Then click **Download**.
23+
24+
![download plugin](/img/intro/download-addon.png)
25+
26+
and **Install**.
27+
28+
![click install](/img/intro/click-install.png)
29+
30+
## Activate the plugin
31+
32+
Go to **Project** -> **Project Settings**. Check the **Enabled** checkbox for **Godot Whisper**.
33+
34+
![activate plugin](/img/intro/activate-plugin.png)

‎docusaurus.config.js‎

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
// @ts-check
2+
// `@type` JSDoc annotations allow editor autocompletion and type checking
3+
// (when paired with `@ts-check`).
4+
// There are various equivalent ways to declare your Docusaurus config.
5+
// See: https://docusaurus.io/docs/api/docusaurus-config
6+
7+
import { themes as prismThemes } from 'prism-react-renderer';
8+
9+
/** @type {import('@docusaurus/types').Config} */
10+
const config = {
11+
title: 'Godot Whisper',
12+
tagline: '(On Device) Whisper (audio to text) plugin for Godot',
13+
favicon: 'img/whisper_logo.png',
14+
15+
// Set the production url of your site here
16+
url: 'https://whisper.appsinacup.com',
17+
// Set the /<baseUrl>/ pathname under which your site is served
18+
// For GitHub pages deployment, it is often '/<projectName>/'
19+
baseUrl: '/',
20+
21+
// GitHub pages deployment config.
22+
// If you aren't using GitHub pages, you don't need these.
23+
organizationName: 'appsinacup', // Usually your GitHub org/user name.
24+
projectName: 'godot-whisper', // Usually your repo name.
25+
26+
onBrokenLinks: 'throw',
27+
onBrokenMarkdownLinks: 'warn',
28+
29+
// Even if you don't use internationalization, you can use this field to set
30+
// useful metadata like html lang. For example, if your site is Chinese, you
31+
// may want to replace "en" with "zh-Hans".
32+
i18n: {
33+
defaultLocale: 'en',
34+
locales: ['en'],
35+
},
36+
37+
presets: [
38+
[
39+
'classic',
40+
/** @type {import('@docusaurus/preset-classic').Options} */
41+
({
42+
docs: {
43+
sidebarPath: './sidebars.js',
44+
},
45+
theme: {
46+
customCss: './src/css/custom.css',
47+
},
48+
}),
49+
],
50+
],
51+
52+
themeConfig:
53+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
54+
({
55+
image: 'img/banner_godot_whisper.jpg',
56+
navbar: {
57+
title: 'Godot Whisper',
58+
logo: {
59+
alt: 'Godot Whisper Logo',
60+
src: 'img/whisper_logo.png',
61+
},
62+
items: [
63+
{
64+
type: 'docSidebar',
65+
sidebarId: 'tutorialSidebar',
66+
position: 'left',
67+
label: 'Documentation',
68+
},
69+
{
70+
href: 'https://github.com/sponsors/appsinacup',
71+
label: 'Donate',
72+
position: 'right',
73+
className: 'header-button-donate'
74+
},
75+
{
76+
href: 'https://discord.gg/v649emcpAu',
77+
label: 'Discord',
78+
position: 'right',
79+
className: 'header-button-donate'
80+
},
81+
{
82+
href: 'https://appsinacup.com',
83+
label: 'Apps In A Cup',
84+
position: 'right',
85+
},
86+
{
87+
href: 'https://github.com/appsinacup/godot-whisper',
88+
label: 'GitHub',
89+
position: 'right',
90+
},
91+
],
92+
},
93+
footer: {
94+
style: 'dark',
95+
links: [
96+
{
97+
title: 'Docs',
98+
items: [
99+
{
100+
label: 'Tutorial',
101+
to: '/docs/intro',
102+
},
103+
],
104+
},
105+
{
106+
title: 'Community',
107+
items: [
108+
{
109+
label: 'Discord',
110+
href: 'https://discord.gg/v649emcpAu',
111+
},
112+
],
113+
},
114+
{
115+
title: 'More',
116+
items: [
117+
{
118+
label: 'Apps In A Cup',
119+
href: 'https://appsinacup.com',
120+
},
121+
{
122+
label: 'GitHub',
123+
href: 'https://github.com/appsinacup/godot-whisper',
124+
},
125+
],
126+
},
127+
],
128+
copyright: `Copyright © ${new Date().getFullYear()} Appsinacup, Inc. Built with Docusaurus.`,
129+
},
130+
prism: {
131+
theme: prismThemes.github,
132+
darkTheme: prismThemes.dracula,
133+
},
134+
135+
//algolia: {
136+
// appId: 'HDL5GAYP0P',
137+
// apiKey: 'f538b5cd448ab287cbf26ecf0b2901c4',
138+
// indexName: '',
139+
//},
140+
}),
141+
};
142+
143+
export default config;

0 commit comments

Comments
 (0)