@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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Documentation
|
|
3
|
+
desc: Contribute to the documentation
|
|
4
|
+
keys: Contributing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Documentation improvements are welcome. MD-Plugins includes docs for individual Markdown plugins, Vite plugins, and Q-Press.
|
|
8
|
+
|
|
9
|
+
## Editing Pages
|
|
10
|
+
|
|
11
|
+
The easiest way to edit a page is with the **Edit this page on GitHub** link that appears near the bottom of most pages. That opens the exact source file on GitHub so you can propose the change with a pull request.
|
|
12
|
+
|
|
13
|
+
You can also fork the repository, edit the markdown files locally, and open a pull request.
|
|
14
|
+
|
|
15
|
+
## Writing Guidelines
|
|
16
|
+
|
|
17
|
+
Please keep this in mind when writing MD-Plugins docs:
|
|
18
|
+
|
|
19
|
+
- Speak directly to the user.
|
|
20
|
+
- Keep sentences and paragraphs focused.
|
|
21
|
+
- Prefer examples that can be copied into real projects.
|
|
22
|
+
- Mention package names and commands explicitly.
|
|
23
|
+
- Update related pages when a change affects more than one package.
|
|
24
|
+
|
|
25
|
+
## Local Verification
|
|
26
|
+
|
|
27
|
+
When changing docs, run:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm --filter mdplugins_docs build
|
|
31
|
+
```
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Overview
|
|
3
|
+
desc: Innovation through collaboration
|
|
4
|
+
keys: Contributing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Interested in contributing to MD-Plugins? Here's how you can contribute.
|
|
8
|
+
|
|
9
|
+
## Working Together
|
|
10
|
+
|
|
11
|
+
MD-Plugins is free to use under the MIT License. The project grows through feedback, documentation, tests, examples, bug reports, and pull requests from people using it in real projects.
|
|
12
|
+
|
|
13
|
+
Contributions are not limited to code. We welcome:
|
|
14
|
+
|
|
15
|
+
- Bug reports and reproductions.
|
|
16
|
+
- Documentation fixes.
|
|
17
|
+
- Examples that show practical usage.
|
|
18
|
+
- Tests for Markdown plugins and Q-Press behavior.
|
|
19
|
+
- Pull requests that improve the developer experience.
|
|
20
|
+
|
|
21
|
+
## Working In The Open
|
|
22
|
+
|
|
23
|
+
MD-Plugins lives on [GitHub](https://github.com/md-plugins/md-plugins). Work, discussion, issues, bugs, features, improvements, and comments happen in public so everyone can follow along.
|
|
24
|
+
|
|
25
|
+
If you notice something that could be improved, you have two good options:
|
|
26
|
+
|
|
27
|
+
1. Open an issue for the request. We'll review it and help decide the next step.
|
|
28
|
+
|
|
29
|
+
2. Begin the work yourself and contribute it back with a pull request. Works-in-progress are welcome, especially when the direction would benefit from early feedback.
|
|
30
|
+
|
|
31
|
+
If working with GitHub sounds like a lot, check out this [free video series](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github).
|
|
32
|
+
|
|
33
|
+
## Before You Start
|
|
34
|
+
|
|
35
|
+
Before submitting a pull request, run the checks that match your change:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pnpm check:all
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Thanks for helping make MD-Plugins better for everyone.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Packages
|
|
3
|
+
desc: How to contribute to MD-Plugins packages
|
|
4
|
+
keys: Contributing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
MD-Plugins is a package collection. Contributions can target Markdown-it plugins, Vite plugins, the Q-Press app extension, shared utilities, docs templates, examples, tests, or release tooling.
|
|
8
|
+
|
|
9
|
+
## What To Include
|
|
10
|
+
|
|
11
|
+
Package contributions are strongest when they include:
|
|
12
|
+
|
|
13
|
+
- A short rationale that explains the user problem.
|
|
14
|
+
- Tests for behavior changes.
|
|
15
|
+
- Documentation updates when public behavior changes.
|
|
16
|
+
- Examples when the feature is easier to understand visually.
|
|
17
|
+
- Migration notes when existing users need to change code.
|
|
18
|
+
|
|
19
|
+
## First Steps
|
|
20
|
+
|
|
21
|
+
Open an issue or discussion before larger work. Include a detailed description that explains:
|
|
22
|
+
|
|
23
|
+
- Which package is affected.
|
|
24
|
+
- Whether the change is a fix, feature, refactor, or documentation update.
|
|
25
|
+
- How the change should behave.
|
|
26
|
+
- Any compatibility or release concerns.
|
|
27
|
+
|
|
28
|
+
This gives maintainers and users a place to weigh in before the pull request lands.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Sponsor
|
|
3
|
+
desc: About sponsoring MD-Plugins
|
|
4
|
+
keys: Contributing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Sponsorship
|
|
8
|
+
|
|
9
|
+
MD-Plugins is free and open-source software. If it saves you time or helps your team ship documentation, consider supporting ongoing maintenance.
|
|
10
|
+
|
|
11
|
+
Financial support helps make room for:
|
|
12
|
+
|
|
13
|
+
- Package maintenance.
|
|
14
|
+
- Compatibility updates for Quasar, Vite, Vue, and Markdown-it.
|
|
15
|
+
- Documentation improvements.
|
|
16
|
+
- Examples and playground support.
|
|
17
|
+
- Bug fixes and release work.
|
|
18
|
+
|
|
19
|
+
## Support Options
|
|
20
|
+
|
|
21
|
+
GitHub Sponsors: [https://github.com/sponsors/hawkeye64](https://github.com/sponsors/hawkeye64)
|
|
22
|
+
|
|
23
|
+
PayPal: [https://paypal.me/hawkeye64](https://paypal.me/hawkeye64)
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Frequently Asked Questions
|
|
3
|
+
desc: Common questions and answers about MD-Plugins.
|
|
4
|
+
keys: Other
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Use this page to quickly scan the questions people tend to ask while setting up MD-Plugins, Q-Press, and the direct Vite plugins.
|
|
8
|
+
|
|
9
|
+
## General
|
|
10
|
+
|
|
11
|
+
:::details Q. What are MD-Plugins?
|
|
12
|
+
|
|
13
|
+
**A.** MD-Plugins are Markdown-it and Vite plugins that help turn Markdown into application-ready content. They cover things like headings, links, frontmatter, images, code blocks, examples, and Q-Press documentation sites.
|
|
14
|
+
:::
|
|
15
|
+
|
|
16
|
+
:::details Q. Can I use MD-Plugins without Quasar?
|
|
17
|
+
|
|
18
|
+
**A.** Yes. The individual Markdown-it plugins and direct Vite plugins can be used in non-Quasar projects. For example, `@md-plugins/vite-md-plugin` and `@md-plugins/vite-examples-plugin` can be used in Vue/Vite projects, and the `@md-plugins/md-plugin-*` packages can be used anywhere you configure MarkdownIt.
|
|
19
|
+
|
|
20
|
+
The Quasar-specific limitation only applies to app extensions, such as Q-Press. Those app extensions target Quasar CLI Vite projects and are not intended for Webpack or JavaScript-only Quasar projects.
|
|
21
|
+
:::
|
|
22
|
+
|
|
23
|
+
:::details Q. Which package should I start with?
|
|
24
|
+
|
|
25
|
+
**A.** Use `@md-plugins/quasar-app-extension-q-press` if you want the full Q-Press documentation site experience inside a Quasar CLI Vite project.
|
|
26
|
+
|
|
27
|
+
Use `@md-plugins/vite-md-plugin` if you want Markdown pages or content in a Vue/Vite app without installing the Q-Press app extension.
|
|
28
|
+
|
|
29
|
+
Use the individual `@md-plugins/md-plugin-*` packages when you already own the MarkdownIt setup and only need specific behavior.
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
## Installation And Updates
|
|
33
|
+
|
|
34
|
+
:::details Q. How do I install MD-Plugins?
|
|
35
|
+
|
|
36
|
+
**A.** Install the package that matches your integration path. For direct Vite plugin usage:
|
|
37
|
+
|
|
38
|
+
```tabs
|
|
39
|
+
<<| bash pnpm |>>
|
|
40
|
+
pnpm add @md-plugins/vite-md-plugin@beta
|
|
41
|
+
<<| bash Bun |>>
|
|
42
|
+
bun add @md-plugins/vite-md-plugin@beta
|
|
43
|
+
<<| bash Yarn |>>
|
|
44
|
+
yarn add @md-plugins/vite-md-plugin@beta
|
|
45
|
+
<<| bash npm |>>
|
|
46
|
+
npm install @md-plugins/vite-md-plugin@beta
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
For Q-Press in a Quasar CLI Vite project:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
quasar ext add @md-plugins/q-press@beta
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Refer to the installation section for each package when you need package-specific options.
|
|
56
|
+
:::
|
|
57
|
+
|
|
58
|
+
:::details Q. How do I update an existing Q-Press project?
|
|
59
|
+
|
|
60
|
+
**A.** Update the app extension package, then invoke it so the generated files can be refreshed:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pnpm up @md-plugins/quasar-app-extension-q-press@beta
|
|
64
|
+
quasar ext invoke @md-plugins/q-press
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Choose `Overwrite All` if you want the generated `src/.q-press` files to match the current beta templates.
|
|
68
|
+
:::
|
|
69
|
+
|
|
70
|
+
:::details Q. Does Q-Press support Webpack projects?
|
|
71
|
+
|
|
72
|
+
**A.** No. Q-Press targets Quasar CLI Vite projects. The direct Markdown-it and Vite plugin packages are the right path for non-Quasar Vite projects.
|
|
73
|
+
:::
|
|
74
|
+
|
|
75
|
+
## Plugin Usage
|
|
76
|
+
|
|
77
|
+
:::details Q. How do I add custom classes to images?
|
|
78
|
+
|
|
79
|
+
**A.** Use the image plugin and pass the class through its options:
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
import MarkdownIt from 'markdown-it'
|
|
83
|
+
import { imagePlugin } from '@md-plugins/md-plugin-image'
|
|
84
|
+
|
|
85
|
+
const md = new MarkdownIt()
|
|
86
|
+
|
|
87
|
+
md.use(imagePlugin, {
|
|
88
|
+
imageClass: 'custom-image-class',
|
|
89
|
+
})
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
:::
|
|
93
|
+
|
|
94
|
+
:::details Q. How do I extract and process frontmatter content?
|
|
95
|
+
|
|
96
|
+
**A.** Use the frontmatter plugin and read the generated frontmatter from the MarkdownIt environment:
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import MarkdownIt from 'markdown-it'
|
|
100
|
+
import { frontmatterPlugin } from '@md-plugins/md-plugin-frontmatter'
|
|
101
|
+
|
|
102
|
+
const md = new MarkdownIt()
|
|
103
|
+
|
|
104
|
+
md.use(frontmatterPlugin, {
|
|
105
|
+
grayMatterOptions: {
|
|
106
|
+
excerpt: true,
|
|
107
|
+
excerpt_separator: '<!-- more -->',
|
|
108
|
+
},
|
|
109
|
+
renderExcerpt: true,
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
const env = {}
|
|
113
|
+
const html = md.render(code, env)
|
|
114
|
+
|
|
115
|
+
console.log(env.frontmatter)
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
:::
|
|
119
|
+
|
|
120
|
+
:::details Q. How do I enhance code block rendering?
|
|
121
|
+
|
|
122
|
+
**A.** Use the codeblocks plugin. It can render syntax-highlighted code blocks, copy buttons, tabbed code blocks, line highlighting, and code-group metadata:
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
import MarkdownIt from 'markdown-it'
|
|
126
|
+
import { codeblocksPlugin } from '@md-plugins/md-plugin-codeblocks'
|
|
127
|
+
|
|
128
|
+
const md = new MarkdownIt()
|
|
129
|
+
|
|
130
|
+
md.use(codeblocksPlugin, {
|
|
131
|
+
defaultLang: 'javascript',
|
|
132
|
+
containerComponent: 'MarkdownPrerender',
|
|
133
|
+
copyButtonComponent: 'MarkdownCopyButton',
|
|
134
|
+
})
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
:::
|
|
138
|
+
|
|
139
|
+
:::details Q. How do I convert Markdown links into Vue components?
|
|
140
|
+
|
|
141
|
+
**A.** Use the link plugin to render Markdown links as Vue routing components:
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
import MarkdownIt from 'markdown-it'
|
|
145
|
+
import { linkPlugin } from '@md-plugins/md-plugin-link'
|
|
146
|
+
|
|
147
|
+
const md = new MarkdownIt()
|
|
148
|
+
|
|
149
|
+
md.use(linkPlugin, {
|
|
150
|
+
linkTag: 'RouterLink',
|
|
151
|
+
linkToKeyword: 'to',
|
|
152
|
+
pageScript: 'import { RouterLink } from "vue-router"',
|
|
153
|
+
})
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
:::
|
|
157
|
+
|
|
158
|
+
## Troubleshooting
|
|
159
|
+
|
|
160
|
+
:::details Q. My Markdown content is not rendering correctly. What should I check first?
|
|
161
|
+
|
|
162
|
+
**A.** Confirm that the package is installed, the plugin is registered with MarkdownIt or Vite, and your generated Q-Press files are current. If you recently upgraded Q-Press, run:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
quasar ext invoke @md-plugins/q-press
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Choose `Overwrite All` when you want the generated files to match the latest templates.
|
|
169
|
+
:::
|
|
170
|
+
|
|
171
|
+
:::details Q. How do I report a bug or request a feature?
|
|
172
|
+
|
|
173
|
+
**A.** Open an issue in the MD-Plugins repository and include the package name, version, reproduction steps, expected result, and actual result.
|
|
174
|
+
:::
|
|
175
|
+
|
|
176
|
+
:::details Q. Where can I get support?
|
|
177
|
+
|
|
178
|
+
**A.** Start with the package documentation and FAQ. If you are blocked or found a bug, open a GitHub issue with enough detail for someone else to reproduce the problem.
|
|
179
|
+
:::
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Upgrade Guide
|
|
3
|
+
desc: Upgrade MD-Plugins and Q-Press to the 0.1.0 beta.
|
|
4
|
+
keys: Other
|
|
5
|
+
related:
|
|
6
|
+
- quasar-app-extensions/qpress/overview
|
|
7
|
+
- quasar-app-extensions/vite-md-plugin-app-ext/overview
|
|
8
|
+
- vite-plugins/vite-md-plugin/overview
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
The `0.1.0` beta line moves the Quasar app extensions, including Q-Press, to the Quasar CLI Vite 3 beta toolchain. It is the right version to use when your Quasar application is being upgraded to `@quasar/app-vite` `>=3.0.0-beta.33`.
|
|
12
|
+
|
|
13
|
+
::: warning
|
|
14
|
+
Q-Press and the Quasar app extension packages now target Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.33`. They are not intended for Webpack projects or JavaScript-only Quasar projects.
|
|
15
|
+
:::
|
|
16
|
+
|
|
17
|
+
::: tip
|
|
18
|
+
The core Markdown-it plugins and direct Vite plugins are not Quasar-only. You can use packages such as `@md-plugins/vite-md-plugin`, `@md-plugins/vite-examples-plugin`, and the individual `@md-plugins/md-plugin-*` packages in Vue/Vite projects without installing a Quasar app extension.
|
|
19
|
+
:::
|
|
20
|
+
|
|
21
|
+
## Before You Upgrade
|
|
22
|
+
|
|
23
|
+
- For Q-Press or the Quasar app extensions, make sure your app is already on a Quasar Vite setup.
|
|
24
|
+
- For Q-Press or the Quasar app extensions, upgrade the app to `@quasar/app-vite` `>=3.0.0-beta.33`.
|
|
25
|
+
- Use TypeScript in the consuming Quasar project when using the Quasar app extensions.
|
|
26
|
+
- Import `defineConfig` in `quasar.config.ts` directly from `@quasar/app-vite`.
|
|
27
|
+
- Use `/// <reference types="@quasar/app-vite/client" />` in `src/env.d.ts`.
|
|
28
|
+
- Commit or stash local changes before invoking Q-Press, because the update flow can overwrite files in `src/.q-press`.
|
|
29
|
+
|
|
30
|
+
## Update Packages
|
|
31
|
+
|
|
32
|
+
For Q-Press projects, update the app extension package and then invoke it:
|
|
33
|
+
|
|
34
|
+
```tabs
|
|
35
|
+
<<| bash pnpm |>>
|
|
36
|
+
pnpm up @md-plugins/quasar-app-extension-q-press@beta
|
|
37
|
+
<<| bash npm |>>
|
|
38
|
+
npm install @md-plugins/quasar-app-extension-q-press@beta
|
|
39
|
+
<<| bash yarn |>>
|
|
40
|
+
yarn add @md-plugins/quasar-app-extension-q-press@beta
|
|
41
|
+
<<| bash bun |>>
|
|
42
|
+
bun add @md-plugins/quasar-app-extension-q-press@beta
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Then invoke the app extension:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
quasar ext invoke @md-plugins/q-press
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
When prompted, choose `Overwrite All` if you want the generated Q-Press files to match the beta templates.
|
|
52
|
+
|
|
53
|
+
For direct Vite plugin usage, update the packages you consume:
|
|
54
|
+
|
|
55
|
+
```tabs
|
|
56
|
+
<<| bash pnpm |>>
|
|
57
|
+
pnpm up @md-plugins/vite-md-plugin@beta @md-plugins/vite-examples-plugin@beta
|
|
58
|
+
<<| bash npm |>>
|
|
59
|
+
npm install @md-plugins/vite-md-plugin@beta @md-plugins/vite-examples-plugin@beta
|
|
60
|
+
<<| bash yarn |>>
|
|
61
|
+
yarn add @md-plugins/vite-md-plugin@beta @md-plugins/vite-examples-plugin@beta
|
|
62
|
+
<<| bash bun |>>
|
|
63
|
+
bun add @md-plugins/vite-md-plugin@beta @md-plugins/vite-examples-plugin@beta
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Remove App-Level Shared Imports
|
|
67
|
+
|
|
68
|
+
Q-Press applications should not install or import `@md-plugins/shared` directly. The shared package remains part of the MD-Plugins internals, but app-level Q-Press files should use the helpers generated into the app.
|
|
69
|
+
|
|
70
|
+
If your project has this dependency, remove it from the consuming app:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pnpm remove @md-plugins/shared
|
|
74
|
+
# or
|
|
75
|
+
npm uninstall @md-plugins/shared
|
|
76
|
+
# or
|
|
77
|
+
yarn remove @md-plugins/shared
|
|
78
|
+
# or
|
|
79
|
+
bun remove @md-plugins/shared
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
If you have customized generated files and cannot choose `Overwrite All`, update copied Q-Press files that import `slugify` from `@md-plugins/shared`.
|
|
83
|
+
|
|
84
|
+
Use the local helper from `src/.q-press/components/markdown-utils.ts` instead:
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import { slugify } from './markdown-utils'
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
For files outside `src/.q-press/components`, import from the generated helper path used by that file. For example:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
import { slugify } from '@/.q-press/components/markdown-utils'
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
or:
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import { slugify } from '../.q-press/components/markdown-utils'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Q-Press Type Globals
|
|
103
|
+
|
|
104
|
+
Q-Press now provides its shared Markdown, menu and `ImportMeta` globals directly from the app extension package. After upgrading to this release line and running `quasar prepare`, projects no longer need to keep a local `src/q-press.globals.d.ts` file.
|
|
105
|
+
|
|
106
|
+
If you still see type errors for `TocMenuItem`, `MenuItem`, `MarkdownModule`, `import.meta.glob` or Quasar `import.meta.env` values, run:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
quasar prepare
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Then make sure the app is using the updated `@md-plugins/quasar-app-extension-q-press` package.
|
|
113
|
+
|
|
114
|
+
## Environment Variable Changes
|
|
115
|
+
|
|
116
|
+
Quasar CLI Vite 3 exposes runtime flags through `import.meta.env`. If you copied older Q-Press internals into your own code, update them:
|
|
117
|
+
|
|
118
|
+
| Old pattern | New pattern |
|
|
119
|
+
| ----------------------------- | ---------------------------------------- |
|
|
120
|
+
| `process.env.CLIENT` | `import.meta.env.QUASAR_CLIENT` |
|
|
121
|
+
| `process.env.SERVER` | `import.meta.env.QUASAR_SERVER` |
|
|
122
|
+
| `process.env.DEV` | `import.meta.env.QUASAR_DEV` |
|
|
123
|
+
| `process.env.PROD` | `import.meta.env.QUASAR_PROD` |
|
|
124
|
+
| `process.env.VUE_ROUTER_MODE` | `import.meta.env.QUASAR_VUE_ROUTER_MODE` |
|
|
125
|
+
| `process.env.VUE_ROUTER_BASE` | `import.meta.env.QUASAR_VUE_ROUTER_BASE` |
|
|
126
|
+
|
|
127
|
+
Q-Press also uses `QCLI_*` values for Quasar CLI provided build-time values, such as search index and filesystem paths.
|
|
128
|
+
|
|
129
|
+
## Example Action Updates
|
|
130
|
+
|
|
131
|
+
The beta templates include updated example actions for GitHub source links and CodePen playgrounds. If your project keeps customized Q-Press files, compare your copies of these files with the current template:
|
|
132
|
+
|
|
133
|
+
- `src/.q-press/components/MarkdownExample.vue`
|
|
134
|
+
- `src/.q-press/components/MarkdownCodepen.vue`
|
|
135
|
+
- `src/.q-press/components/markdown-utils.ts`
|
|
136
|
+
- `src/siteConfig/index.ts`
|
|
137
|
+
|
|
138
|
+
Set `siteConfig.githubSourceRootSrc` when the source-view link should point at generated example files instead of edit links. Configure `siteConfig.codepen` when examples need external CSS, JavaScript, setup code, package globals or a project-specific `titleSuffix`.
|
|
139
|
+
|
|
140
|
+
## Vite Plugin Configuration
|
|
141
|
+
|
|
142
|
+
`viteMdPlugin` should be configured with an options object:
|
|
143
|
+
|
|
144
|
+
```ts
|
|
145
|
+
import { viteMdPlugin, type MenuItem } from '@md-plugins/vite-md-plugin'
|
|
146
|
+
|
|
147
|
+
vitePlugins: [
|
|
148
|
+
viteMdPlugin({
|
|
149
|
+
path: ctx.appPaths.srcDir + '/markdown',
|
|
150
|
+
menu: sidebar as MenuItem[],
|
|
151
|
+
}),
|
|
152
|
+
]
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Verify The Upgrade
|
|
156
|
+
|
|
157
|
+
Run these checks in the consuming app:
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
pnpm install
|
|
161
|
+
quasar prepare
|
|
162
|
+
quasar build
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
If you use linting or formatting, run those checks after invoking Q-Press so any regenerated files are included.
|
|
@@ -57,11 +57,13 @@ import AvatarApi from 'quasar/dist/api/QAvatar.json'
|
|
|
57
57
|
|
|
58
58
|
### Installation
|
|
59
59
|
|
|
60
|
-
You can install the Vite Examples plugin using npm, yarn, or
|
|
60
|
+
You can install the Vite Examples plugin using npm, yarn, pnpm, or bun. Choose your preferred method below:
|
|
61
61
|
|
|
62
62
|
```tabs
|
|
63
63
|
<<| bash pnpm |>>
|
|
64
64
|
pnpm add @md-plugins/vite-examples-plugin
|
|
65
|
+
<<| bash bun |>>
|
|
66
|
+
bun add @md-plugins/vite-examples-plugin
|
|
65
67
|
<<| bash yarn |>>
|
|
66
68
|
yarn add @md-plugins/vite-examples-plugin
|
|
67
69
|
<<| bash npm |>>
|
|
@@ -79,8 +81,14 @@ extendViteConf(viteConf, { isClient }) {
|
|
|
79
81
|
if (ctx.prod && isClient) {
|
|
80
82
|
viteConf.build = viteConf.build || {}
|
|
81
83
|
viteConf.build.chunkSizeWarningLimit = 650
|
|
82
|
-
viteConf.build.
|
|
83
|
-
|
|
84
|
+
viteConf.build.rolldownOptions = viteConf.build.rolldownOptions || {}
|
|
85
|
+
viteConf.build.rolldownOptions.output = viteConf.build.rolldownOptions.output || {}
|
|
86
|
+
viteConf.build.rolldownOptions.output.codeSplitting = {
|
|
87
|
+
groups: [
|
|
88
|
+
{
|
|
89
|
+
name: (moduleId) => viteManualChunks(moduleId) ?? null,
|
|
90
|
+
},
|
|
91
|
+
],
|
|
84
92
|
}
|
|
85
93
|
}
|
|
86
94
|
}
|
|
@@ -8,33 +8,31 @@ Q-Press has a lot of components that can be used in your app. Under the hood, th
|
|
|
8
8
|
## Components
|
|
9
9
|
|
|
10
10
|
<script import>
|
|
11
|
-
import DarkModeToggleApi from '
|
|
12
|
-
import MarkdownApiApi from '
|
|
13
|
-
import MarkdownCardLinkApi from '
|
|
14
|
-
import MarkdownCardTitleApi from '
|
|
15
|
-
import MarkdownCodeApi from '
|
|
16
|
-
import MarkdownCodepenApi from '
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
import MarkdownTreeApi from 'src/.q-press/api/components/MarkdownTree.json'
|
|
37
|
-
import MarkdownPrerenderApi from 'src/.q-press/api/components/MarkdownPrerender.json'
|
|
11
|
+
import DarkModeToggleApi from '@/.q-press/api/components/DarkModeToggle.json'
|
|
12
|
+
import MarkdownApiApi from '@/.q-press/api/components/MarkdownApi.json'
|
|
13
|
+
import MarkdownCardLinkApi from '@/.q-press/api/components/MarkdownCardLink.json'
|
|
14
|
+
import MarkdownCardTitleApi from '@/.q-press/api/components/MarkdownCardTitle.json'
|
|
15
|
+
import MarkdownCodeApi from '@/.q-press/api/components/MarkdownCode.json'
|
|
16
|
+
import MarkdownCodepenApi from '@/.q-press/api/components/MarkdownCodepen.json'
|
|
17
|
+
import MarkdownCopyButtonApi from '@/.q-press/api/components/MarkdownCopyButton.json'
|
|
18
|
+
import MarkdownDrawerSidebarApi from '@/.q-press/api/components/MarkdownDrawerSidebar.json'
|
|
19
|
+
import MarkdownDrawerTocApi from '@/.q-press/api/components/MarkdownDrawerToc.json'
|
|
20
|
+
|
|
21
|
+
import MarkdownExampleApi from '@/.q-press/api/components/MarkdownExample.json'
|
|
22
|
+
import MarkdownHeaderApi from '@/.q-press/api/components/MarkdownHeader.json'
|
|
23
|
+
import MarkdownHeaderIconLinksApi from '@/.q-press/api/components/MarkdownHeaderIconLinks.json'
|
|
24
|
+
import MarkdownHeaderMenuApi from '@/.q-press/api/components/MarkdownHeaderMenu.json'
|
|
25
|
+
import MarkdownHeaderTextLinksApi from '@/.q-press/api/components/MarkdownHeaderTextLinks.json'
|
|
26
|
+
|
|
27
|
+
import MarkdownLayoutApi from '@/.q-press/api/components/MarkdownLayout.json'
|
|
28
|
+
import MarkdownLinkApi from '@/.q-press/api/components/MarkdownLink.json'
|
|
29
|
+
import MarkdownPageApi from '@/.q-press/api/components/MarkdownPage.json'
|
|
30
|
+
import MarkdownPageFooterApi from '@/.q-press/api/components/MarkdownPageFooter.json'
|
|
31
|
+
import MarkdownPageSidebarApi from '@/.q-press/api/components/MarkdownPageSidebar.json'
|
|
32
|
+
import MarkdownPageTocApi from '@/.q-press/api/components/MarkdownPageToc.json'
|
|
33
|
+
|
|
34
|
+
import MarkdownTreeApi from '@/.q-press/api/components/MarkdownTree.json'
|
|
35
|
+
import MarkdownPrerenderApi from '@/.q-press/api/components/MarkdownPrerender.json'
|
|
38
36
|
|
|
39
37
|
</script>
|
|
40
38
|
|
|
@@ -44,8 +42,6 @@ import MarkdownPrerenderApi from 'src/.q-press/api/components/MarkdownPrerender.
|
|
|
44
42
|
<MarkdownApi :api="MarkdownCardTitleApi" name="MarkdownCardTitle"/>
|
|
45
43
|
<MarkdownApi :api="MarkdownCodeApi" name="MarkdownCode"/>
|
|
46
44
|
<MarkdownApi :api="MarkdownCodepenApi" name="MarkdownCodepen"/>
|
|
47
|
-
|
|
48
|
-
<MarkdownApi :api="MarkdownCodePrismApi" name="MarkdownCodePrism"/>
|
|
49
45
|
<MarkdownApi :api="MarkdownCopyButtonApi" name="MarkdownCopyButton"/>
|
|
50
46
|
<!-- No <MarkdownApi :api="MarkdownDrawerSidebarApi" name="MarkdownDrawerSidebar"/> -->
|
|
51
47
|
<!-- No <MarkdownApi :api="MarkdownDrawerTocApi" name="MarkdownDrawerToc"/> -->
|