@@ -70,6 +70,12 @@ const enResearchItems = [
7070 { text : 'Evolution' , link : '/en/research/evolution' } ,
7171]
7272
73+ const enAlgorithmsItems = [
74+ { text : 'Algorithms Overview' , link : '/en/algorithms/' } ,
75+ { text : 'Sorting' , link : '/en/algorithms/sorting' } ,
76+ { text : 'Hashing' , link : '/en/algorithms/hashing' } ,
77+ ]
78+
7379const enDeepDivesItems = [
7480 { text : 'Deep Dives Overview' , link : '/en/deep-dives/' } ,
7581 { text : 'Memory Layout' , link : '/en/deep-dives/memory-layout' } ,
@@ -132,6 +138,12 @@ const zhContributingItems = [
132138 { text : 'AI 开发流程' , link : '/zh/contributing/ai-workflow' } ,
133139]
134140
141+ const zhAlgorithmsItems = [
142+ { text : '算法概览' , link : '/zh/algorithms/' } ,
143+ { text : '排序算法' , link : '/zh/algorithms/sorting' } ,
144+ { text : '哈希算法' , link : '/zh/algorithms/hashing' } ,
145+ ]
146+
135147const zhDeepDivesItems = [
136148 { text : '深度专题概览' , link : '/zh/deep-dives/' } ,
137149 { text : '内存布局(英文)' , link : '/en/deep-dives/memory-layout' } ,
@@ -156,39 +168,15 @@ export default withMermaid(defineConfig({
156168 mermaid : {
157169 startOnLoad : false ,
158170 securityLevel : 'strict' ,
159- flowchart : { useMaxWidth : true } ,
171+ flowchart : { useMaxWidth : true , htmlLabels : true } ,
160172 sequence : { useMaxWidth : true } ,
161- // Modern Geek Theme - Light Mode (Cobalt Engineering)
173+ gantt : { useMaxWidth : true } ,
174+ // Theme is fully controlled by CSS variables in style.css
175+ // for seamless light/dark mode switching.
162176 theme : 'base' ,
163177 themeVariables : {
164- primaryColor : '#E8EDF5' ,
165- primaryTextColor : '#1A2A4A' ,
166- primaryBorderColor : '#3B6BDC' ,
167- secondaryColor : '#F0F4FA' ,
168- tertiaryColor : '#E8EDF5' ,
169- lineColor : '#5A6A8A' ,
170178 fontFamily : 'Inter, system-ui, sans-serif' ,
171179 fontSize : '14px' ,
172- nodeBorder : '#3B6BDC' ,
173- mainBkg : '#E8EDF5' ,
174- clusterBkg : '#F0F4FA' ,
175- clusterBorder : '#3B6BDC' ,
176- titleColor : '#1A2A4A' ,
177- edgeLabelBackground : '#F0F4FA' ,
178- actorBkg : '#E8EDF5' ,
179- actorBorder : '#3B6BDC' ,
180- actorTextColor : '#1A2A4A' ,
181- actorLineColor : '#5A6A8A' ,
182- signalColor : '#1A2A4A' ,
183- signalTextColor : '#1A2A4A' ,
184- labelBoxBkg : '#E8EDF5' ,
185- labelBoxBorderColor : '#3B6BDC' ,
186- labelTextColor : '#1A2A4A' ,
187- loopTextColor : '#1A2A4A' ,
188- noteBorderColor : '#5A6A8A' ,
189- noteBkgColor : '#F0F4FA' ,
190- activationBorderColor : '#3B6BDC' ,
191- activationBkgColor : '#E8EDF5' ,
192180 } ,
193181 } ,
194182 head : [
@@ -220,6 +208,7 @@ export default withMermaid(defineConfig({
220208 nav : [
221209 { text : 'Academy' , link : '/en/academy/' , activeMatch : '/en/academy/' } ,
222210 { text : 'Architecture' , link : '/en/architecture/' , activeMatch : '/en/architecture/' } ,
211+ { text : 'Algorithms' , link : '/en/algorithms/' , activeMatch : '/en/algorithms/' } ,
223212 { text : 'Playbook' , link : '/en/playbook/' , activeMatch : '/en/playbook/|/en/getting-started/|/en/guides/' } ,
224213 { text : 'Deep Dives' , link : '/en/deep-dives/' , activeMatch : '/en/deep-dives/' } ,
225214 { text : 'Reference' , link : '/en/reference/' , activeMatch : '/en/reference/' } ,
@@ -242,6 +231,10 @@ export default withMermaid(defineConfig({
242231 text : 'Architecture' ,
243232 items : enArchitectureItems ,
244233 } ,
234+ {
235+ text : 'Algorithms' ,
236+ items : enAlgorithmsItems ,
237+ } ,
245238 {
246239 text : 'Playbook' ,
247240 items : enPlaybookItems ,
@@ -296,6 +289,7 @@ export default withMermaid(defineConfig({
296289 nav : [
297290 { text : '学院' , link : '/zh/academy/' , activeMatch : '/zh/academy/' } ,
298291 { text : '架构' , link : '/zh/architecture/' , activeMatch : '/zh/architecture/' } ,
292+ { text : '算法' , link : '/zh/algorithms/' , activeMatch : '/zh/algorithms/' } ,
299293 { text : '实践手册' , link : '/zh/playbook/' , activeMatch : '/zh/playbook/|/zh/getting-started/|/zh/guides/' } ,
300294 { text : '深度专题' , link : '/zh/deep-dives/' , activeMatch : '/zh/deep-dives/' } ,
301295 { text : '参考' , link : '/zh/reference/' , activeMatch : '/zh/reference/' } ,
@@ -318,6 +312,10 @@ export default withMermaid(defineConfig({
318312 text : '架构' ,
319313 items : zhArchitectureItems ,
320314 } ,
315+ {
316+ text : '算法' ,
317+ items : zhAlgorithmsItems ,
318+ } ,
321319 {
322320 text : '实践手册' ,
323321 items : zhPlaybookItems ,
@@ -366,7 +364,7 @@ export default withMermaid(defineConfig({
366364 search : { provider : 'local' } ,
367365 logo : {
368366 light : '/logo.svg' ,
369- dark : '/logo.svg' ,
367+ dark : '/logo-dark .svg' ,
370368 } ,
371369 editLink : {
372370 pattern : 'https://github.com/LessUp/cpp-high-performance-guide/edit/master/docs/:path' ,
0 commit comments