From f6f60dee0d2c2714365e38d30e1ff8989c2df494 Mon Sep 17 00:00:00 2001 From: Duro <47304910+DuroCodes@users.noreply.github.com> Date: Tue, 7 May 2024 10:12:29 -0400 Subject: [PATCH] starlight rewrite (#64) * 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 <66965250+SrIzan10@users.noreply.github.com> --- .github/workflows/docusaurus.yml | 39 - .github/workflows/github-pages.yml | 30 + .gitignore | 34 +- .nvmrc | 2 +- .yarnrc.yml | 1 - 404.html | 30 - LICENSE | 21 - README.md | 4 +- astro.config.mjs | 95 + babel.config.js | 3 - blog/authors.yml | 24 - bun.lockb | Bin 0 -> 282300 bytes docgen.docusaurus.config.js | 206 - docs/api/_category_.yml | 1 - docs/api/classes/CommandExecutable.md | 97 - docs/api/classes/DefaultErrorHandling.md | 90 - docs/api/classes/DefaultLogging.md | 136 - docs/api/classes/DefaultModuleManager.md | 195 - docs/api/classes/EventExecutable.md | 97 - docs/api/classes/SernEmitter.md | 1289 -- docs/api/classes/_category_.yml | 2 - docs/api/enums/SernError.md | 104 - docs/api/enums/_category_.yml | 2 - docs/api/index.md | 76 - docs/api/interfaces/AutocompleteCommand.md | 55 - docs/api/interfaces/AutocompletePlugin.md | 88 - docs/api/interfaces/CommandError.Response.md | 45 - docs/api/interfaces/CommandPlugin.md | 72 - docs/api/interfaces/ControlPlugin.md | 47 - docs/api/interfaces/Controller.md | 43 - docs/api/interfaces/CoreDependencies.md | 119 - docs/api/interfaces/Dependencies.md | 67 - .../api/interfaces/DependencyConfiguration.md | 47 - docs/api/interfaces/DiscordEmitterPlugin.md | 90 - docs/api/interfaces/DiscordEventPlugin.md | 94 - docs/api/interfaces/Emitter.md | 70 - docs/api/interfaces/EventPlugin.md | 72 - docs/api/interfaces/ExternalEmitterPlugin.md | 90 - docs/api/interfaces/ExternalEventPlugin.md | 88 - docs/api/interfaces/InitArgs.md | 33 - docs/api/interfaces/InitPlugin.md | 47 - docs/api/interfaces/Logging.md | 101 - docs/api/interfaces/Module.md | 115 - docs/api/interfaces/ModuleManager.md | 155 - docs/api/interfaces/Plugin.md | 47 - docs/api/interfaces/SernAutocompleteData.md | 113 - docs/api/interfaces/SernEmitterPlugin.md | 90 - docs/api/interfaces/SernEventPlugin.md | 94 - docs/api/interfaces/SernSubCommandData.md | 107 - .../api/interfaces/SernSubCommandGroupData.md | 117 - docs/api/interfaces/_category_.yml | 2 - docs/api/modules.md | 734 - docs/api/namespaces/CommandError.md | 31 - docs/api/namespaces/Presence.md | 93 - docs/api/namespaces/Sern.md | 40 - docs/api/namespaces/_category_.yml | 2 - docs/guide/.nojekyll | 0 docs/guide/README.md | 30 - docs/guide/getting-started/_category_.yml | 1 - docs/guide/getting-started/choose-ide.md | 11 - docs/guide/getting-started/preparing.md | 14 - docs/guide/walkthrough/_category_.yml | 1 - docs/guide/walkthrough/autocomplete.md | 45 - .../guide/walkthrough/dependency-injection.md | 110 - docs/guide/walkthrough/first-command.md | 120 - docs/guide/walkthrough/goal.md | 51 - docs/guide/walkthrough/services.md | 158 - docs/guide/walkthrough/transition.md | 39 - docs/intro.md | 21 - docusaurus.config.js | 208 - ec.config.mjs | 14 + netlify.toml | 4 +- package-lock.json | 15640 ---------------- package.json | 82 +- public/favicon.svg | 9 + {static/img => public}/sern-logo.png | Bin sidebars.js | 31 - .../assets/blog/paper-logo.png | Bin .../assets/blog/paper-prototypes.jpg | Bin .../assets/blog/seren-tried.png | Bin src/assets/docs/event-plugins.png | Bin 0 -> 34537 bytes .../assets/docs/sern-publish.gif | Bin src/assets/logo/navbar-icon.png | Bin 0 -> 31069 bytes src/assets/logo/sern-logo.png | Bin 0 -> 22097 bytes src/components/DeprecatedIcon.astro | 16 + src/components/Head.astro | 32 + src/components/HomepageFeatures/index.js | 65 - .../HomepageFeatures/styles.module.css | 12 - src/components/Modal.astro | 42 + src/components/PluginCard.astro | 41 + src/components/PluginCard/index.js | 28 - src/components/PluginCard/index.module.css | 31 - src/components/PluginModal.astro | 46 + src/components/PluginModal/index.js | 88 - src/components/PluginModal/index.module.css | 11 - src/components/SponsorCard.astro | 46 + src/components/Sponsors/index.js | 92 - src/components/Sponsors/styles.module.css | 42 - src/components/ThemeSelect.astro | 39 + src/content/config.ts | 7 + src/content/docs/api/README.md | 96 + .../content/docs}/api/classes/Context.md | 213 +- .../content/docs}/api/classes/ModuleStore.md | 25 +- .../docs/api/enumerations}/CommandType.md | 83 +- .../docs/api/enumerations}/EventType.md | 27 +- .../docs/api/enumerations}/PayloadType.md | 25 +- .../docs/api/enumerations}/PluginType.md | 21 +- .../api/functions/CommandControlPlugin.md | 29 + .../docs/api/functions/CommandInitPlugin.md | 29 + .../functions/DiscordEventControlPlugin.md | 35 + .../docs/api/functions/EventControlPlugin.md | 29 + .../docs/api/functions/EventInitPlugin.md | 29 + src/content/docs/api/functions/Service.md | 41 + src/content/docs/api/functions/Services.md | 31 + .../docs/api/functions/commandModule.md | 24 + .../docs/api/functions/discordEvent.md | 36 + src/content/docs/api/functions/eventModule.md | 25 + .../docs/api/functions/makeDependencies.md | 24 + src/content/docs/api/functions/makePlugin.md | 26 + src/content/docs/api/functions/single.md | 35 + src/content/docs/api/functions/transient.md | 39 + .../docs}/api/interfaces/BothCommand.md | 92 +- .../docs}/api/interfaces/ButtonCommand.md | 77 +- .../api/interfaces/ChannelSelectCommand.md | 77 +- .../docs}/api/interfaces/CommandModuleDefs.md | 79 +- .../docs}/api/interfaces/ContextMenuMsg.md | 77 +- .../docs}/api/interfaces/ContextMenuUser.md | 77 +- .../docs/api/interfaces/ControlPlugin.md | 38 + src/content/docs/api/interfaces/Controller.md | 34 + .../docs/api/interfaces/CoreDependencies.md | 94 + .../docs}/api/interfaces/CoreModuleStore.md | 19 +- .../api/interfaces/DiscordEventCommand.md | 75 +- .../docs}/api/interfaces/Disposable.md | 15 +- src/content/docs/api/interfaces/Emitter.md | 66 + .../docs}/api/interfaces/ErrorHandling.md | 45 +- .../docs}/api/interfaces/EventModuleDefs.md | 25 +- .../api/interfaces/ExternalEventCommand.md | 73 +- .../content/docs}/api/interfaces/Init.md | 15 +- src/content/docs/api/interfaces/InitPlugin.md | 38 + src/content/docs/api/interfaces/Logging.md | 86 + .../interfaces/MentionableSelectCommand.md | 77 +- .../api/interfaces/ModalSubmitCommand.md | 77 +- src/content/docs/api/interfaces/Plugin.md | 38 + .../docs}/api/interfaces/RoleSelectCommand.md | 77 +- .../api/interfaces/SernAutocompleteData.md | 110 + .../docs}/api/interfaces/SernEventCommand.md | 75 +- .../docs}/api/interfaces/SernEventsMapping.md | 37 +- .../docs/api/interfaces/SernSubCommandData.md | 104 + .../api/interfaces/SernSubCommandGroupData.md | 114 + .../docs}/api/interfaces/SlashCommand.md | 84 +- .../api/interfaces/StringSelectCommand.md | 77 +- .../docs}/api/interfaces/TextCommand.md | 86 +- .../docs}/api/interfaces/UserSelectCommand.md | 77 +- .../content/docs}/api/interfaces/Wrapper.md | 63 +- .../namespaces/Presence/functions/module.md | 28 + .../api/namespaces/Presence/functions/of.md | 97 + .../namespaces/Presence/interfaces/Result.md | 70 +- .../Presence/type-aliases/Config.md | 34 + .../api/namespaces/Sern/functions/init.md | 33 + .../docs/api/type-aliases/AnyCommandPlugin.md | 12 + .../docs/api/type-aliases/AnyEventPlugin.md | 12 + src/content/docs/api/type-aliases/Args.md | 22 + .../docs/api/type-aliases/CommandModule.md | 12 + .../docs/api/type-aliases/EventModule.md | 12 + .../docs/api/type-aliases/Initializable.md | 19 + .../docs/api/type-aliases/LogPayload.md | 22 + src/content/docs/api/type-aliases/Payload.md | 12 + .../docs/api/type-aliases/PluginResult.md | 12 + .../docs/api/type-aliases/SernOptionsData.md | 14 + .../docs/api/type-aliases/Singleton.md | 23 + .../docs/api/type-aliases/SlashOptions.md | 12 + .../docs/api/type-aliases/Transient.md | 27 + src/content/docs/api/variables/controller.md | 35 + .../content/docs/blog/2022-09-28.md | 65 +- .../content/docs/blog/2022-09-30.md | 14 +- .../content/docs/blog/2022-12-13.md | 140 +- .../content/docs/blog/2023-01-12.md | 19 +- .../content/docs/blog/2023-06-18.md | 83 +- .../content/docs/blog/2023-7-4.md | 11 +- .../content/docs/blog/2024-02-23.md | 5 +- .../content/docs/cli/about.md | 14 +- .../content/docs/cli/build.mdx | 192 +- {docs => src/content/docs}/cli/clear.md | 17 +- {docs => src/content/docs}/cli/extra.md | 3 + {docs => src/content/docs}/cli/publish.md | 49 +- .../docs/guide/getting-started/choose-ide.md | 12 + .../docs/guide/getting-started/preparing.md | 13 + .../docs/guide/walkthrough/autocomplete.md | 44 + .../content/docs}/guide/walkthrough/cli.md | 21 +- .../docs}/guide/walkthrough/conclusion.md | 8 +- .../guide/walkthrough/dependency-injection.md | 113 + .../docs/guide/walkthrough/first-command.mdx | 110 + .../docs/guide/walkthrough/first-event.mdx | 65 +- src/content/docs/guide/walkthrough/goal.md | 52 + .../docs}/guide/walkthrough/good-to-know.md | 7 +- .../docs}/guide/walkthrough/new-project.md | 11 +- .../docs}/guide/walkthrough/plugins.md | 64 +- .../docs}/guide/walkthrough/sern-emitter.md | 8 +- .../docs/guide/walkthrough/services.mdx | 144 + .../docs/guide/walkthrough/transition.mdx | 60 + src/content/docs/index.mdx | 28 + src/content/docs/reference/example.md | 11 + src/css/custom.css | 64 - src/env.d.ts | 2 + src/hooks/useTheme.js | 13 - src/pages/discord.astro | 1 + src/pages/index.js | 58 - src/pages/index.module.css | 42 - src/pages/markdown-page.md | 7 - src/pages/plugins.astro | 17 + src/pages/plugins.js | 32 - src/pages/sponsors.astro | 44 + src/pages/sponsors.css | 9 - src/pages/sponsors.js | 18 - src/styles/global.css | 3 + src/theme/CodeBlock/index.js | 32 - static/.nojekyll | 0 static/CNAME | 1 - static/discord.html | 13 - static/img/bricks-svgrepo-com.svg | 32 - static/img/eventplugins.drawio.svg | 4 - static/img/favicon.ico | Bin 6280 -> 0 bytes static/img/fire-com.svg | 3 - static/img/fs.png | Bin 106755 -> 0 bytes static/img/logo.png | Bin 5814 -> 0 bytes static/img/old-logo.png | Bin 125133 -> 0 bytes static/img/old-sern-logo.png | Bin 36614 -> 0 bytes static/img/pencil-svgrepo-com.svg | 15 - static/img/puzzle-svgrepo-com.svg | 50 - tailwind.config.mjs | 16 + tsconfig.json | 4 + yarn.lock | 8910 --------- 232 files changed, 4142 insertions(+), 33072 deletions(-) delete mode 100644 .github/workflows/docusaurus.yml create mode 100644 .github/workflows/github-pages.yml delete mode 100644 .yarnrc.yml delete mode 100644 404.html delete mode 100644 LICENSE create mode 100644 astro.config.mjs delete mode 100644 babel.config.js delete mode 100644 blog/authors.yml create mode 100755 bun.lockb delete mode 100644 docgen.docusaurus.config.js delete mode 100644 docs/api/_category_.yml delete mode 100644 docs/api/classes/CommandExecutable.md delete mode 100644 docs/api/classes/DefaultErrorHandling.md delete mode 100644 docs/api/classes/DefaultLogging.md delete mode 100644 docs/api/classes/DefaultModuleManager.md delete mode 100644 docs/api/classes/EventExecutable.md delete mode 100644 docs/api/classes/SernEmitter.md delete mode 100644 docs/api/classes/_category_.yml delete mode 100644 docs/api/enums/SernError.md delete mode 100644 docs/api/enums/_category_.yml delete mode 100644 docs/api/index.md delete mode 100644 docs/api/interfaces/AutocompleteCommand.md delete mode 100644 docs/api/interfaces/AutocompletePlugin.md delete mode 100644 docs/api/interfaces/CommandError.Response.md delete mode 100644 docs/api/interfaces/CommandPlugin.md delete mode 100644 docs/api/interfaces/ControlPlugin.md delete mode 100644 docs/api/interfaces/Controller.md delete mode 100644 docs/api/interfaces/CoreDependencies.md delete mode 100644 docs/api/interfaces/Dependencies.md delete mode 100644 docs/api/interfaces/DependencyConfiguration.md delete mode 100644 docs/api/interfaces/DiscordEmitterPlugin.md delete mode 100644 docs/api/interfaces/DiscordEventPlugin.md delete mode 100644 docs/api/interfaces/Emitter.md delete mode 100644 docs/api/interfaces/EventPlugin.md delete mode 100644 docs/api/interfaces/ExternalEmitterPlugin.md delete mode 100644 docs/api/interfaces/ExternalEventPlugin.md delete mode 100644 docs/api/interfaces/InitArgs.md delete mode 100644 docs/api/interfaces/InitPlugin.md delete mode 100644 docs/api/interfaces/Logging.md delete mode 100644 docs/api/interfaces/Module.md delete mode 100644 docs/api/interfaces/ModuleManager.md delete mode 100644 docs/api/interfaces/Plugin.md delete mode 100644 docs/api/interfaces/SernAutocompleteData.md delete mode 100644 docs/api/interfaces/SernEmitterPlugin.md delete mode 100644 docs/api/interfaces/SernEventPlugin.md delete mode 100644 docs/api/interfaces/SernSubCommandData.md delete mode 100644 docs/api/interfaces/SernSubCommandGroupData.md delete mode 100644 docs/api/interfaces/_category_.yml delete mode 100644 docs/api/modules.md delete mode 100644 docs/api/namespaces/CommandError.md delete mode 100644 docs/api/namespaces/Presence.md delete mode 100644 docs/api/namespaces/Sern.md delete mode 100644 docs/api/namespaces/_category_.yml delete mode 100644 docs/guide/.nojekyll delete mode 100644 docs/guide/README.md delete mode 100644 docs/guide/getting-started/_category_.yml delete mode 100644 docs/guide/getting-started/choose-ide.md delete mode 100644 docs/guide/getting-started/preparing.md delete mode 100644 docs/guide/walkthrough/_category_.yml delete mode 100644 docs/guide/walkthrough/autocomplete.md delete mode 100644 docs/guide/walkthrough/dependency-injection.md delete mode 100644 docs/guide/walkthrough/first-command.md delete mode 100644 docs/guide/walkthrough/goal.md delete mode 100644 docs/guide/walkthrough/services.md delete mode 100644 docs/guide/walkthrough/transition.md delete mode 100644 docs/intro.md delete mode 100644 docusaurus.config.js create mode 100644 ec.config.mjs delete mode 100644 package-lock.json create mode 100644 public/favicon.svg rename {static/img => public}/sern-logo.png (100%) delete mode 100644 sidebars.js rename static/blog/newlogo/paperlogo.png => src/assets/blog/paper-logo.png (100%) rename static/blog/newlogo/paperprototypes.jpg => src/assets/blog/paper-prototypes.jpg (100%) rename static/blog/newlogo/serentried.png => src/assets/blog/seren-tried.png (100%) create mode 100644 src/assets/docs/event-plugins.png rename static/img/Code_-_Insiders_2kTVzm0uIQ.gif => src/assets/docs/sern-publish.gif (100%) create mode 100644 src/assets/logo/navbar-icon.png create mode 100644 src/assets/logo/sern-logo.png create mode 100644 src/components/DeprecatedIcon.astro create mode 100644 src/components/Head.astro delete mode 100644 src/components/HomepageFeatures/index.js delete mode 100644 src/components/HomepageFeatures/styles.module.css create mode 100644 src/components/Modal.astro create mode 100644 src/components/PluginCard.astro delete mode 100644 src/components/PluginCard/index.js delete mode 100644 src/components/PluginCard/index.module.css create mode 100644 src/components/PluginModal.astro delete mode 100644 src/components/PluginModal/index.js delete mode 100644 src/components/PluginModal/index.module.css create mode 100644 src/components/SponsorCard.astro delete mode 100644 src/components/Sponsors/index.js delete mode 100644 src/components/Sponsors/styles.module.css create mode 100644 src/components/ThemeSelect.astro create mode 100644 src/content/config.ts create mode 100644 src/content/docs/api/README.md rename {docs => src/content/docs}/api/classes/Context.md (54%) rename {docs => src/content/docs}/api/classes/ModuleStore.md (54%) rename {docs/api/enums => src/content/docs/api/enumerations}/CommandType.md (77%) rename {docs/api/enums => src/content/docs/api/enumerations}/EventType.md (79%) rename {docs/api/enums => src/content/docs/api/enumerations}/PayloadType.md (71%) rename {docs/api/enums => src/content/docs/api/enumerations}/PluginType.md (76%) create mode 100644 src/content/docs/api/functions/CommandControlPlugin.md create mode 100644 src/content/docs/api/functions/CommandInitPlugin.md create mode 100644 src/content/docs/api/functions/DiscordEventControlPlugin.md create mode 100644 src/content/docs/api/functions/EventControlPlugin.md create mode 100644 src/content/docs/api/functions/EventInitPlugin.md create mode 100644 src/content/docs/api/functions/Service.md create mode 100644 src/content/docs/api/functions/Services.md create mode 100644 src/content/docs/api/functions/commandModule.md create mode 100644 src/content/docs/api/functions/discordEvent.md create mode 100644 src/content/docs/api/functions/eventModule.md create mode 100644 src/content/docs/api/functions/makeDependencies.md create mode 100644 src/content/docs/api/functions/makePlugin.md create mode 100644 src/content/docs/api/functions/single.md create mode 100644 src/content/docs/api/functions/transient.md rename {docs => src/content/docs}/api/interfaces/BothCommand.md (56%) rename {docs => src/content/docs}/api/interfaces/ButtonCommand.md (55%) rename {docs => src/content/docs}/api/interfaces/ChannelSelectCommand.md (53%) rename {docs => src/content/docs}/api/interfaces/CommandModuleDefs.md (65%) rename {docs => src/content/docs}/api/interfaces/ContextMenuMsg.md (54%) rename {docs => src/content/docs}/api/interfaces/ContextMenuUser.md (54%) create mode 100644 src/content/docs/api/interfaces/ControlPlugin.md create mode 100644 src/content/docs/api/interfaces/Controller.md create mode 100644 src/content/docs/api/interfaces/CoreDependencies.md rename {docs => src/content/docs}/api/interfaces/CoreModuleStore.md (62%) rename {docs => src/content/docs}/api/interfaces/DiscordEventCommand.md (56%) rename {docs => src/content/docs}/api/interfaces/Disposable.md (62%) create mode 100644 src/content/docs/api/interfaces/Emitter.md rename {docs => src/content/docs}/api/interfaces/ErrorHandling.md (52%) rename {docs => src/content/docs}/api/interfaces/EventModuleDefs.md (53%) rename {docs => src/content/docs}/api/interfaces/ExternalEventCommand.md (60%) rename {docs => src/content/docs}/api/interfaces/Init.md (66%) create mode 100644 src/content/docs/api/interfaces/InitPlugin.md create mode 100644 src/content/docs/api/interfaces/Logging.md rename {docs => src/content/docs}/api/interfaces/MentionableSelectCommand.md (52%) rename {docs => src/content/docs}/api/interfaces/ModalSubmitCommand.md (54%) create mode 100644 src/content/docs/api/interfaces/Plugin.md rename {docs => src/content/docs}/api/interfaces/RoleSelectCommand.md (54%) create mode 100644 src/content/docs/api/interfaces/SernAutocompleteData.md rename {docs => src/content/docs}/api/interfaces/SernEventCommand.md (55%) rename {docs => src/content/docs}/api/interfaces/SernEventsMapping.md (58%) create mode 100644 src/content/docs/api/interfaces/SernSubCommandData.md create mode 100644 src/content/docs/api/interfaces/SernSubCommandGroupData.md rename {docs => src/content/docs}/api/interfaces/SlashCommand.md (53%) rename {docs => src/content/docs}/api/interfaces/StringSelectCommand.md (54%) rename {docs => src/content/docs}/api/interfaces/TextCommand.md (55%) rename {docs => src/content/docs}/api/interfaces/UserSelectCommand.md (54%) rename {docs => src/content/docs}/api/interfaces/Wrapper.md (58%) create mode 100644 src/content/docs/api/namespaces/Presence/functions/module.md create mode 100644 src/content/docs/api/namespaces/Presence/functions/of.md rename docs/api/interfaces/Presence.Result.md => src/content/docs/api/namespaces/Presence/interfaces/Result.md (50%) create mode 100644 src/content/docs/api/namespaces/Presence/type-aliases/Config.md create mode 100644 src/content/docs/api/namespaces/Sern/functions/init.md create mode 100644 src/content/docs/api/type-aliases/AnyCommandPlugin.md create mode 100644 src/content/docs/api/type-aliases/AnyEventPlugin.md create mode 100644 src/content/docs/api/type-aliases/Args.md create mode 100644 src/content/docs/api/type-aliases/CommandModule.md create mode 100644 src/content/docs/api/type-aliases/EventModule.md create mode 100644 src/content/docs/api/type-aliases/Initializable.md create mode 100644 src/content/docs/api/type-aliases/LogPayload.md create mode 100644 src/content/docs/api/type-aliases/Payload.md create mode 100644 src/content/docs/api/type-aliases/PluginResult.md create mode 100644 src/content/docs/api/type-aliases/SernOptionsData.md create mode 100644 src/content/docs/api/type-aliases/Singleton.md create mode 100644 src/content/docs/api/type-aliases/SlashOptions.md create mode 100644 src/content/docs/api/type-aliases/Transient.md create mode 100644 src/content/docs/api/variables/controller.md rename blog/2022-09-28-mdx-blog-post.md => src/content/docs/blog/2022-09-28.md (63%) rename blog/2022-09-30-mdx-blog-post.md => src/content/docs/blog/2022-09-30.md (91%) rename blog/2022-12-13-mdx-blog-post.md => src/content/docs/blog/2022-12-13.md (68%) rename blog/2023-01-12-mdx-blog-post.md => src/content/docs/blog/2023-01-12.md (78%) rename blog/2023-06-18-mdx-blog-post.md => src/content/docs/blog/2023-06-18.md (54%) rename blog/2023-7-4-mdx-blog-post.md => src/content/docs/blog/2023-7-4.md (86%) rename blog/2024-02-23-mdx-blog-post.md => src/content/docs/blog/2024-02-23.md (97%) rename docs/cli/README.md => src/content/docs/cli/about.md (67%) rename docs/cli/build.md => src/content/docs/cli/build.mdx (66%) rename {docs => src/content/docs}/cli/clear.md (72%) rename {docs => src/content/docs}/cli/extra.md (92%) rename {docs => src/content/docs}/cli/publish.md (87%) create mode 100644 src/content/docs/guide/getting-started/choose-ide.md create mode 100644 src/content/docs/guide/getting-started/preparing.md create mode 100644 src/content/docs/guide/walkthrough/autocomplete.md rename {docs => src/content/docs}/guide/walkthrough/cli.md (84%) rename {docs => src/content/docs}/guide/walkthrough/conclusion.md (58%) create mode 100644 src/content/docs/guide/walkthrough/dependency-injection.md create mode 100644 src/content/docs/guide/walkthrough/first-command.mdx rename docs/guide/walkthrough/first-event.md => src/content/docs/guide/walkthrough/first-event.mdx (58%) create mode 100644 src/content/docs/guide/walkthrough/goal.md rename {docs => src/content/docs}/guide/walkthrough/good-to-know.md (93%) rename {docs => src/content/docs}/guide/walkthrough/new-project.md (56%) rename {docs => src/content/docs}/guide/walkthrough/plugins.md (71%) rename {docs => src/content/docs}/guide/walkthrough/sern-emitter.md (89%) create mode 100644 src/content/docs/guide/walkthrough/services.mdx create mode 100644 src/content/docs/guide/walkthrough/transition.mdx create mode 100644 src/content/docs/index.mdx create mode 100644 src/content/docs/reference/example.md delete mode 100644 src/css/custom.css create mode 100644 src/env.d.ts delete mode 100644 src/hooks/useTheme.js create mode 100644 src/pages/discord.astro delete mode 100644 src/pages/index.js delete mode 100644 src/pages/index.module.css delete mode 100644 src/pages/markdown-page.md create mode 100644 src/pages/plugins.astro delete mode 100644 src/pages/plugins.js create mode 100644 src/pages/sponsors.astro delete mode 100644 src/pages/sponsors.css delete mode 100644 src/pages/sponsors.js create mode 100644 src/styles/global.css delete mode 100644 src/theme/CodeBlock/index.js delete mode 100644 static/.nojekyll delete mode 100644 static/CNAME delete mode 100644 static/discord.html delete mode 100644 static/img/bricks-svgrepo-com.svg delete mode 100644 static/img/eventplugins.drawio.svg delete mode 100644 static/img/favicon.ico delete mode 100644 static/img/fire-com.svg delete mode 100644 static/img/fs.png delete mode 100644 static/img/logo.png delete mode 100644 static/img/old-logo.png delete mode 100644 static/img/old-sern-logo.png delete mode 100644 static/img/pencil-svgrepo-com.svg delete mode 100644 static/img/puzzle-svgrepo-com.svg create mode 100644 tailwind.config.mjs create mode 100644 tsconfig.json delete mode 100644 yarn.lock diff --git a/.github/workflows/docusaurus.yml b/.github/workflows/docusaurus.yml deleted file mode 100644 index bbdaedce8..000000000 --- a/.github/workflows/docusaurus.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Deploy to GitHub Pages - -on: - push: - branches: [ main ] - # Review gh actions docs if you want to further define triggers, paths, etc - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on - -jobs: - deploy: - name: Deploy to GitHub Pages - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: yarn - - - name: Install dependencies - run: yarn install --immutable - - name: Build website - run: yarn build - - # Popular action to deploy to GitHub Pages: - # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - # Build output to publish to the `gh-pages` branch: - publish_dir: ./build - # The following lines assign commit authorship to the official - # GH-Actions bot for deploys to `gh-pages` branch: - # https://github.com/actions/checkout/issues/13#issuecomment-724415212 - # The GH actions bot is used by default if you didn't specify the two fields. - # You can swap them out with your own user credentials. - user_name: github-actions[bot] - user_email: 41898282+github-actions[bot]@users.noreply.github.com diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 000000000..f7af71aab --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index e472625f5..f9e74db9a 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index b009dfb9d..1a2f5bd20 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/* +lts/* \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml deleted file mode 100644 index 3186f3f07..000000000 --- a/.yarnrc.yml +++ /dev/null @@ -1 +0,0 @@ -nodeLinker: node-modules diff --git a/404.html b/404.html deleted file mode 100644 index c2f2ef484..000000000 --- a/404.html +++ /dev/null @@ -1,30 +0,0 @@ - - -
- - - - - - - - - - - - -The link you visited may be broken or invalid.
- -THg82Z&g+jUD=)hq z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