This is an automated email from the ASF dual-hosted git repository.

wangweipeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 17b31e3c chore: fix markdown list style error & sidebar auto 
uncollapsed (#258)
17b31e3c is described below

commit 17b31e3c67c3441a1f57e463e5b90aff1d1a573b
Author: weipeng <[email protected]>
AuthorDate: Sun Jun 8 13:28:24 2025 +0800

    chore: fix markdown list style error & sidebar auto uncollapsed (#258)
---
 docusaurus.config.ts            | 17 +++++++++--------
 src/pages/home/css/tailwind.css |  8 --------
 2 files changed, 9 insertions(+), 16 deletions(-)

diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 46ebca0e..74bfb954 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -1,12 +1,12 @@
-import {themes as prismThemes} from 'prism-react-renderer';
-import type {Config} from '@docusaurus/types';
+import { themes as prismThemes } from 'prism-react-renderer';
+import type { Config } from '@docusaurus/types';
 import type * as Preset from '@docusaurus/preset-classic';
 
 const config: Config = {
   title: 'Apache Fory (incubating)',
   tagline: 'A blazing-fast cross-language serialization framework powered by 
just-in-time compilation and zero-copy',
   favicon: 'img/favicon.ico',
-  
+
   // Set the production url of your site here
   url: 'https://fory.apache.org/',
   // Set the /<baseUrl>/ pathname under which your site is served
@@ -15,7 +15,7 @@ const config: Config = {
 
   onBrokenLinks: 'throw',
   onBrokenMarkdownLinks: 'warn',
-   i18n: {
+  i18n: {
     defaultLocale: 'en-US',
     locales: ['en-US', 'zh-CN'],
     path: 'i18n',
@@ -37,6 +37,7 @@ const config: Config = {
       '@docusaurus/preset-classic',
       {
         docs: {
+          sidebarCollapsible: false,
           lastVersion: 'current',
           versions: {
             current: {
@@ -44,7 +45,7 @@ const config: Config = {
             },
           },
           sidebarPath: './sidebars.ts',
-          editUrl: ({locale, version, docPath }) => {
+          editUrl: ({ locale, version, docPath }) => {
             var editUrl = "";
             if (locale === "en-US") {
               editUrl = 
`https://github.com/apache/fory-site/tree/main/docs/${docPath}`;
@@ -68,7 +69,7 @@ const config: Config = {
             } else if (locale === "zh-CN") {
               editUrl = 
`https://github.com/apache/fory-site/tree/main/i18n/${locale}/docusaurus-plugin-content-blog/${blogPath}`;
             } else {
-              editUrl =  `https://github.com/apache/fory-site/tree/main`
+              editUrl = `https://github.com/apache/fory-site/tree/main`
             }
             return editUrl;
           },
@@ -86,7 +87,7 @@ const config: Config = {
 
   themeConfig: {
     metadata: [
-      {'http-equiv': 'Content-Security-Policy', content: "frame-src 'self' 
https://ghbtns.com/; img-src 'self' https://avatars.githubusercontent.com/ 
https://github.com/ data:;"},
+      { 'http-equiv': 'Content-Security-Policy', content: "frame-src 'self' 
https://ghbtns.com/; img-src 'self' https://avatars.githubusercontent.com/ 
https://github.com/ data:;" },
     ],
     navbar: {
       title: '',
@@ -129,7 +130,7 @@ const config: Config = {
           to: '/download',
           label: 'Download',
         },
-        {to: '/blog', label: 'Blog', position: 'right'},
+        { to: '/blog', label: 'Blog', position: 'right' },
         {
           type: 'dropdown',
           label: 'ASF',
diff --git a/src/pages/home/css/tailwind.css b/src/pages/home/css/tailwind.css
index acd89c4e..8d95faf4 100644
--- a/src/pages/home/css/tailwind.css
+++ b/src/pages/home/css/tailwind.css
@@ -33,14 +33,6 @@ body {
   line-height: 1.5;
 }
 
-/* 重置列表样式 */
-ol,
-ul {
-  list-style: none;
-  margin: 0;
-  padding: 0;
-}
-
 /* 重置链接样式 */
 a {
   color: inherit;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to