From 1182f3edc0ba27b7a6eb4827158c106918c9f38a Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 2 May 2024 17:53:39 +0800 Subject: [PATCH] perf: supplement content MIT protocol --- docs/notes/theme/guide/markdown/基础.md | 5 +++++ docs/notes/theme/guide/代码演示/replit.md | 4 +++- docs/notes/theme/guide/图表/chart.md | 5 +++++ docs/notes/theme/guide/图表/echarts.md | 5 +++++ docs/notes/theme/guide/图表/flowchart.md | 5 +++++ docs/notes/theme/guide/图表/mermaid.md | 5 +++++ .../plugin-md-power/src/client/composables/pdf.ts | 13 +++++++++++++ .../plugin-md-power/src/client/composables/size.ts | 13 +++++++++++++ 8 files changed, 54 insertions(+), 1 deletion(-) diff --git a/docs/notes/theme/guide/markdown/基础.md b/docs/notes/theme/guide/markdown/基础.md index 9e22b189..21b1a2f3 100644 --- a/docs/notes/theme/guide/markdown/基础.md +++ b/docs/notes/theme/guide/markdown/基础.md @@ -6,6 +6,11 @@ createTime: 2024/03/05 11:10:39 permalink: /guide/markdown/basic/ --- +::: note +此文档 Fork 自 [vuepress-theme-hope](https://theme-hope.vuejs.press/zh/cookbook/markdown/), +遵循 [MIT](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/LICENSE) 许可证。 +::: + Markdown 是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式。 Markdown 的目标是实现「易读易写」。 diff --git a/docs/notes/theme/guide/代码演示/replit.md b/docs/notes/theme/guide/代码演示/replit.md index eee3a3f9..91aa9389 100644 --- a/docs/notes/theme/guide/代码演示/replit.md +++ b/docs/notes/theme/guide/代码演示/replit.md @@ -6,7 +6,9 @@ createTime: 2024/04/04 10:42:05 permalink: /guide/code/replit/ --- -主题支持在 Markdown 文件中嵌入 [Replit](https://replit.com/)。 + + +~~主题支持在 Markdown 文件中嵌入 [Replit](https://replit.com/)。~~ ## 配置 diff --git a/docs/notes/theme/guide/图表/chart.md b/docs/notes/theme/guide/图表/chart.md index b5f3835f..f5440df4 100644 --- a/docs/notes/theme/guide/图表/chart.md +++ b/docs/notes/theme/guide/图表/chart.md @@ -74,6 +74,11 @@ export default defineUserConfig({ ## 示例 +::: note +示例 Fork 自 [vuepress-theme-hope](https://theme-hope.vuejs.press/zh/guide/markdown/chart/chartjs.html#%E6%A1%88%E4%BE%8B), +遵循 [MIT](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/LICENSE) 许可证。 +::: + ### 块状图 **输入:** diff --git a/docs/notes/theme/guide/图表/echarts.md b/docs/notes/theme/guide/图表/echarts.md index 6d8c45a6..e3649071 100644 --- a/docs/notes/theme/guide/图表/echarts.md +++ b/docs/notes/theme/guide/图表/echarts.md @@ -58,6 +58,11 @@ export default defineUserConfig({ ::: +::: note +以下文档 Fork 自 [vuepress-theme-hope](https://theme-hope.vuejs.press/zh/guide/markdown/chart/echarts.html), +遵循 [MIT](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/LICENSE) 许可证。 +::: + ## 语法 ### JSON 配置 diff --git a/docs/notes/theme/guide/图表/flowchart.md b/docs/notes/theme/guide/图表/flowchart.md index 5848fdb4..f68a7ed5 100644 --- a/docs/notes/theme/guide/图表/flowchart.md +++ b/docs/notes/theme/guide/图表/flowchart.md @@ -58,6 +58,11 @@ export default defineUserConfig({ ::: +::: note +以下文档 Fork 自 [vuepress-theme-hope](https://theme-hope.vuejs.press/zh/guide/markdown/chart/flowchart.html), +遵循 [MIT](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/LICENSE) 许可证。 +::: + ## 语法 ````md diff --git a/docs/notes/theme/guide/图表/mermaid.md b/docs/notes/theme/guide/图表/mermaid.md index b0715a1d..13ff9ae2 100644 --- a/docs/notes/theme/guide/图表/mermaid.md +++ b/docs/notes/theme/guide/图表/mermaid.md @@ -58,6 +58,11 @@ export default defineUserConfig({ ::: +::: note +以下文档 Fork 自 [vuepress-theme-hope](https://theme-hope.vuejs.press/zh/guide/markdown/chart/mermaid.html), +遵循 [MIT](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/LICENSE) 许可证。 +::: + ## 语法 ````md diff --git a/plugins/plugin-md-power/src/client/composables/pdf.ts b/plugins/plugin-md-power/src/client/composables/pdf.ts index 761b4c50..2a2287d1 100644 --- a/plugins/plugin-md-power/src/client/composables/pdf.ts +++ b/plugins/plugin-md-power/src/client/composables/pdf.ts @@ -1,3 +1,16 @@ +/** + * Fork for https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/components/src/client/utils/viewPDF.ts + * + * The MIT License (MIT) + * Copyright (C) 2021 - PRESENT by Mr.Hope + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + import { ensureEndingSlash, isLinkHttp } from 'vuepress/shared' import { withBase } from 'vuepress/client' import type { PDFEmbedType, PDFTokenMeta } from '../../shared/pdf.js' diff --git a/plugins/plugin-md-power/src/client/composables/size.ts b/plugins/plugin-md-power/src/client/composables/size.ts index 1cdd1cdd..893985d2 100644 --- a/plugins/plugin-md-power/src/client/composables/size.ts +++ b/plugins/plugin-md-power/src/client/composables/size.ts @@ -1,3 +1,16 @@ +/** + * Fork for https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/components/src/client/composables/useSize.ts + * + * The MIT License (MIT) + * Copyright (C) 2021 - PRESENT by Mr.Hope + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + import type { MaybeRef } from '@vueuse/core' import { useEventListener } from '@vueuse/core' import type { Ref, ShallowRef, ToRefs } from 'vue'