|
23 | 23 |
|
24 | 24 | </style>
|
25 | 25 |
|
26 | | - <!-- Plugins that are needed before app configuration. --> |
27 | 26 | <script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
|
| 27 | + |
| 28 | + <script defer src="//unpkg.com/docsify/lib/docsify.min.js"></script> |
| 29 | + <script defer src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script> |
28 | 30 |
|
29 | 31 | </head>
|
30 | 32 |
|
31 | 33 | <body>
|
32 | 34 | <div id="app"></div>
|
33 | 35 |
|
34 | 36 | <script>
|
35 | | - var repo = 'https://github.com/MichaelCurrin/docsify-js-tutorial'; |
| 37 | + var repoUrl = "https://github.com/MichaelCurrin/docsify-js-tutorial"; |
| 38 | + var editPath = repoUrl + "/blob/master/docs/"; |
| 39 | + var editMsg = "π Edit on GitHub"; |
36 | 40 |
|
37 | 41 | window.$docsify = {
|
38 | | - name: 'DocsifyJS Tutorial', |
39 | | - repo, |
| 42 | + name: "DocsifyJS Tutorial", |
| 43 | + repo: repoUrl, |
| 44 | + |
40 | 45 | auto2top: true,
|
41 | 46 | coverpage: true,
|
42 | 47 | loadSidebar: false,
|
43 | | - themeColor: '#3271a8', |
| 48 | + themeColor: "#3271a8", |
44 | 49 |
|
45 | 50 | plugins: [
|
46 | | - EditOnGithubPlugin.create( |
47 | | - repo + '/blob/master/docs/', |
48 | | - null, |
49 | | - 'π Edit on GitHub', |
50 | | - ) |
| 51 | + EditOnGithubPlugin.create(editPath, null, editMsg) |
51 | 52 | ],
|
52 | 53 | };
|
53 | 54 |
|
54 | 55 | </script>
|
55 | 56 |
|
56 | | - <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> |
57 | | - |
58 | | - <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script> |
59 | | - |
60 | 57 | </body>
|
61 | 58 |
|
62 | 59 | </html>
|
0 commit comments