@md-plugins/quasar-app-extension-q-press 0.1.0-beta.2 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -15
- package/dist/index.js +41 -7
- package/dist/install.js +7 -5
- package/dist/q-press-globals.d.ts +49 -0
- package/dist/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/dist/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/dist/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
- package/dist/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
- package/dist/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/dist/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
- package/dist/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
- package/dist/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/dist/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
- package/dist/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
- package/dist/templates/init/src/_q-press/css/app.scss +38 -26
- package/dist/templates/init/src/_q-press/css/code-theme.scss +634 -0
- package/dist/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/dist/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/dist/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/dist/templates/init/src/_q-press/stores/markdown.ts +1 -2
- package/dist/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
- package/dist/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/dist/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/dist/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/dist/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/dist/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/dist/templates/init/src/markdown/__elements.md +8 -8
- package/dist/templates/init/src/markdown/__elements2.md +4 -4
- package/dist/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/dist/templates/init/src/markdown/faq/general.md +27 -0
- package/dist/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/dist/templates/init/src/markdown/getting-started/introduction.md +7 -5
- package/dist/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
- package/dist/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
- package/dist/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
- package/dist/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
- package/dist/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
- package/dist/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
- package/dist/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
- package/dist/templates/init/src/markdown/other/contact.md +37 -0
- package/dist/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/dist/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/dist/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/dist/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/dist/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/dist/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/dist/templates/init/src/markdown/other/faq.md +179 -0
- package/dist/templates/init/src/markdown/other/releases.md +11 -0
- package/dist/templates/init/src/markdown/other/upgrade-guide.md +165 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
- package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
- package/dist/templates/init/src/siteConfig/index.ts +52 -23
- package/dist/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/dist/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/dist/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
- package/dist/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
- package/dist/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/dist/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
- package/dist/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
- package/dist/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/dist/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
- package/dist/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
- package/dist/templates/update/src/_q-press/css/app.scss +38 -26
- package/dist/templates/update/src/_q-press/css/code-theme.scss +634 -0
- package/dist/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/dist/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/dist/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/dist/templates/update/src/_q-press/stores/markdown.ts +1 -2
- package/package.json +22 -21
- package/src/index.ts +80 -11
- package/src/install.ts +10 -9
- package/src/q-press-globals.d.ts +49 -0
- package/src/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/src/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/src/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
- package/src/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
- package/src/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/src/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
- package/src/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
- package/src/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/src/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
- package/src/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
- package/src/templates/init/src/_q-press/css/app.scss +38 -26
- package/src/templates/init/src/_q-press/css/code-theme.scss +634 -0
- package/src/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/src/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/src/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/src/templates/init/src/_q-press/stores/markdown.ts +1 -2
- package/src/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
- package/src/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/src/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/src/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/src/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/src/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/src/templates/init/src/markdown/__elements.md +8 -8
- package/src/templates/init/src/markdown/__elements2.md +4 -4
- package/src/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/src/templates/init/src/markdown/faq/general.md +27 -0
- package/src/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/src/templates/init/src/markdown/getting-started/introduction.md +7 -5
- package/src/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
- package/src/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
- package/src/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
- package/src/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
- package/src/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
- package/src/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
- package/src/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
- package/src/templates/init/src/markdown/other/contact.md +37 -0
- package/src/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/src/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/src/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/src/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/src/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/src/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/src/templates/init/src/markdown/other/faq.md +179 -0
- package/src/templates/init/src/markdown/other/releases.md +11 -0
- package/src/templates/init/src/markdown/other/upgrade-guide.md +165 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
- package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
- package/src/templates/init/src/siteConfig/index.ts +52 -23
- package/src/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/src/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/src/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
- package/src/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
- package/src/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/src/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
- package/src/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
- package/src/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/src/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
- package/src/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
- package/src/templates/update/src/_q-press/css/app.scss +38 -26
- package/src/templates/update/src/_q-press/css/code-theme.scss +634 -0
- package/src/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/src/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/src/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/src/templates/update/src/_q-press/stores/markdown.ts +1 -2
- package/tsconfig.json +1 -1
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/init/src/markdown/guides/contributing.md +0 -101
- package/dist/templates/init/src/markdown/guides/faq.md +0 -115
- package/dist/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/dist/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/dist/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
- package/dist/templates/init/src/markdown/other/release-notes.md +0 -8
- package/dist/templates/init/src/q-press.globals.d.ts +0 -36
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/update/src/q-press.globals.d.ts +0 -36
- package/src/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/init/src/markdown/guides/contributing.md +0 -101
- package/src/templates/init/src/markdown/guides/faq.md +0 -115
- package/src/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/src/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/src/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
- package/src/templates/init/src/markdown/other/release-notes.md +0 -8
- package/src/templates/init/src/q-press.globals.d.ts +0 -36
- package/src/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/update/src/q-press.globals.d.ts +0 -36
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://path-to-your-docs/markdown-code-prism"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"code": {
|
|
8
|
-
"type": "String",
|
|
9
|
-
"desc": "The code to display with syntax highlighting",
|
|
10
|
-
"examples": [
|
|
11
|
-
"'const a = 1;'",
|
|
12
|
-
"'<div>Hello World</div>'"
|
|
13
|
-
],
|
|
14
|
-
"required": true,
|
|
15
|
-
"category": "content"
|
|
16
|
-
},
|
|
17
|
-
"lang": {
|
|
18
|
-
"type": "String",
|
|
19
|
-
"desc": "Language of the code for syntax highlighting",
|
|
20
|
-
"examples": [
|
|
21
|
-
"'js'",
|
|
22
|
-
"'html'",
|
|
23
|
-
"'css'"
|
|
24
|
-
],
|
|
25
|
-
"required": true,
|
|
26
|
-
"category": "content"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import Prism from 'prismjs'
|
|
2
|
-
import { h, computed, defineComponent, type PropType } from 'vue'
|
|
3
|
-
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
name: 'MarkdownCodePrism',
|
|
6
|
-
|
|
7
|
-
props: {
|
|
8
|
-
code: {
|
|
9
|
-
type: String as PropType<string>,
|
|
10
|
-
required: true,
|
|
11
|
-
},
|
|
12
|
-
lang: {
|
|
13
|
-
type: String as PropType<string>,
|
|
14
|
-
required: true,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
setup(props) {
|
|
19
|
-
const html = computed(() => {
|
|
20
|
-
if (!props.code || !props.lang) {
|
|
21
|
-
return ''
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return Prism.highlight(props.code, Prism.languages[props.lang] as Prism.Grammar, props.lang)
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
return () =>
|
|
28
|
-
h(
|
|
29
|
-
'pre',
|
|
30
|
-
{
|
|
31
|
-
class: `markdown-code language-${props.lang}`,
|
|
32
|
-
},
|
|
33
|
-
[h('code', { innerHTML: html.value })],
|
|
34
|
-
)
|
|
35
|
-
},
|
|
36
|
-
})
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
.markdown-code {
|
|
2
|
-
margin: 0;
|
|
3
|
-
position: relative;
|
|
4
|
-
overflow: auto;
|
|
5
|
-
border-radius: inherit;
|
|
6
|
-
|
|
7
|
-
code {
|
|
8
|
-
display: block;
|
|
9
|
-
padding: 16px;
|
|
10
|
-
width: fit-content;
|
|
11
|
-
min-width: 100%;
|
|
12
|
-
|
|
13
|
-
font-size: ($font-size - 2px);
|
|
14
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
15
|
-
line-height: 1.5em;
|
|
16
|
-
tab-size: 2;
|
|
17
|
-
text-align: left;
|
|
18
|
-
white-space: pre;
|
|
19
|
-
word-spacing: normal;
|
|
20
|
-
word-break: normal;
|
|
21
|
-
word-wrap: normal;
|
|
22
|
-
hyphens: none;
|
|
23
|
-
|
|
24
|
-
color: inherit;
|
|
25
|
-
background-color: inherit;
|
|
26
|
-
border-radius: inherit;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&--copying {
|
|
30
|
-
.c-lpref,
|
|
31
|
-
.c-line,
|
|
32
|
-
.token.deleted-sign,
|
|
33
|
-
.token.prefix {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.c-line {
|
|
40
|
-
position: relative;
|
|
41
|
-
display: block;
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 0;
|
|
44
|
-
&:before {
|
|
45
|
-
content: ' ';
|
|
46
|
-
position: absolute;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
top: 1px;
|
|
49
|
-
left: -16px;
|
|
50
|
-
right: -16px;
|
|
51
|
-
height: 1.5em;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.c-lpref {
|
|
56
|
-
position: sticky;
|
|
57
|
-
pointer-events: none;
|
|
58
|
-
user-select: none;
|
|
59
|
-
left: 8px;
|
|
60
|
-
padding: 0 16px 0 8px;
|
|
61
|
-
margin: -16px 0 -16px -8px;
|
|
62
|
-
&:before {
|
|
63
|
-
border-right: 1px solid;
|
|
64
|
-
content: '';
|
|
65
|
-
position: absolute;
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
top: -1px;
|
|
68
|
-
left: -8px;
|
|
69
|
-
right: 8px;
|
|
70
|
-
bottom: -2px;
|
|
71
|
-
z-index: -1;
|
|
72
|
-
height: 1.5em;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.line-add:before,
|
|
77
|
-
.token.inserted-sign:before {
|
|
78
|
-
background: rgba($positive, 0.4);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.token.deleted-sign,
|
|
82
|
-
.token.inserted-sign {
|
|
83
|
-
position: relative;
|
|
84
|
-
display: block;
|
|
85
|
-
width: 100%;
|
|
86
|
-
|
|
87
|
-
&:before {
|
|
88
|
-
content: '';
|
|
89
|
-
position: absolute;
|
|
90
|
-
pointer-events: none;
|
|
91
|
-
top: 0;
|
|
92
|
-
left: -16px;
|
|
93
|
-
right: -16px;
|
|
94
|
-
bottom: 0;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.token.prefix {
|
|
99
|
-
margin-right: 8px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
body.body--light {
|
|
103
|
-
.markdown-code {
|
|
104
|
-
color: $brand-light-codeblock-text;
|
|
105
|
-
background-color: $brand-light-codeblock-bg;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.line-highlight:before {
|
|
109
|
-
background: rgba($grey, 0.2);
|
|
110
|
-
}
|
|
111
|
-
.line-rem:before,
|
|
112
|
-
.token.deleted-sign:before {
|
|
113
|
-
background: rgba($negative, 0.2);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.c-lpref {
|
|
117
|
-
color: $brand-light-codeblock-text;
|
|
118
|
-
&:before {
|
|
119
|
-
border-right-color: $separator-color;
|
|
120
|
-
background: $brand-light-codeblock-bg;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.token.comment,
|
|
125
|
-
.token.block-comment,
|
|
126
|
-
.token.prolog,
|
|
127
|
-
.token.doctype,
|
|
128
|
-
.token.cdata {
|
|
129
|
-
color: #7d8b99;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.token {
|
|
133
|
-
&.punctuation {
|
|
134
|
-
color: #5f6364;
|
|
135
|
-
}
|
|
136
|
-
&.important {
|
|
137
|
-
font-weight: 400;
|
|
138
|
-
}
|
|
139
|
-
&.bold {
|
|
140
|
-
font-weight: 700;
|
|
141
|
-
}
|
|
142
|
-
&.italic {
|
|
143
|
-
font-style: italic;
|
|
144
|
-
}
|
|
145
|
-
&.entity {
|
|
146
|
-
cursor: help;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.token.property,
|
|
151
|
-
.token.tag,
|
|
152
|
-
.token.boolean,
|
|
153
|
-
.token.number,
|
|
154
|
-
.token.function-name,
|
|
155
|
-
.token.constant,
|
|
156
|
-
.token.symbol,
|
|
157
|
-
.token.deleted {
|
|
158
|
-
color: #c92c2c;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.token.selector,
|
|
162
|
-
.token.attr-name,
|
|
163
|
-
.token.string,
|
|
164
|
-
.token.char,
|
|
165
|
-
.token.function,
|
|
166
|
-
.token.builtin,
|
|
167
|
-
.token.inserted {
|
|
168
|
-
color: #2f9c0a;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.token.operator,
|
|
172
|
-
.token.entity,
|
|
173
|
-
.token.url,
|
|
174
|
-
.token.variable {
|
|
175
|
-
color: #da5a20;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.token.atrule,
|
|
179
|
-
.token.attr-value,
|
|
180
|
-
.token.keyword,
|
|
181
|
-
.token.class-name {
|
|
182
|
-
color: #1990b8;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.token.regex,
|
|
186
|
-
.token.important {
|
|
187
|
-
color: #e90;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.language-css .token.string,
|
|
191
|
-
.style .token.string {
|
|
192
|
-
color: #a67f59;
|
|
193
|
-
background: rgba(255, 255, 255, 0.5);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.namespace {
|
|
197
|
-
opacity: 0.7;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.token.tab:not(:empty):before,
|
|
201
|
-
.token.cr:before,
|
|
202
|
-
.token.lf:before {
|
|
203
|
-
color: #e0d7d1;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
body.body--dark {
|
|
208
|
-
.markdown-code {
|
|
209
|
-
color: $brand-dark-codeblock-text;
|
|
210
|
-
background-color: $brand-dark-codeblock-bg;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.line-highlight:before {
|
|
214
|
-
background: rgba($grey-3, 0.2);
|
|
215
|
-
}
|
|
216
|
-
.line-rem:before,
|
|
217
|
-
.token.deleted-sign:before {
|
|
218
|
-
background: rgba($red, 0.3);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.c-lpref {
|
|
222
|
-
color: $brand-light-codeblock-text;
|
|
223
|
-
&:before {
|
|
224
|
-
border-right-color: $separator-dark-color;
|
|
225
|
-
background: $brand-dark-codeblock-bg;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.token.comment,
|
|
230
|
-
.token.prolog,
|
|
231
|
-
.token.doctype,
|
|
232
|
-
.token.cdata {
|
|
233
|
-
color: #d4d0ab;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.token.punctuation {
|
|
237
|
-
color: #fefefe;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.token.property,
|
|
241
|
-
.token.tag,
|
|
242
|
-
.token.constant,
|
|
243
|
-
.token.symbol,
|
|
244
|
-
.token.deleted {
|
|
245
|
-
color: #ffa07a;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.token.boolean,
|
|
249
|
-
.token.number {
|
|
250
|
-
color: #00e0e0;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.token.selector,
|
|
254
|
-
.token.attr-name,
|
|
255
|
-
.token.string,
|
|
256
|
-
.token.char,
|
|
257
|
-
.token.builtin,
|
|
258
|
-
.token.inserted {
|
|
259
|
-
color: #abe338;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.token.operator,
|
|
263
|
-
.token.entity,
|
|
264
|
-
.token.url,
|
|
265
|
-
.language-css .token.string,
|
|
266
|
-
.style .token.string,
|
|
267
|
-
.token.variable {
|
|
268
|
-
color: #00e0e0;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.token.atrule,
|
|
272
|
-
.token.attr-value,
|
|
273
|
-
.token.function {
|
|
274
|
-
color: #ffd700;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.token.keyword {
|
|
278
|
-
color: #00e0e0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.token.regex,
|
|
282
|
-
.token.important {
|
|
283
|
-
color: #ffd700;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.token.important,
|
|
287
|
-
.token.bold {
|
|
288
|
-
font-weight: 700;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.token.italic {
|
|
292
|
-
font-style: italic;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.token.entity {
|
|
296
|
-
cursor: help;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare module '*.md'
|
|
2
|
-
|
|
3
|
-
// Define types for headers
|
|
4
|
-
interface TocMenuItem {
|
|
5
|
-
id: string
|
|
6
|
-
level: number
|
|
7
|
-
title: string
|
|
8
|
-
link?: string
|
|
9
|
-
deep?: boolean
|
|
10
|
-
sub?: boolean
|
|
11
|
-
onClick?: () => void
|
|
12
|
-
children?: TocMenuItem[]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Define types for Markdown modules
|
|
16
|
-
interface MarkdownModule {
|
|
17
|
-
title?: string
|
|
18
|
-
headers?: TocMenuItem[]
|
|
19
|
-
frontmatter?: Record<string, unknown>
|
|
20
|
-
filename?: string
|
|
21
|
-
render: (..._args: unknown[]) => unknown
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Define types for menu items
|
|
25
|
-
interface MenuItem {
|
|
26
|
-
name: string
|
|
27
|
-
path?: string
|
|
28
|
-
icon?: string
|
|
29
|
-
iconColor?: string
|
|
30
|
-
rightIcon?: string
|
|
31
|
-
rightIconColor?: string
|
|
32
|
-
badge?: string
|
|
33
|
-
children?: MenuItem[] | undefined
|
|
34
|
-
external?: boolean
|
|
35
|
-
expanded?: boolean
|
|
36
|
-
}
|