Commit Graph

14 Commits

Author SHA1 Message Date
Fleny
27c261fee2 formatter: Use semicolons (#4686)
I prefer semicolors, they also help avoiding certain pitfalls in JavaScript/TypeScript, such as the following code sample:
```js
const xyz = "test"
(something.else as string) = "another"
```
This results in a TypeError: "test" is not a function, this is because js thinks we are trying to call the string "test" as a function.
To fix this it requires a `;` somewhere before the `(`, such as `;(something ... ` which in my opinion is ugly and less clean overall.
2026-01-17 21:54:15 +01:00
Fleny
fde6751b77 chore(website): Update deps and remove styled-components (#4466)
* chore(website): Remove styled-components

This also allows us to remove the loading screen on page load as the styles are now loaded by the browser itself.

* chore(website): Update dependencies

* Remove clsx

* Update dependencies

Also update markdown onBrokenMarkdownLinks options as it now deprecated in favor of markdown.hooks.onBrokenMarkdownLinks

* Update dependencies
2025-10-02 21:41:54 +02:00
Fleny
70bcd16e8d chore(website): Update docusarus v3.8, improve build perf (#4209)
* Update docusaurus to v3.8, improve performance

Docusaurus:
- Update to v3.8.0
- Enable new faster features, rspack bundler cache and worker threads
- Update CI to cache rspack bundler cache
- Update dependencies to latest versions
- Update blog posts to use the truncate tag
- Update caniuse-lite

Removed duplicated type documentation generation for bot package

* Use .jsonc files for typedoc
And use the readme option instead of a custom script

* remvoe typedoc script

---------

Co-authored-by: Jonathan Ho <heiheiho000@gmail.com>
2025-06-02 07:47:19 +02:00
Awesome Stickz
9709b53a7d docs: improve docs (#4022) 2024-11-28 09:38:28 -06:00
Fleny
c6f04be311 Add the /desired-props redirect (#4013)
And update docusaurus dependencies
2024-11-24 17:40:17 +05:30
Fleny
8188e85115 chore(website): Enable docusaurus future.experimental_faster (#3978)
This will use rspack and swc to speed up the build process
2024-11-09 18:30:30 +01:00
Fleny
2d02c3246c fix(website): Fix docusaurus build/typedoc warnings (#3929)
* Fix docusaurus build/typedoc warnings

* include the jsdoc fixes
2024-10-22 16:48:06 +02:00
Fleny
6a5f446c06 build(website): Update website deps, remove 1s load time (#3858)
* Update website deps, remove 1s load time

* Run biome migrate

* Test without terser plugin

* Do not always default to MDX

* remove webpack terser plugin

* Add some exclusions to website/tsconfig
2024-08-29 11:22:40 +02:00
Awesome Stickz
cfafc16e92 docs: remove tutorial section (#3817)
* docs: remove tutorial section

* fix: docusaurus broken links
2024-07-30 23:40:08 -05:00
Fleny
919474069d chore: Migrate ESLint and prettier to Biome (#3634)
* Migrate eslint and prettier to biomejs

This does NOT include examples/bigbot as it has its own formatter

* Update to biome 1.8.0

* Readd dotenv dev dependency to rest

During a merge it got lost
2024-07-13 13:05:02 -05:00
Fleny
06664ed8bb fix(website): fix typedoc configuration (#3733)
* Fix typedoc CI crashse

And adapt the website to its new output

* Revert /tsconfig.json changes

* Update footer
2024-07-13 08:15:19 -05:00
Fleny
008834d389 docs: Reaction roles bot example (#3361)
* Update docusaurus typescript setup for v3

And fix lint-staged and eslint

* Enable automatic JSX runtime

* Remove babel config and dependencies

* update yarn.lock

* add typecheck to site workflow

* update typedoc config

* downgrade docusaurus packages

* Update site.yml

* Type context and options in webpack-docusaurus-plugin.ts

* Add reaction-roles code from docs example

* Finish /roles reactions create command, missing event handler

* Add handler for the role buttons

* Initial update to reactionroles.md

+ code changes accordingly

* Finish reactionroles.md file

* Corrections to reactionroles.md

* update deps & add --strip-leading-paths to swc

* Add a note for the possibile ratelimit on command upsert

* Update website/docs/examples/reactionroles.md

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Apply suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Update website/docs/examples/reactionroles.md

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Use a register-commands.ts for app commands

* Apply suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Update for the latest version of discordeno

Also add the tsconfig for the reaction roles example as i forgot it and was using the root dir one

* Update deps, add typescript as dev deps, add .swcrc

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-07-06 17:37:33 +00:00
Fleny
8e011210e2 feat(docs): Add getting-started with installation (#3557)
* Add getting-started with installation

* Add minimal example, and helpers and desired proprieties explanation

* Add comment on helper example usage

* fix small grammar error

* Fix GuildMessages being without the Intents. before

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Apply code suggestion

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* fix: typo

* remove todo

* Apply suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Remove useless parenthesis

* Apply code review suggestion

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-05-24 05:09:35 +00:00
Fleny
f0ac958903 chore(website): Cleanup docusaurus setup (#3355)
* Update docusaurus typescript setup for v3

And fix lint-staged and eslint

* Enable automatic JSX runtime

* Remove babel config and dependencies

* update yarn.lock

* add typecheck to site workflow

* update typedoc config

* downgrade docusaurus packages

* Update site.yml

* Type context and options in webpack-docusaurus-plugin.ts

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
2024-02-09 20:34:59 +00:00