1+ import type { DocusaurusConfig } from "@docusaurus/types" ;
2+ import type * as pluginContentDocs from "@docusaurus/plugin-content-docs" ;
3+ import type * as docusaurusPluginTypedoc from "docusaurus-plugin-typedoc" ;
4+
5+ export default {
6+ title : "React Spreadsheet" ,
7+ tagline : "Simple, customizable yet performant spreadsheet for React" ,
8+ url : "https://iddan.github.io" ,
9+ baseUrl : "/react-spreadsheet/" ,
10+ onBrokenLinks : "throw" ,
11+ onBrokenMarkdownLinks : "warn" ,
12+ favicon : "img/favicon.ico" ,
13+ organizationName : "iddan" , // Usually your GitHub org/user name.
14+ projectName : "react-spreadsheet" , // Usually your repo name.
15+ themeConfig : {
16+ prism : {
17+ theme : require ( "prism-react-renderer" ) . themes . nightOwlLight ,
18+ darkTheme : require ( "prism-react-renderer" ) . themes . nightOwl ,
19+ } ,
20+ colorMode : {
21+ defaultMode : "dark" ,
22+ disableSwitch : false ,
23+ respectPrefersColorScheme : true ,
24+ } ,
25+ navbar : {
26+ title : "React Spreadsheet" ,
27+ logo : {
28+ alt : "React Spreadsheet Logo" ,
29+ src : "img/logo.svg" ,
30+ } ,
31+ items : [
32+ {
33+ type : "search" ,
34+ position : "right" ,
35+ } ,
36+ {
37+ to : "learn/" ,
38+ activeBasePath : "learn" ,
39+ label : "Learn" ,
40+ position : "right" ,
41+ } ,
42+ {
43+ to : "reference/variables/Spreadsheet" ,
44+ label : "Reference" ,
45+ position : "right" ,
46+ activeBasePath : "reference" ,
47+ } ,
48+ {
49+ href : "https://github.com/iddan/react-spreadsheet" ,
50+ position : "right" ,
51+ className : "header-github-link" ,
52+ "aria-label" : "GitHub repository" ,
53+ } ,
54+ ] ,
55+ } ,
56+ } ,
57+ presets : [
58+ [
59+ "@docusaurus/preset-classic" ,
60+ {
61+ docs : {
62+ routeBasePath : "learn" ,
63+ sidebarPath : require . resolve ( "./docs/sidebars.js" ) ,
64+ // Please change this to your repo.
65+ editUrl :
66+ "https://github.com/iddan/react-spreadsheet/tree/master/website" ,
67+ } ,
68+ theme : {
69+ customCss : require . resolve ( "./src/css/custom.css" ) ,
70+ } ,
71+ } ,
72+ ] ,
73+ ] ,
74+ plugins : [
75+ [
76+ "docusaurus-plugin-typedoc" ,
77+ {
78+ // @ts -expect-error docusaurus-plugin-typedoc is not typed properly
79+ entryPoints : [ "../src/index.ts" ] ,
80+ tsconfig : "../tsconfig.json" ,
81+ out : "reference" ,
82+ sidebar : {
83+ pretty : true ,
84+ autoConfiguration : true ,
85+ typescript : false ,
86+ deprecatedItemClassName : "deprecated" ,
87+ }
88+ } satisfies Partial < docusaurusPluginTypedoc . PluginOptions > ,
89+ ] ,
90+ [
91+ "@docusaurus/plugin-content-docs" ,
92+ {
93+ id : "reference" ,
94+ path : "reference" ,
95+ routeBasePath : "reference" ,
96+ sidebarPath : require . resolve ( "./src/reference-sidebar.js" ) ,
97+ exclude : [ "index.md" ] ,
98+ } satisfies Partial < pluginContentDocs . PluginOptions > ,
99+ ] ,
100+ ] ,
101+ } satisfies Partial < DocusaurusConfig > ;
0 commit comments