chore: remove unused files and add babel and tsconfig for Docusaurus setup
Some checks failed
GBCI / build (push) Failing after 1m52s
26
.gitignore
vendored
|
@ -1,6 +1,20 @@
|
||||||
swa-cli.config.json
|
# Dependencies
|
||||||
deploy.sh
|
/node_modules
|
||||||
site/build
|
|
||||||
site/.docusaurus
|
# Production
|
||||||
.env
|
/build
|
||||||
node_modules
|
|
||||||
|
# Generated files
|
||||||
|
.docusaurus
|
||||||
|
.cache-loader
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
.DS_Store
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
40
README.md
|
@ -1 +1,41 @@
|
||||||
|
# Website
|
||||||
|
|
||||||
|
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
```
|
||||||
|
$ pnpm i
|
||||||
|
````
|
||||||
|
|
||||||
|
### Local Development
|
||||||
|
|
||||||
|
```
|
||||||
|
$ pnpm start
|
||||||
|
```
|
||||||
|
|
||||||
|
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
||||||
|
|
||||||
|
### Build
|
||||||
|
|
||||||
|
```
|
||||||
|
$ pnpm build
|
||||||
|
```
|
||||||
|
|
||||||
|
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
||||||
|
|
||||||
|
### Deployment
|
||||||
|
|
||||||
|
Using SSH:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ USE_SSH=true pnpm i deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
Not using SSH:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ GIT_USER=<Your GitHub username> pnpm i deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 787 KiB After Width: | Height: | Size: 787 KiB |
|
@ -24,10 +24,10 @@ const config: Config = {
|
||||||
// // Even if you don't use internationalization, you can use this field to set
|
// // Even if you don't use internationalization, you can use this field to set
|
||||||
// // useful metadata like html lang. For example, if your site is Chinese, you
|
// // useful metadata like html lang. For example, if your site is Chinese, you
|
||||||
// // may want to replace "en" with "zh-Hans".
|
// // may want to replace "en" with "zh-Hans".
|
||||||
// i18n: {
|
i18n: {
|
||||||
// defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
// locales: ['en'],
|
locales: ['en'],
|
||||||
// },
|
},
|
||||||
|
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
|
@ -35,7 +35,7 @@ const config: Config = {
|
||||||
{
|
{
|
||||||
specs: [
|
specs: [
|
||||||
{
|
{
|
||||||
spec: "https://gb.pragmatismo.cloud/swagger.yaml",
|
spec: "https://generalbots.online/swagger.yaml",
|
||||||
route: "/api/",
|
route: "/api/",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -56,8 +56,7 @@ const config: Config = {
|
||||||
blog: {
|
blog: {
|
||||||
showReadingTime: true,
|
showReadingTime: true,
|
||||||
feedOptions: {
|
feedOptions: {
|
||||||
type: ["rss", "atom"],
|
type: ["rss", "atom"]
|
||||||
xslt: true,
|
|
||||||
},
|
},
|
||||||
// Please change this to your repo.
|
// Please change this to your repo.
|
||||||
// Remove this to remove the "edit this page" links.
|
// Remove this to remove the "edit this page" links.
|
||||||
|
@ -65,8 +64,6 @@ const config: Config = {
|
||||||
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
||||||
// Useful options to enforce blogging best practices
|
// Useful options to enforce blogging best practices
|
||||||
onInlineTags: "warn",
|
onInlineTags: "warn",
|
||||||
onInlineAuthors: "warn",
|
|
||||||
onUntruncatedBlogPosts: "warn",
|
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: "./src/css/custom.css",
|
customCss: "./src/css/custom.css",
|
||||||
|
@ -92,7 +89,7 @@ const config: Config = {
|
||||||
label: "Docs",
|
label: "Docs",
|
||||||
},
|
},
|
||||||
{ to: "/api", label: "API", position: "left" },
|
{ to: "/api", label: "API", position: "left" },
|
||||||
{ to: "https://github.com/GeneralBots/BotServer/tree/main/templates", label: "Templates", position: "left" },
|
{ to: "https://alm.pragmatismo.com.br/GeneralBots/botserver/src/branch/main/templates", label: "Templates", position: "left" },
|
||||||
{
|
{
|
||||||
href: "https://github.com/GeneralBots",
|
href: "https://github.com/GeneralBots",
|
||||||
label: "GitHub",
|
label: "GitHub",
|
||||||
|
@ -121,7 +118,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "YouTube",
|
label: "YouTube",
|
||||||
href: "https://www.youtube.com/@pragmatismocloud",
|
href: "https://www.youtube.com/@generalbots",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
0
site/package-lock.json → package-lock.json
generated
|
@ -15,20 +15,20 @@
|
||||||
"typecheck": "tsc"
|
"typecheck": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "3.5.2",
|
"@docusaurus/core": "3.7.0",
|
||||||
"@docusaurus/preset-classic": "3.5.2",
|
"@docusaurus/preset-classic": "3.7.0",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.1.0",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.1.1",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.4.1",
|
||||||
"react": "^18.0.0",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.0.0",
|
"react-dom": "^18.3.1",
|
||||||
"redocusaurus": "^2.1.1"
|
"redocusaurus": "^2.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "3.5.2",
|
"@docusaurus/module-type-aliases": "3.7.0",
|
||||||
"@docusaurus/tsconfig": "3.5.2",
|
"@docusaurus/tsconfig": "3.7.0",
|
||||||
"@docusaurus/types": "3.5.2",
|
"@docusaurus/types": "3.7.0",
|
||||||
"typescript": "~5.5.2"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -43,6 +43,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0"
|
"node": ">=20.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
12070
pnpm-lock.yaml
generated
Normal file
20
site/.gitignore
vendored
|
@ -1,20 +0,0 @@
|
||||||
# Dependencies
|
|
||||||
/node_modules
|
|
||||||
|
|
||||||
# Production
|
|
||||||
/build
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.docusaurus
|
|
||||||
.cache-loader
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
.DS_Store
|
|
||||||
.env.local
|
|
||||||
.env.development.local
|
|
||||||
.env.test.local
|
|
||||||
.env.production.local
|
|
||||||
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
|
@ -1,41 +0,0 @@
|
||||||
# Website
|
|
||||||
|
|
||||||
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
|
|
||||||
```
|
|
||||||
$ yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
### Local Development
|
|
||||||
|
|
||||||
```
|
|
||||||
$ yarn start
|
|
||||||
```
|
|
||||||
|
|
||||||
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
|
||||||
|
|
||||||
### Build
|
|
||||||
|
|
||||||
```
|
|
||||||
$ yarn build
|
|
||||||
```
|
|
||||||
|
|
||||||
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
|
||||||
|
|
||||||
### Deployment
|
|
||||||
|
|
||||||
Using SSH:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ USE_SSH=true yarn deploy
|
|
||||||
```
|
|
||||||
|
|
||||||
Not using SSH:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ GIT_USER=<Your GitHub username> yarn deploy
|
|
||||||
```
|
|
||||||
|
|
||||||
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.
|
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |