@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
|
@@ -34,7 +34,7 @@ $light-pill: $brand-light;
|
|
|
34
34
|
$light-text: $brand-light-text;
|
|
35
35
|
$light-bg: $brand-light-bg;
|
|
36
36
|
|
|
37
|
-
$dark-pill: scale
|
|
37
|
+
$dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
|
|
38
38
|
$dark-text: $brand-dark-text;
|
|
39
39
|
$dark-bg: $brand-dark-bg;
|
|
40
40
|
|
|
@@ -34,7 +34,7 @@ $light-pill: $brand-light;
|
|
|
34
34
|
$light-text: $brand-light-text;
|
|
35
35
|
$light-bg: $brand-light-bg;
|
|
36
36
|
|
|
37
|
-
$dark-pill: scale
|
|
37
|
+
$dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
|
|
38
38
|
$dark-text: $brand-dark-text;
|
|
39
39
|
$dark-bg: $brand-dark-bg;
|
|
40
40
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<script setup lang="ts">
|
|
26
26
|
import { mdiClose } from '@quasar/extras/mdi-v7'
|
|
27
27
|
|
|
28
|
-
import { useMarkdownStore } from '
|
|
28
|
+
import { useMarkdownStore } from '@/.q-press/stores/markdown'
|
|
29
29
|
import MarkdownPageSidebar from './MarkdownPageSidebar'
|
|
30
30
|
|
|
31
31
|
const markdownStore = useMarkdownStore()
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<script setup lang="ts">
|
|
30
30
|
import { mdiClose } from '@quasar/extras/mdi-v7'
|
|
31
31
|
|
|
32
|
-
import { useMarkdownStore } from '
|
|
32
|
+
import { useMarkdownStore } from '@/.q-press/stores/markdown'
|
|
33
33
|
|
|
34
34
|
import MarkdownPageToc from './MarkdownPageToc.vue'
|
|
35
35
|
|
|
@@ -38,7 +38,7 @@ import { computed } from 'vue'
|
|
|
38
38
|
import { useRoute } from 'vue-router'
|
|
39
39
|
import { mdiArrowUp } from '@quasar/extras/mdi-v7'
|
|
40
40
|
|
|
41
|
-
// import { useMarkdownStore } from '
|
|
41
|
+
// import { useMarkdownStore } from '@/.q-press/stores/doc'
|
|
42
42
|
import { useScroll } from '../composables/scroll'
|
|
43
43
|
|
|
44
44
|
import MarkdownHeader from './MarkdownHeader.vue'
|
|
@@ -101,7 +101,7 @@ const pageContentClass = computed(
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@media (max-width: 1845px) {
|
|
104
|
-
justify-content: start;
|
|
104
|
+
justify-content: flex-start;
|
|
105
105
|
|
|
106
106
|
.markdown-page__toc-container--flowing {
|
|
107
107
|
display: none;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
<slot />
|
|
51
51
|
|
|
52
|
-
<div v-if="
|
|
52
|
+
<div v-if="showFooterNav" class="markdown-page__nav markdown-page__nav--footer">
|
|
53
53
|
<div class="text-h6 q-pb-md markdown-heading">Ready for more?</div>
|
|
54
54
|
<div class="q-gutter-sm flex">
|
|
55
55
|
<router-link
|
|
@@ -94,7 +94,6 @@ import { useRoute } from 'vue-router'
|
|
|
94
94
|
import { mdiPencil, mdiFlash, mdiLaunch } from '@quasar/extras/mdi-v7'
|
|
95
95
|
|
|
96
96
|
import type { NavItem, RelatedItem } from '@md-plugins/vite-md-plugin'
|
|
97
|
-
import type { TocItem } from '@md-plugins/md-plugin-headers'
|
|
98
97
|
import MarkdownLink from '../components/MarkdownLink.vue'
|
|
99
98
|
import MarkdownPageToc from './MarkdownPageToc.vue'
|
|
100
99
|
|
|
@@ -129,7 +128,7 @@ const props = defineProps({
|
|
|
129
128
|
},
|
|
130
129
|
|
|
131
130
|
toc: {
|
|
132
|
-
type: Array<
|
|
131
|
+
type: Array<TocMenuItem>,
|
|
133
132
|
default: () => [],
|
|
134
133
|
},
|
|
135
134
|
related: {
|
|
@@ -164,6 +163,8 @@ const editHref = computed(() => `${siteConfig.githubEditRootSrc}/markdown/${prop
|
|
|
164
163
|
|
|
165
164
|
const isFullscreen = computed(() => route.meta.fullscreen === true || props.fullscreen)
|
|
166
165
|
|
|
166
|
+
const showFooterNav = computed(() => isFullscreen.value !== true && props.nav.length > 0)
|
|
167
|
+
|
|
167
168
|
const hasToc = computed(
|
|
168
169
|
() =>
|
|
169
170
|
route.meta.fullwidth !== true &&
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineStore, acceptHMRUpdate } from 'pinia'
|
|
2
2
|
import { useRoute } from 'vue-router'
|
|
3
3
|
import { useScroll } from '../composables/scroll'
|
|
4
|
-
import type { TocItem } from '@md-plugins/md-plugin-headers'
|
|
5
4
|
|
|
6
5
|
export const useMarkdownStore = defineStore('markdown-store', {
|
|
7
6
|
state: () => ({
|
|
@@ -60,7 +59,7 @@ export const useMarkdownStore = defineStore('markdown-store', {
|
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
|
|
63
|
-
setToc(toc:
|
|
62
|
+
setToc(toc: TocMenuItem[]) {
|
|
64
63
|
const { scrollTo } = useScroll()
|
|
65
64
|
this.toc =
|
|
66
65
|
toc !== void 0
|
package/tsconfig.json
CHANGED
|
@@ -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,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Contributing Guide
|
|
3
|
-
desc: Guidelines for contributing to the Markdown Plugins project.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Thank you for your interest in contributing to the Markdown Plugins project! We welcome contributions from the community and appreciate your efforts to improve the project. This guide will help you get started with contributing.
|
|
7
|
-
|
|
8
|
-
## How to Contribute
|
|
9
|
-
|
|
10
|
-
### Reporting Issues
|
|
11
|
-
|
|
12
|
-
If you encounter any bugs or have suggestions for improvements, please report them by opening an issue on the GitHub repository. When reporting an issue, please include:
|
|
13
|
-
|
|
14
|
-
- A clear and descriptive title.
|
|
15
|
-
- A detailed description of the issue or suggestion.
|
|
16
|
-
- Steps to reproduce the issue (if applicable).
|
|
17
|
-
- Any relevant code snippets or screenshots.
|
|
18
|
-
|
|
19
|
-
### Submitting Pull Requests
|
|
20
|
-
|
|
21
|
-
We welcome pull requests for bug fixes, new features, and improvements. To submit a pull request:
|
|
22
|
-
|
|
23
|
-
1. **Fork the Repository**: Click the "Fork" button on the repository's GitHub page to create a copy of the repository in your GitHub account.
|
|
24
|
-
|
|
25
|
-
2. **Clone the Repository**: Clone the forked repository to your local machine.
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
git clone https://github.com/your-username/md-plugins.git
|
|
29
|
-
cd md-plugins
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
3. **Create a Branch**: Create a new branch for your changes.
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
git checkout -b my-feature-branch
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
4. **Make Changes**: Make your changes to the codebase. Ensure that your changes follow the project's coding standards and guidelines.
|
|
39
|
-
|
|
40
|
-
5. **Commit Changes**: Commit your changes with a clear and descriptive commit message.
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
git add .
|
|
44
|
-
git commit -m "Add new feature or fix bug"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
6. **Push Changes**: Push your changes to your forked repository.
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
git push origin my-feature-branch
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
7. **Open a Pull Request**: Go to the original repository on GitHub and open a pull request. Provide a clear and descriptive title and description for your pull request.
|
|
54
|
-
|
|
55
|
-
### Code Style and Guidelines
|
|
56
|
-
|
|
57
|
-
Please ensure that your code follows the project's coding standards and guidelines. This includes:
|
|
58
|
-
|
|
59
|
-
- Writing clear and concise code.
|
|
60
|
-
- Adding comments and documentation where necessary.
|
|
61
|
-
- Following the project's naming conventions and file organization.
|
|
62
|
-
- Writing tests for new features and bug fixes.
|
|
63
|
-
|
|
64
|
-
### Running Tests
|
|
65
|
-
|
|
66
|
-
Before submitting your pull request, ensure that all tests pass. You can run the tests using the following command:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
pnpm test
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
If you add new features or fix bugs, please add corresponding tests to ensure the changes are properly tested.
|
|
73
|
-
|
|
74
|
-
### Documentation
|
|
75
|
-
|
|
76
|
-
If your changes affect the project's documentation, please update the relevant documentation files. This includes:
|
|
77
|
-
|
|
78
|
-
- Updating the `README.md` file.
|
|
79
|
-
- Updating the documentation in the `docs` directory.
|
|
80
|
-
- Adding examples or usage instructions if applicable.
|
|
81
|
-
|
|
82
|
-
## Community Guidelines
|
|
83
|
-
|
|
84
|
-
We strive to create a welcoming and inclusive community. Please adhere to the following guidelines:
|
|
85
|
-
|
|
86
|
-
- Be respectful and considerate of others.
|
|
87
|
-
- Provide constructive feedback and be open to feedback from others.
|
|
88
|
-
- Avoid using offensive or inappropriate language.
|
|
89
|
-
- Follow the project's code of conduct.
|
|
90
|
-
|
|
91
|
-
## Getting Help
|
|
92
|
-
|
|
93
|
-
If you need help or have any questions, feel free to reach out to the community or the project maintainers. You can:
|
|
94
|
-
|
|
95
|
-
- Open an issue on the GitHub repository.
|
|
96
|
-
- Join the project's discussion forum or chat (if available).
|
|
97
|
-
- Contact the project maintainers directly.
|
|
98
|
-
|
|
99
|
-
Thank you for contributing to the Markdown Plugins project! Your contributions help make the project better for everyone.
|
|
100
|
-
|
|
101
|
-
Happy coding!
|