Skip to content

Commit

Permalink
fix: SideBar => Siderbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jul 26, 2024
1 parent c915b9b commit db5bde7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,9 @@ interface SiteThemeConfig {
logoType?: LogoProps['type'];
name?: string;
siteToken?: SiteConfigToken;
// socialLinks?: {
// discord?: `https://discord.gg/${string}`;
// github?: string;
// };
title?: string;
/** sidebar group 模式路由 */
sidebarGroupModePath?: true | SidebarGroupModePathItem[];
}
```

Expand Down
6 changes: 2 additions & 4 deletions src/defineThemeConfig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { AllSiteThemeConfig } from '../types';
* @param {ThemeConfig} config theme config
* @returns {ThemeConfig}
*/
export function defineThemeConfig(
export const defineThemeConfig = (
config: Partial<AllSiteThemeConfig>
): Partial<AllSiteThemeConfig> {
return config;
}
): Partial<AllSiteThemeConfig> => config;
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// export { defineThemeConfig } from './config';
export { defineThemeConfig } from './config';
export { siteSelectors, type SiteStore, useSiteStore } from './store';
export * from './types';
2 changes: 1 addition & 1 deletion src/layouts/DocLayout/DocumentLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Docs from '@/pages/Docs';
import Home from '@/pages/Home';
import Footer from '@/slots/Footer';
import Header from '@/slots/Header';
import Sidebar from '@/slots/SideBar';
import Sidebar from '@/slots/Sidebar';
import Toc from '@/slots/Toc';
import { isHeroPageSel, siteTitleSel, tocAnchorItemSel, useSiteStore } from '@/store';

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit db5bde7

Please sign in to comment.