From ae46c4d69f22bc3b3931a5b866736e6492230ea5 Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Wed, 2 Jul 2025 23:46:09 +0400 Subject: [PATCH] enhance: update Docusaurus configuration for improved documentation features (#2030) * refactor: update Docusaurus configuration and enhance documentation structure - Refactored docusaurus.config.ts to streamline configuration, including the addition of an API sidebar and improved edit URLs for documentation. - Updated sidebars.ts to include a new autogenerated sidebar for the API documentation. - Adjusted styles in styles.module.css for better feature display on the homepage. - Modified logo.svg to use a viewBox for improved scalability. These changes aim to enhance the organization and accessibility of the documentation, ensuring a better user experience. * enhance: update Docusaurus configuration for improved documentation features - Added new configuration options in docusaurus.config.ts to support additional plugins and features, including beforeDefaultRemarkPlugins and beforeDefaultRehypePlugins. - Enabled options to show the last update time and author for better documentation tracking. These changes aim to enhance the functionality and user experience of the documentation site. --- docs/docusaurus.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index ed27bd72c..9cd84053c 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -63,7 +63,13 @@ const config: Config = { routeBasePath: 'api', sidebarPath: './sidebars.ts', editUrl: 'https://github.com/torrentpier/torrentpier/tree/dexter/docs/', - }, + beforeDefaultRemarkPlugins: [], + beforeDefaultRehypePlugins: [], + remarkPlugins: [], + rehypePlugins: [], + showLastUpdateTime: true, + showLastUpdateAuthor: true, + } satisfies import('@docusaurus/plugin-content-docs').Options, ], ],