|  | 
| 71 | 71 |   <body> | 
| 72 | 72 |     <div id="app">Loading ...</div> | 
| 73 | 73 |     <script src="//cdn.jsdelivr.net/npm/docsify-plugin-carbon@1"></script> | 
| 74 |  | -    <script> | 
|  | 74 | +    <!-- <script> | 
| 75 | 75 |       // Docsify configuration | 
| 76 | 76 |       window.$docsify = { | 
| 77 | 77 |         alias: { | 
|  | 
| 214 | 214 |           }, | 
| 215 | 215 |         ], | 
| 216 | 216 |       }; | 
| 217 |  | -    </script> | 
| 218 |  | -    <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script> | 
|  | 217 | +    </script> --> | 
|  | 218 | + | 
|  | 219 | +    <!-- <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script> --> | 
|  | 220 | + | 
|  | 221 | +    <!-- TODO this all relied on globals, currently disabled --> | 
|  | 222 | +    <!-- | 
| 219 | 223 |     <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script> | 
| 220 | 224 |     <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/front-matter.min.js"></script> | 
| 221 | 225 |     <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/ga.min.js"></script> | 
|  | 
| 225 | 229 |     <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-nginx.min.js"></script> | 
| 226 | 230 |     <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script> | 
| 227 | 231 |     <script src="//cdn.jsdelivr.net/npm/vue@2/dist/vue.min.js"></script> | 
| 228 |  | -    <!-- <script src="//cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script> --> | 
|  | 232 | +    <script src="//cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script> | 
|  | 233 | +    --> | 
|  | 234 | + | 
|  | 235 | +    <script type="module"> | 
|  | 236 | +      import { Docsify } from '/lib/module.js'; | 
|  | 237 | + | 
|  | 238 | +      new Docsify({ | 
|  | 239 | +        alias: { | 
|  | 240 | +          '.*?/awesome': | 
|  | 241 | +            'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md', | 
|  | 242 | +          '.*?/changelog': | 
|  | 243 | +            'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md', | 
|  | 244 | +          '/.*/_navbar.md': '/_navbar.md', | 
|  | 245 | +          '/es/(.*)': | 
|  | 246 | +            'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1', | 
|  | 247 | +          '/de-de/(.*)': | 
|  | 248 | +            'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1', | 
|  | 249 | +          '/ru-ru/(.*)': | 
|  | 250 | +            'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1', | 
|  | 251 | +          '/zh-cn/(.*)': | 
|  | 252 | +            'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', | 
|  | 253 | +        }, | 
|  | 254 | +        auto2top: true, | 
|  | 255 | +        coverpage: true, | 
|  | 256 | +        executeScript: true, | 
|  | 257 | +        loadSidebar: true, | 
|  | 258 | +        loadNavbar: true, | 
|  | 259 | +        mergeNavbar: true, | 
|  | 260 | +        maxLevel: 4, | 
|  | 261 | +        subMaxLevel: 2, | 
|  | 262 | +        ga: 'UA-106147152-1', | 
|  | 263 | +        matomo: { | 
|  | 264 | +          host: '//matomo.thunderwave.de', | 
|  | 265 | +          id: 6, | 
|  | 266 | +        }, | 
|  | 267 | +        name: 'docsify', | 
|  | 268 | +        nameLink: { | 
|  | 269 | +          '/es/': '#/es/', | 
|  | 270 | +          '/de-de/': '#/de-de/', | 
|  | 271 | +          '/ru-ru/': '#/ru-ru/', | 
|  | 272 | +          '/zh-cn/': '#/zh-cn/', | 
|  | 273 | +          '/': '#/', | 
|  | 274 | +        }, | 
|  | 275 | +        search: { | 
|  | 276 | +          noData: { | 
|  | 277 | +            '/es/': '¡No hay resultados!', | 
|  | 278 | +            '/de-de/': 'Keine Ergebnisse!', | 
|  | 279 | +            '/ru-ru/': 'Никаких результатов!', | 
|  | 280 | +            '/zh-cn/': '没有结果!', | 
|  | 281 | +            '/': 'No results!', | 
|  | 282 | +          }, | 
|  | 283 | +          paths: 'auto', | 
|  | 284 | +          placeholder: { | 
|  | 285 | +            '/es/': 'Buscar', | 
|  | 286 | +            '/de-de/': 'Suche', | 
|  | 287 | +            '/ru-ru/': 'Поиск', | 
|  | 288 | +            '/zh-cn/': '搜索', | 
|  | 289 | +            '/': 'Search', | 
|  | 290 | +          }, | 
|  | 291 | +          pathNamespaces: ['/es', '/de-de', '/ru-ru', '/zh-cn'], | 
|  | 292 | +        }, | 
|  | 293 | +        skipLink: { | 
|  | 294 | +          '/es/': 'Saltar al contenido principal', | 
|  | 295 | +          '/de-de/': 'Ga naar de hoofdinhoud', | 
|  | 296 | +          '/ru-ru/': 'Перейти к основному содержанию', | 
|  | 297 | +          '/zh-cn/': '跳到主要内容', | 
|  | 298 | +        }, | 
|  | 299 | +        vueComponents: { | 
|  | 300 | +          'button-counter': { | 
|  | 301 | +            template: /* html */ `<button @click="count += 1">You clicked me {{ count }} times</button>`, | 
|  | 302 | +            data() { | 
|  | 303 | +              return { | 
|  | 304 | +                count: 0, | 
|  | 305 | +              }; | 
|  | 306 | +            }, | 
|  | 307 | +          }, | 
|  | 308 | +        }, | 
|  | 309 | +        vueGlobalOptions: { | 
|  | 310 | +          data() { | 
|  | 311 | +            return { | 
|  | 312 | +              count: 0, | 
|  | 313 | +              message: 'Hello, World!', | 
|  | 314 | +              // Fake API response | 
|  | 315 | +              images: [ | 
|  | 316 | +                { | 
|  | 317 | +                  title: 'Image 1', | 
|  | 318 | +                  url: 'https://picsum.photos/150?random=1', | 
|  | 319 | +                }, | 
|  | 320 | +                { | 
|  | 321 | +                  title: 'Image 2', | 
|  | 322 | +                  url: 'https://picsum.photos/150?random=2', | 
|  | 323 | +                }, | 
|  | 324 | +                { | 
|  | 325 | +                  title: 'Image 3', | 
|  | 326 | +                  url: 'https://picsum.photos/150?random=3', | 
|  | 327 | +                }, | 
|  | 328 | +              ], | 
|  | 329 | +            }; | 
|  | 330 | +          }, | 
|  | 331 | +          computed: { | 
|  | 332 | +            timeOfDay() { | 
|  | 333 | +              const date = new Date(); | 
|  | 334 | +              const hours = date.getHours(); | 
|  | 335 | + | 
|  | 336 | +              if (hours < 12) { | 
|  | 337 | +                return 'morning'; | 
|  | 338 | +              } else if (hours < 18) { | 
|  | 339 | +                return 'afternoon'; | 
|  | 340 | +              } else { | 
|  | 341 | +                return 'evening'; | 
|  | 342 | +              } | 
|  | 343 | +            }, | 
|  | 344 | +          }, | 
|  | 345 | +          methods: { | 
|  | 346 | +            hello() { | 
|  | 347 | +              alert(this.message); | 
|  | 348 | +            }, | 
|  | 349 | +          }, | 
|  | 350 | +        }, | 
|  | 351 | +        vueMounts: { | 
|  | 352 | +          '#counter': { | 
|  | 353 | +            data() { | 
|  | 354 | +              return { | 
|  | 355 | +                count: 0, | 
|  | 356 | +              }; | 
|  | 357 | +            }, | 
|  | 358 | +          }, | 
|  | 359 | +        }, | 
|  | 360 | +        plugins: [ | 
|  | 361 | +          DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'), | 
|  | 362 | +          function (hook, vm) { | 
|  | 363 | +            hook.beforeEach(html => { | 
|  | 364 | +              let url; | 
|  | 365 | +              if (/githubusercontent\.com/.test(vm.route.file)) { | 
|  | 366 | +                url = vm.route.file | 
|  | 367 | +                  .replace('raw.githubusercontent.com', 'github.com') | 
|  | 368 | +                  .replace(/\/master/, '/blob/master'); | 
|  | 369 | +              } else if (/jsdelivr\.net/.test(vm.route.file)) { | 
|  | 370 | +                url = vm.route.file | 
|  | 371 | +                  .replace('cdn.jsdelivr.net/gh', 'github.com') | 
|  | 372 | +                  .replace('@master', '/blob/master'); | 
|  | 373 | +              } else { | 
|  | 374 | +                url = | 
|  | 375 | +                  'https://github.com/docsifyjs/docsify/blob/develop/docs/' + | 
|  | 376 | +                  vm.route.file; | 
|  | 377 | +              } | 
|  | 378 | +              const editHtml = '[:memo: Edit Document](' + url + ')\n'; | 
|  | 379 | +              return ( | 
|  | 380 | +                editHtml + | 
|  | 381 | +                html + | 
|  | 382 | +                '\n\n----\n\n' + | 
|  | 383 | +                '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>' | 
|  | 384 | +              ); | 
|  | 385 | +            }); | 
|  | 386 | +          }, | 
|  | 387 | +        ], | 
|  | 388 | +      }); | 
|  | 389 | +    </script> | 
| 229 | 390 |   </body> | 
| 230 | 391 | </html> | 
0 commit comments