1+ import markdownItKatex from 'markdown-it-katex' ;
2+ import { withMermaid } from "vitepress-plugin-mermaid" ;
3+ import lightbox from "vitepress-plugin-lightbox"
4+
5+
6+ export default withMermaid ( {
7+ title : 'NPS-SRO-ML' ,
8+ description : 'Documentation for NPS SRO ML analysis' ,
9+ base : '/nps-sro-ml/' ,
10+
11+ // Improved head settings with proper KaTeX styling
12+ head : [
13+ [ 'link' , { rel :
'stylesheet' , href :
'https://cdn.jsdelivr.net/npm/[email protected] /dist/katex.min.css' } ] , 14+ [ 'link' , { rel : 'icon' , type : 'image/png' , href : '/favicon.png' } ] ,
15+ [ 'meta' , { name : 'viewport' , content : 'width=device-width, initial-scale=1.0' } ] ,
16+ ] ,
17+
18+ // Enhanced theme configuration
19+ themeConfig : {
20+ // Logo (create a simple logo and place it in docs/public/)
21+ logo : 'logo.png' ,
22+
23+ // Improved navigation
24+ nav : [
25+ { text : 'Home' , link : '/' } ,
26+ {
27+ text : 'Resources' ,
28+ items : [
29+ { text : 'Meetings' , link : 'https://wiki.jlab.org/cuawiki/index.php/EIC_Meson_SF_Meeting_Material_and_Summaries' } ,
30+ { text : 'Data' , link : '/data' } ,
31+ { text : 'GitHub' , link : 'https://github.com/JeffersonLab/nps-sro-ml' }
32+ ]
33+ } ,
34+ ] ,
35+
36+ // Expanded sidebar with better organization
37+ sidebar : [
38+ {
39+ text : 'Getting Started' ,
40+ collapsed : false , // Ensure this is not collapsed
41+ items : [
42+ { text : 'About' , link : '/' } ,
43+ ]
44+ } ,
45+ {
46+ text : 'Data' ,
47+ link : '/data' ,
48+ items : [
49+ { text : 'Data Access' , link : '/data' } ,
50+ ]
51+ } ,
52+ {
53+ text : 'Other' ,
54+ items : [
55+ { text : 'Resources' , link : '/resources' } ,
56+ { text : 'Manage website' , link : '/manage-website' } ,
57+ ]
58+ }
59+ ] ,
60+
61+ // Footer customization
62+ footer : {
63+ message : 'Released under the MIT License.' ,
64+ copyright : 'Copyright © 2025 Meson Structure Collaboration'
65+ } ,
66+
67+ // Social links
68+ socialLinks : [
69+ { icon : 'github' , link : 'https://github.com/JeffersonLab/sro-nps-ml' }
70+ ] ,
71+
72+ // Search configuration
73+ search : {
74+ provider : 'local'
75+ } ,
76+
77+ // Layout customization for large screens
78+ outline : {
79+ level : [ 2 , 3 ] ,
80+ label : 'On this page'
81+ } ,
82+
83+ // Additional helpful features
84+ editLink : {
85+ pattern : 'https://github.com/JeffersonLab/nps-sro-ml/edit/main/docs/:path' ,
86+ text : 'Edit this page on GitHub'
87+ } ,
88+
89+ // Dark/Light theme toggle (enabled by default)
90+ appearance : true
91+ } ,
92+
93+ // Enable KaTeX for math rendering
94+ markdown : {
95+ config : ( md ) => {
96+ md . use ( markdownItKatex ) ;
97+ md . use ( lightbox , { } ) ;
98+ }
99+ } ,
100+
101+ // Fix layout issues on large screens
102+ vite : {
103+ css : {
104+ preprocessorOptions : {
105+ scss : {
106+ additionalData : `
107+ // Add any global SCSS variables here
108+ `
109+ }
110+ }
111+ }
112+ }
113+ } ) ;
0 commit comments