chore: remove unused files and add babel and tsconfig for Docusaurus setup
Some checks failed
GBCI / build (push) Failing after 1m52s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-04-12 19:34:13 -03:00
parent b25178c956
commit d16e56de9a
43 changed files with 12151 additions and 91 deletions

26
.gitignore vendored
View file

@ -1,6 +1,20 @@
swa-cli.config.json
deploy.sh
site/build
site/.docusaurus
.env
node_modules
# 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*

View file

@ -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.

View file

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

Before

Width:  |  Height:  |  Size: 787 KiB

After

Width:  |  Height:  |  Size: 787 KiB

View file

@ -24,10 +24,10 @@ const config: Config = {
// // 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
// // may want to replace "en" with "zh-Hans".
// i18n: {
// defaultLocale: 'en',
// locales: ['en'],
// },
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
@ -35,7 +35,7 @@ const config: Config = {
{
specs: [
{
spec: "https://gb.pragmatismo.cloud/swagger.yaml",
spec: "https://generalbots.online/swagger.yaml",
route: "/api/",
},
],
@ -56,8 +56,7 @@ const config: Config = {
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
type: ["rss", "atom"]
},
// Please change this to your repo.
// 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/",
// Useful options to enforce blogging best practices
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "warn",
},
theme: {
customCss: "./src/css/custom.css",
@ -92,7 +89,7 @@ const config: Config = {
label: "Docs",
},
{ 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",
label: "GitHub",
@ -121,7 +118,7 @@ const config: Config = {
},
{
label: "YouTube",
href: "https://www.youtube.com/@pragmatismocloud",
href: "https://www.youtube.com/@generalbots",
},
],
},

View file

@ -15,20 +15,20 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"redocusaurus": "^2.1.1"
"@docusaurus/core": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"redocusaurus": "^2.2.3"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/tsconfig": "3.5.2",
"@docusaurus/types": "3.5.2",
"typescript": "~5.5.2"
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"typescript": "~5.5.4"
},
"browserslist": {
"production": [
@ -43,6 +43,6 @@
]
},
"engines": {
"node": ">=18.0"
"node": ">=20.0"
}
}

12070
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

20
site/.gitignore vendored
View file

@ -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*

View file

@ -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.

View file

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View file

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 5 KiB

View file

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB