1+ // Source file from the docmd project — https://github.com/docmd-io/docs
2+
3+ module . exports = {
4+ // --- Core Metadata ---
5+ siteTitle : 'docmd' ,
6+ siteUrl : 'https://docs.docmd.io' , // No trailing slash
7+
8+ // --- Branding ---
9+ logo : {
10+ light : 'assets/images/docmd-logo-light.png' ,
11+ dark : 'assets/images/docmd-logo-dark.png' ,
12+ alt : 'docmd Logo' ,
13+ href : './' ,
14+ } ,
15+ favicon : 'assets/favicon.ico' ,
16+
17+ // --- Structure ---
18+ srcDir : 'docs' , // Source markdown files directory
19+ outputDir : 'site' , // Output directory for generated site
20+
21+ // --- Features & UX ---
22+ search : true , // Built-in offline search
23+ minify : true , // Production build optimization
24+ autoTitleFromH1 : true , // Auto-generate title from first H1 if frontmatter title is missing
25+ copyCode : true , // Enable "copy to clipboard" on code blocks
26+ pageNavigation : true , // Next/Prev links
27+
28+ // --- Sidebar & Theme ---
29+ sidebar : {
30+ collapsible : true ,
31+ defaultCollapsed : false ,
32+ } ,
33+ theme : {
34+ name : 'sky' , // 'default', 'sky', 'ruby', 'retro'
35+ defaultMode : 'light' , // 'light' or 'dark'
36+ enableModeToggle : true , // Show theme mode toggle button
37+ positionMode : 'top' , // 'top' or 'bottom' of header
38+ codeHighlight : true , // Enable code syntax highlighting
39+ customCss : [ ] , // Add paths relative to outputDir here
40+ } ,
41+ customJs : [
42+ 'assets/js/docmd-image-lightbox.js' ,
43+ ] ,
44+
45+ // --- Plugins ---
46+ plugins : {
47+ seo : {
48+ defaultDescription : 'The minimalist, zero-config documentation generator for Node.js developers.' ,
49+ openGraph : {
50+ defaultImage : 'assets/images/preview.png' ,
51+ } ,
52+ twitter : {
53+ cardType : 'summary_large_image' ,
54+ }
55+ } ,
56+ analytics : {
57+ googleV4 : {
58+ measurementId : 'G-YGLJ5HPMM3'
59+ }
60+ } ,
61+ sitemap : {
62+ defaultChangefreq : 'weekly' ,
63+ defaultPriority : 0.8
64+ }
65+ } ,
66+
67+ // --- Doc Source Link ---
68+ editLink : {
69+ enabled : true ,
70+ baseUrl : 'https://github.com/docmd-io/docs/edit/main/docs' ,
71+ text : 'Edit this page on GitHub'
72+ } ,
73+
74+ // --- Navigation ---
75+ navigation : [
76+ { title : 'Overview' , path : './' , icon : 'home' } ,
77+
78+ {
79+ title : 'Getting Started' ,
80+ icon : 'rocket' ,
81+ path : './getting-started/' ,
82+ children : [
83+ { title : 'Installation' , path : './getting-started/installation' , icon : 'download' } ,
84+ { title : 'Basic Usage' , path : './getting-started/basic-usage' , icon : 'play' } ,
85+ ] ,
86+ } ,
87+
88+ { title : 'Configuration' , path : './configuration' , icon : 'settings' } ,
89+ {
90+ title : 'Content' ,
91+ icon : 'layout-template' ,
92+ path : './content/' ,
93+ collapsible : true ,
94+ children : [
95+ { title : 'Markdown Syntax' , path : './content/markdown-syntax' , icon : 'code-2' } ,
96+ { title : 'Frontmatter' , path : './content/frontmatter' , icon : 'file-text' } ,
97+ { title : 'Images & Lightbox' , path : './content/images' , icon : 'image' } ,
98+ { title : 'Search' , path : './content/search' , icon : 'search' } ,
99+ { title : 'Mermaid Diagrams' , path : './content/mermaid' , icon : 'network' } ,
100+ {
101+ title : 'Containers' ,
102+ path : './content/containers/' ,
103+ icon : 'box' ,
104+ collapsible : true ,
105+ children : [
106+ { title : 'Callouts' , path : './content/containers/callouts' , icon : 'megaphone' } ,
107+ { title : 'Cards' , path : './content/containers/cards' , icon : 'panel-top' } ,
108+ { title : 'Steps' , path : './content/containers/steps' , icon : 'list-ordered' } ,
109+ { title : 'Tabs' , path : './content/containers/tabs' , icon : 'columns-3' } ,
110+ { title : 'Collapsible' , path : './content/containers/collapsible' , icon : 'chevrons-down' } ,
111+ { title : 'Changelogs' , path : './content/containers/changelogs' , icon : 'history' } ,
112+ { title : 'Buttons' , path : './content/containers/buttons' , icon : 'mouse-pointer-click' } ,
113+ { title : 'Nested Containers' , path : './content/containers/nested-containers' , icon : 'folder-tree' } ,
114+ ]
115+ } ,
116+ { title : 'No-Style Pages' , path : './content/no-style-pages' , icon : 'layout' } ,
117+ { title : 'Live Preview' , path : './content/live-preview' , icon : 'monitor-play' } ,
118+ ] ,
119+ } ,
120+
121+ {
122+ title : 'Theming' ,
123+ icon : 'palette' ,
124+ path : './theming/' ,
125+ collapsible : true ,
126+ children : [
127+ { title : 'Available Themes' , path : './theming/available-themes' , icon : 'layout-grid' } ,
128+ { title : 'Light & Dark Mode' , path : './theming/light-dark-mode' , icon : 'sun-moon' } ,
129+ { title : 'Custom CSS & JS' , path : './theming/custom-css-js' , icon : 'file-code' } ,
130+ { title : 'Icons' , path : './theming/icons' , icon : 'pencil-ruler' } ,
131+ ] ,
132+ } ,
133+
134+ {
135+ title : 'Plugins' ,
136+ icon : 'puzzle' ,
137+ path : './plugins/' ,
138+ collapsible : true ,
139+ children : [
140+ { title : 'SEO & Meta' , path : './plugins/seo' , icon : 'search' } ,
141+ { title : 'Analytics' , path : './plugins/analytics' , icon : 'bar-chart' } ,
142+ { title : 'Sitemap' , path : './plugins/sitemap' , icon : 'map' } ,
143+ ] ,
144+ } ,
145+
146+ {
147+ title : 'Recipes' ,
148+ icon : 'chef-hat' ,
149+ path : './recipes/' ,
150+ collapsible : true ,
151+ children : [
152+ { title : 'Landing Page' , path : './recipes/landing-page' , icon : 'layout-template' } ,
153+ { title : 'Custom Fonts' , path : './recipes/custom-fonts' , icon : 'type' } ,
154+ { title : 'Favicon' , path : './recipes/favicon' , icon : 'image-plus' } ,
155+ ] ,
156+ } ,
157+
158+ { title : 'CLI Commands' , path : './cli-commands' , icon : 'terminal' } ,
159+ { title : 'Deployment' , path : './deployment' , icon : 'upload-cloud' } ,
160+ { title : 'Comparison' , path : './comparison' , icon : 'scale' } ,
161+ { title : 'Contributing' , path : './contributing' , icon : 'git-pull-request' } ,
162+
163+ { title : 'GitHub' , path : 'https://github.com/docmd-io/docmd' , icon : 'github' , external : true } ,
164+ { title : 'Discussions' , path : 'https://github.com/orgs/docmd-io/discussions' , icon : 'message-circle' , external : true } ,
165+ ] ,
166+
167+ // --- Footer & Sponsor ---
168+ footer : '© ' + new Date ( ) . getFullYear ( ) + ' Project docmd.' ,
169+ sponsor : {
170+ enabled : true ,
171+ title : 'Sponsor' ,
172+ link : 'https://github.com/sponsors/mgks' ,
173+ } ,
174+ } ;
0 commit comments