File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 < link href ="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap " rel ="stylesheet ">
1212 < link rel ="stylesheet " href ="./style.css ">
1313 < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css ">
14+ < script src ="https://cdn.jsdelivr.net/npm/tinypine@1.3.0/dist/tinypine.min.js "> </ script >
1415</ head >
1516< body class ="h-full bg-gradient-to-br from-gray-50 via-pine-50/30 to-gray-50 dark:from-gray-900 dark:via-pine-950/20 dark:to-gray-900 transition-all duration-500 ">
1617
Original file line number Diff line number Diff line change 1- import TinyPine from 'tinypine' ;
21import { marked } from 'marked'
32import hljs from 'highlight.js'
43
@@ -146,7 +145,7 @@ window.app = function() {
146145 const contentDiv = document . getElementById ( 'markdown-content' )
147146
148147 try {
149- const response = await fetch ( `/docs/${ path } .md` )
148+ const response = await fetch ( `. /docs/${ path } .md` )
150149
151150 if ( ! response . ok ) {
152151 throw new Error ( 'Document not found' )
@@ -242,7 +241,9 @@ document.addEventListener('DOMContentLoaded', () => {
242241 }
243242
244243 // Now that window.app is defined, initialize TinyPine
245- TinyPine . init ( ) ;
244+ if ( window . TinyPine ) {
245+ window . TinyPine . init ( ) ;
246+ }
246247
247248 // Wait a moment for TinyPine to process directives, then trigger app init
248249 setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments