From 0a153fe77097ff511a85cf3defb9ba653e6ca7f9 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 14 Aug 2025 22:29:12 +0600 Subject: [PATCH] docs: fix invalid links and redirection --- website/astro.config.mjs | 3 +++ .../docs/developing-plugins/implementing-endpoints.mdx | 2 +- website/src/content/docs/get-started/installing-plugins.mdx | 6 ++++-- website/src/content/docs/reference/libraries.mdx | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/website/astro.config.mjs b/website/astro.config.mjs index cbc0582d..ab0ba99e 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -45,5 +45,8 @@ export default defineConfig({ redirects: { "/docs": "/docs/get-started/introduction", "/docs/get-started": "/docs/get-started/introduction", + "/docs/developing-plugins": "/docs/developing-plugins/introduction", + "/docs/plugin-apis": "/docs/plugin-apis/webview", + "/docs/reference": "/docs/reference/models", }, }); diff --git a/website/src/content/docs/developing-plugins/implementing-endpoints.mdx b/website/src/content/docs/developing-plugins/implementing-endpoints.mdx index dd564995..2c75c037 100644 --- a/website/src/content/docs/developing-plugins/implementing-endpoints.mdx +++ b/website/src/content/docs/developing-plugins/implementing-endpoints.mdx @@ -479,10 +479,10 @@ class CorePlugin { [scrobbling_wiki]: https://en.wikipedia.org/wiki/Last.fm [hetu_script_import_export_docs]: https://hetu-script.github.io/docs/en-US/grammar/import/ [hetu_spotube_plugin]: https://github.com/KRTirtho/hetu_spotube_plugin -[spotube_plugin_api]: / [hetu_std]: https://github.com/hetu-community/hetu_std [dart_stream_controller]: https://api.flutter.dev/flutter/dart-async/StreamController-class.html [hetu_struct_into_map]: https://hetu-script.github.io/docs/en-US/api_reference/hetu/#struct +[spotube_plugin_api]: /docs/plugin-apis [SpotubeUserObject]: /docs/reference/models#user [SpotubePaginationResponseObject]: /docs/reference/models#pagination-response [SpotubeFullAlbumObject]: /docs/reference/models#spotubefullalbumobject diff --git a/website/src/content/docs/get-started/installing-plugins.mdx b/website/src/content/docs/get-started/installing-plugins.mdx index 3c82095b..872506f0 100644 --- a/website/src/content/docs/get-started/installing-plugins.mdx +++ b/website/src/content/docs/get-started/installing-plugins.mdx @@ -12,7 +12,7 @@ Let's first learn how to install plugins in Spotube. It's pretty simple. 1. Then go to the top option, "Metadata provider plugins" 1. You can see a list of all the plugins that are available to install -![Lmafo](/docs/getting-started/installing-plugins/navigate.webp) +![Navigate to plugins page](/docs/getting-started/installing-plugins/navigate.webp) ## More ways to install new plugins @@ -25,4 +25,6 @@ Try to use the `Official` tagged plugins all the time if you don't want to deal - **Upload plugin from local file**: You can also install plugins from local file (plugin.smplug) using the _Orange Upload button_ on the top right beside the text field. - **Install plugin from URL**: If you have a direct link to a plugin file, you can just paste the URL in the text field and use the gray download button beside it -> If you're a developer, you can create your own plugins and share them with the community. Check out the [Plugin Development Guide](/docs/developing-plugins) for more information. +> If you're a developer, you can create your own plugins and share them with the community. Check out the [Plugin Development Guide][developing_plugins] for more information. + +[developing_plugins]: /docs/developing-plugins/introduction diff --git a/website/src/content/docs/reference/libraries.mdx b/website/src/content/docs/reference/libraries.mdx index 8297c912..149b5264 100644 --- a/website/src/content/docs/reference/libraries.mdx +++ b/website/src/content/docs/reference/libraries.mdx @@ -2,7 +2,7 @@ layout: "layouts/DocLayout.astro" title: Libraries description: List of libraries for Spotube Plugins. -order: 0 +order: 1 --- - [`hetu_std`][hetu_std] (built-in) - A standard library for hetu_script that provides standard set of functions and utilities.