Add custom font styles and theme enhancements

- Created a new CSS file for font imports and defined font families for base, mono, strong, em, and h1 elements.
- Added a new JavaScript file to extend the default VitePress theme, incorporating a custom layout and a Vue component for enhanced functionality.
- Integrated Mermaid diagram support and included the necessary styles for it.
This commit is contained in:
2026-06-02 13:03:25 +08:00
parent 6e577b15a2
commit b9bbcf131e
26 changed files with 4274 additions and 18 deletions

8
.obsidian/plugins/odox/data.json vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"docsPath": "openwiki/docs",
"assetsPath": "openwiki/public",
"nestInFolder": false,
"preserveFolderStructure": true,
"transparentCanvas": true,
"canvasEmbedTemplate": "<Viewer src=\"{url}\" />"
}

6
.obsidian/plugins/odox/main.js vendored Normal file

File diff suppressed because one or more lines are too long

10
.obsidian/plugins/odox/manifest.json vendored Normal file
View File

@@ -0,0 +1,10 @@
{
"id": "odox",
"name": "Odox",
"version": "0.1.0",
"minAppVersion": "0.15.0",
"description": "Export Obsidian notes to static docs tools with asset management",
"author": "nan",
"authorUrl": "https://github.com/icrdr",
"isDesktopOnly": false
}

30
.obsidian/plugins/odox/styles.css vendored Normal file
View File

@@ -0,0 +1,30 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
/* 透明导出模式:隐藏洞洞板背景 */
.canvas-transparent-export .canvas-background {
display: none !important;
}
/* 透明导出模式:确保 canvas 容器背景透明 */
.canvas-transparent-export {
background-color: transparent !important;
background-image: none !important;
}
/* 截图时隐藏页面其他元素 */
.odox-hidden {
display: none !important;
}
/* 截图时的 body 样式 */
.odox-capturing {
background-color: transparent !important;
background-image: none !important;
}