diff --git a/.prettierignore b/.prettierignore index 94c9f11de0..24348256a5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,5 @@ +.vuepress/.cache/ +.vuepress/.temp/ +.vuepress/dist/ + pnpm-lock.yaml -*.html -*.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 3569654a96..d41655fa38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,66 +7,66 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **helper:** improve types of useLocaleConfig ([0fcc7f6](https://github.com/vuepress/ecosystem/commit/0fcc7f6bdb5f1a18899ad6e74849003d5e0e70e3)) -* **plugin-seo:** fix logger name and remove debug logger ([a692d7a](https://github.com/vuepress/ecosystem/commit/a692d7ad813372188d2283e065a41c64114ed3df)) +- **helper:** improve types of useLocaleConfig ([0fcc7f6](https://github.com/vuepress/ecosystem/commit/0fcc7f6bdb5f1a18899ad6e74849003d5e0e70e3)) +- **plugin-seo:** fix logger name and remove debug logger ([a692d7a](https://github.com/vuepress/ecosystem/commit/a692d7ad813372188d2283e065a41c64114ed3df)) ### Features -* **helper:** add data utils ([#43](https://github.com/vuepress/ecosystem/issues/43)) ([ebd6f63](https://github.com/vuepress/ecosystem/commit/ebd6f630652a1d8ee858ff2e9a3f260014d1353e)) -* **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) +- **helper:** add data utils ([#43](https://github.com/vuepress/ecosystem/issues/43)) ([ebd6f63](https://github.com/vuepress/ecosystem/commit/ebd6f630652a1d8ee858ff2e9a3f260014d1353e)) +- **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) # [2.0.0-rc.4](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-01-31) ### Features -* **helper:** add shared export ([da50bcf](https://github.com/vuepress/ecosystem/commit/da50bcf7fe18ff743696092ca5aa78a45d518657)) +- **helper:** add shared export ([da50bcf](https://github.com/vuepress/ecosystem/commit/da50bcf7fe18ff743696092ca5aa78a45d518657)) # [2.0.0-rc.3](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.2...v2.0.0-rc.3) (2024-01-31) ### Bug Fixes -* **create-vuepress:** sync output folder with docs ([#29](https://github.com/vuepress/ecosystem/issues/29)) ([e7887aa](https://github.com/vuepress/ecosystem/commit/e7887aa3e0b8af278844d0d74e4df8d481ee9915)) -* **helper:** add missing export ([049da22](https://github.com/vuepress/ecosystem/commit/049da224a22e0ce0a1927df2f24c3764d97f4f5b)) -* **helper:** add missing exports ([2dc8ea5](https://github.com/vuepress/ecosystem/commit/2dc8ea53493b5e625ed8d8e5fbe701d0a8ccf9d5)) +- **create-vuepress:** sync output folder with docs ([#29](https://github.com/vuepress/ecosystem/issues/29)) ([e7887aa](https://github.com/vuepress/ecosystem/commit/e7887aa3e0b8af278844d0d74e4df8d481ee9915)) +- **helper:** add missing export ([049da22](https://github.com/vuepress/ecosystem/commit/049da224a22e0ce0a1927df2f24c3764d97f4f5b)) +- **helper:** add missing exports ([2dc8ea5](https://github.com/vuepress/ecosystem/commit/2dc8ea53493b5e625ed8d8e5fbe701d0a8ccf9d5)) ### Features -* **helper:** add date helper ([20e5e46](https://github.com/vuepress/ecosystem/commit/20e5e46e4b5f2e321dae7b4943454626cdb1e5dc)) -* **helper:** add getPageText ([#39](https://github.com/vuepress/ecosystem/issues/39)) ([d666d1b](https://github.com/vuepress/ecosystem/commit/d666d1bcc55122e0ebcff386b6190d0c9d7ddb67)) -* **helper:** add helper package ([#33](https://github.com/vuepress/ecosystem/issues/33)) ([fadf122](https://github.com/vuepress/ecosystem/commit/fadf1225c643ab0bf9c4c0f46d0b3b3f1aa15ac6)) -* **helper:** add logger utils ([#35](https://github.com/vuepress/ecosystem/issues/35)) ([a92c710](https://github.com/vuepress/ecosystem/commit/a92c710298a07dbbce5434c18a504cade47effe4)) -* **plugin-feed:** add feed plugin ([#41](https://github.com/vuepress/ecosystem/issues/41)) ([b0b2aa4](https://github.com/vuepress/ecosystem/commit/b0b2aa49b4904fb903ec8b312a2e48f6b9affc17)) -* **plugin-seo:** add seo plugin ([#42](https://github.com/vuepress/ecosystem/issues/42)) ([8a999c5](https://github.com/vuepress/ecosystem/commit/8a999c58c20006b3a36de52a8502d03344af099d)) -* **plugin-sitemap:** add sitemap plugin ([#37](https://github.com/vuepress/ecosystem/issues/37)) ([267f388](https://github.com/vuepress/ecosystem/commit/267f388c6ee4d3d5a44f42ddd16583569cfe97af)) -* **theme-default:** heading-sidebar ([#30](https://github.com/vuepress/ecosystem/issues/30)) ([0ac591d](https://github.com/vuepress/ecosystem/commit/0ac591dfe469e25cf42f1870dd6466d4e5bb3c4c)) -* **theme-default:** image alt option and set aria hidden on title if same as image alt (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([#23](https://github.com/vuepress/ecosystem/issues/23)) ([dc8042e](https://github.com/vuepress/ecosystem/commit/dc8042e40d15b290b8d100b9b39bf3e17a1d8e77)) +- **helper:** add date helper ([20e5e46](https://github.com/vuepress/ecosystem/commit/20e5e46e4b5f2e321dae7b4943454626cdb1e5dc)) +- **helper:** add getPageText ([#39](https://github.com/vuepress/ecosystem/issues/39)) ([d666d1b](https://github.com/vuepress/ecosystem/commit/d666d1bcc55122e0ebcff386b6190d0c9d7ddb67)) +- **helper:** add helper package ([#33](https://github.com/vuepress/ecosystem/issues/33)) ([fadf122](https://github.com/vuepress/ecosystem/commit/fadf1225c643ab0bf9c4c0f46d0b3b3f1aa15ac6)) +- **helper:** add logger utils ([#35](https://github.com/vuepress/ecosystem/issues/35)) ([a92c710](https://github.com/vuepress/ecosystem/commit/a92c710298a07dbbce5434c18a504cade47effe4)) +- **plugin-feed:** add feed plugin ([#41](https://github.com/vuepress/ecosystem/issues/41)) ([b0b2aa4](https://github.com/vuepress/ecosystem/commit/b0b2aa49b4904fb903ec8b312a2e48f6b9affc17)) +- **plugin-seo:** add seo plugin ([#42](https://github.com/vuepress/ecosystem/issues/42)) ([8a999c5](https://github.com/vuepress/ecosystem/commit/8a999c58c20006b3a36de52a8502d03344af099d)) +- **plugin-sitemap:** add sitemap plugin ([#37](https://github.com/vuepress/ecosystem/issues/37)) ([267f388](https://github.com/vuepress/ecosystem/commit/267f388c6ee4d3d5a44f42ddd16583569cfe97af)) +- **theme-default:** heading-sidebar ([#30](https://github.com/vuepress/ecosystem/issues/30)) ([0ac591d](https://github.com/vuepress/ecosystem/commit/0ac591dfe469e25cf42f1870dd6466d4e5bb3c4c)) +- **theme-default:** image alt option and set aria hidden on title if same as image alt (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([#23](https://github.com/vuepress/ecosystem/issues/23)) ([dc8042e](https://github.com/vuepress/ecosystem/commit/dc8042e40d15b290b8d100b9b39bf3e17a1d8e77)) # [2.0.0-rc.2](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2024-01-26) ### Features -* **create-vuepress:** update packages version ([68d5005](https://github.com/vuepress/ecosystem/commit/68d5005b3d5eabc8e9e473bf498038edd3043901)) +- **create-vuepress:** update packages version ([68d5005](https://github.com/vuepress/ecosystem/commit/68d5005b3d5eabc8e9e473bf498038edd3043901)) # 2.0.0-rc.1 (2024-01-26) ### Bug Fixes -* **theme-default:** avoid calling hooks in computed ([6d78f5d](https://github.com/vuepress/ecosystem/commit/6d78f5d0972c023027f44ae891833657f1da0adb)) -* **theme-default:** code group accessibility ([#10](https://github.com/vuepress/ecosystem/issues/10)) ([aae5916](https://github.com/vuepress/ecosystem/commit/aae591671fd18497fb5448b1cfdc9e89040c8a64)) -* **theme-default:** fix navbar brand logo a11y (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([8e6e57e](https://github.com/vuepress/ecosystem/commit/8e6e57ea2de65e30c5b033f1498b6a264f03ab20)) -* **theme-default:** fix new anchor style ([046ea1c](https://github.com/vuepress/ecosystem/commit/046ea1cff8c1f2f40bdded2ff713314d78f59501)) +- **theme-default:** avoid calling hooks in computed ([6d78f5d](https://github.com/vuepress/ecosystem/commit/6d78f5d0972c023027f44ae891833657f1da0adb)) +- **theme-default:** code group accessibility ([#10](https://github.com/vuepress/ecosystem/issues/10)) ([aae5916](https://github.com/vuepress/ecosystem/commit/aae591671fd18497fb5448b1cfdc9e89040c8a64)) +- **theme-default:** fix navbar brand logo a11y (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([8e6e57e](https://github.com/vuepress/ecosystem/commit/8e6e57ea2de65e30c5b033f1498b6a264f03ab20)) +- **theme-default:** fix new anchor style ([046ea1c](https://github.com/vuepress/ecosystem/commit/046ea1cff8c1f2f40bdded2ff713314d78f59501)) ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) -* **create-vuepress:** add create-helper (close [#1](https://github.com/vuepress/ecosystem/issues/1)) ([#15](https://github.com/vuepress/ecosystem/issues/15)) ([531a7e8](https://github.com/vuepress/ecosystem/commit/531a7e8c77b4145cb6da6247b695ef4bc38d4f98)) -* **plugin-shiki:** bump to shikiji v0.10 ([e24c1cb](https://github.com/vuepress/ecosystem/commit/e24c1cb83a392dbb6182003b155cfa5cf417e67a)) -* **plugin-shiki:** migrate to esm-based shikiji (close [#12](https://github.com/vuepress/ecosystem/issues/12)) ([#13](https://github.com/vuepress/ecosystem/issues/13)) ([df11c04](https://github.com/vuepress/ecosystem/commit/df11c046854016e7d9ad043d0fc46b40beb9bddf)) -* **theme-default:** make use of data-title attr for code blocks (close [#18](https://github.com/vuepress/ecosystem/issues/18)) ([fbf5e32](https://github.com/vuepress/ecosystem/commit/fbf5e3248d87819c6e78121c082187b4458a3525)) -* **theme-default:** sync anchor permalink function updates for better a11y ([93e6a04](https://github.com/vuepress/ecosystem/commit/93e6a0489f023578625fc9421d4c67990eba3610)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- **create-vuepress:** add create-helper (close [#1](https://github.com/vuepress/ecosystem/issues/1)) ([#15](https://github.com/vuepress/ecosystem/issues/15)) ([531a7e8](https://github.com/vuepress/ecosystem/commit/531a7e8c77b4145cb6da6247b695ef4bc38d4f98)) +- **plugin-shiki:** bump to shikiji v0.10 ([e24c1cb](https://github.com/vuepress/ecosystem/commit/e24c1cb83a392dbb6182003b155cfa5cf417e67a)) +- **plugin-shiki:** migrate to esm-based shikiji (close [#12](https://github.com/vuepress/ecosystem/issues/12)) ([#13](https://github.com/vuepress/ecosystem/issues/13)) ([df11c04](https://github.com/vuepress/ecosystem/commit/df11c046854016e7d9ad043d0fc46b40beb9bddf)) +- **theme-default:** make use of data-title attr for code blocks (close [#18](https://github.com/vuepress/ecosystem/issues/18)) ([fbf5e32](https://github.com/vuepress/ecosystem/commit/fbf5e3248d87819c6e78121c082187b4458a3525)) +- **theme-default:** sync anchor permalink function updates for better a11y ([93e6a04](https://github.com/vuepress/ecosystem/commit/93e6a0489f023578625fc9421d4c67990eba3610)) ### BREAKING CHANGES -* **plugin-shiki:** now `langs` option is required, you need to set the languages list explicitly +- **plugin-shiki:** now `langs` option is required, you need to set the languages list explicitly Co-authored-by: meteorlxy diff --git a/docs/plugins/copy-code.md b/docs/plugins/copy-code.md index 0078f9bcdb..5f40e3a6ce 100644 --- a/docs/plugins/copy-code.md +++ b/docs/plugins/copy-code.md @@ -91,35 +91,35 @@ export default { - Example: ```ts - import { copyCodePlugin } from "vuepress-plugin-copy-code2"; + import { copyCodePlugin } from 'vuepress-plugin-copy-code2' export default { locales: { - "/": { + '/': { // this is a supported language - lang: "en-US", + lang: 'en-US', }, - "/xx/": { + '/xx/': { // the plugin does not support this language - lang: "mm-NN", + lang: 'mm-NN', }, }, plugins: [ copyCodePlugin({ locales: { - "/": { + '/': { // Override copy button label text - copy: "Copy Codes from code block", + copy: 'Copy Codes from code block', }, - "/xx/": { + '/xx/': { // Complete locale config for `mm-NN` language here }, }, }), ], - }; + } ``` ::: details Built-in Supported Languages @@ -148,6 +148,6 @@ export default { ## Styles -You can customize the icon of the *copy button* via CSS variables: +You can customize the icon of the _copy button_ via CSS variables: @[code css](@vuepress/plugin-copy-code/src/client/styles/vars.css) diff --git a/docs/plugins/feed/README.md b/docs/plugins/feed/README.md index 7e06d32979..3a2e0f56c6 100644 --- a/docs/plugins/feed/README.md +++ b/docs/plugins/feed/README.md @@ -9,7 +9,7 @@ npm i -D @vuepress/plugin-feed@next ``` ```ts title=".vuepress/config.ts" -import { feedPlugin } from "@vuepress/plugin-feed"; +import { feedPlugin } from '@vuepress/plugin-feed' export default { plugins: [ diff --git a/docs/plugins/feed/channel.md b/docs/plugins/feed/channel.md index ec332b003d..2081055072 100644 --- a/docs/plugins/feed/channel.md +++ b/docs/plugins/feed/channel.md @@ -93,17 +93,17 @@ The author of the channel. ```ts interface FeedAuthor { /** Author name */ - name: string; + name: string /** Author's email */ - email?: string; + email?: string /** Author's site */ - url?: string; + url?: string /** * Author's avatar address * * Square, preferably not less than 128×128 with transparent background */ - avatar?: string; + avatar?: string } ``` diff --git a/docs/plugins/feed/config.md b/docs/plugins/feed/config.md index 874985d7eb..e63efa67a3 100644 --- a/docs/plugins/feed/config.md +++ b/docs/plugins/feed/config.md @@ -65,13 +65,13 @@ Custom element or component which should be preserved in feed. - Default: ```ts - ({ frontmatter, filePathRelative }: Page): boolean => + ;({ frontmatter, filePathRelative }: Page): boolean => !( frontmatter.home || !filePathRelative || frontmatter.article === false || frontmatter.feed === false - ); + ) ``` A custom filter function, used to filter feed items. @@ -84,7 +84,7 @@ A custom filter function, used to filter feed items. ```ts // compareDate is from vuepress-shared - (pageA: Page, pageB: Page): number => + ;(pageA: Page, pageB: Page): number => compareDate( pageA.data.git?.createdTime ? new Date(pageA.data.git?.createdTime) @@ -92,7 +92,7 @@ A custom filter function, used to filter feed items. pageB.data.git?.createdTime ? new Date(pageB.data.git?.createdTime) : pageB.frontmatter.date, - ); + ) ``` Custom sorter function for feed items. diff --git a/docs/plugins/feed/frontmatter.md b/docs/plugins/feed/frontmatter.md index c7f33957e4..971d906c71 100644 --- a/docs/plugins/feed/frontmatter.md +++ b/docs/plugins/feed/frontmatter.md @@ -79,26 +79,26 @@ interface FeedAuthor { /** * Author name */ - name?: string; + name?: string /** * Author email */ - email?: string; + email?: string /** * Author site * * @description json format only */ - url?: string; + url?: string /** * Author avatar * * @description json format only */ - avatar?: string; + avatar?: string } ``` @@ -117,26 +117,26 @@ interface FeedContributor { /** * Author name */ - name?: string; + name?: string /** * Author email */ - email?: string; + email?: string /** * Author site * * @description json format only */ - url?: string; + url?: string /** * Author avatar * * @description json format only */ - avatar?: string; + avatar?: string } ``` diff --git a/docs/plugins/feed/getter.md b/docs/plugins/feed/getter.md index 58b230e117..16965c621c 100644 --- a/docs/plugins/feed/getter.md +++ b/docs/plugins/feed/getter.md @@ -49,26 +49,26 @@ interface FeedAuthor { /** * Author name */ - name?: string; + name?: string /** * Author email */ - email?: string; + email?: string /** * Author site * * @description json format only */ - url?: string; + url?: string /** * Author avatar * * @description json format only */ - avatar?: string; + avatar?: string } ``` @@ -87,21 +87,21 @@ interface FeedCategory { /** * Category Name */ - name: string; + name: string /** * A string that identifies a categorization taxonomy * * @description rss format only */ - domain?: string; + domain?: string /** * the categorization scheme via a URI * * @description atom format only */ - scheme?: string; + scheme?: string } ``` @@ -120,21 +120,21 @@ interface FeedEnclosure { /** * Enclosure link */ - url: string; + url: string /** * what its type is * * @description should be a standard MIME Type, rss format only */ - Type: string; + Type: string /** * Size in bytes * * @description rss format only */ - length?: number; + length?: number } ``` @@ -179,26 +179,26 @@ interface FeedContributor { /** * Author name */ - name?: string; + name?: string /** * Author email */ - email?: string; + email?: string /** * Author site * * @description json format only */ - url?: string; + url?: string /** * Author avatar * * @description json format only */ - avatar?: string; + avatar?: string } ``` diff --git a/docs/plugins/seo/README.md b/docs/plugins/seo/README.md index eef6f10340..092f617712 100644 --- a/docs/plugins/seo/README.md +++ b/docs/plugins/seo/README.md @@ -9,7 +9,7 @@ npm i -D @vuepress/plugin-seo@next ``` ```ts title=".vuepress/config.ts" -import { seoPlugin } from "@vuepress/plugin-seo"; +import { seoPlugin } from '@vuepress/plugin-seo' export default { plugins: [ diff --git a/docs/plugins/seo/config.md b/docs/plugins/seo/config.md index e72c3d70c4..04b8d48fa6 100644 --- a/docs/plugins/seo/config.md +++ b/docs/plugins/seo/config.md @@ -13,26 +13,26 @@ - Type: `Author` ```ts - type AuthorName = string; + type AuthorName = string interface AuthorInfo { /** * Author name */ - name: string; + name: string /** * Author website */ - url?: string; + url?: string /** * Author email */ - email?: string; + email?: string } - type Author = AuthorName | AuthorName[] | AuthorInfo | AuthorInfo[]; + type Author = AuthorName | AuthorName[] | AuthorInfo | AuthorInfo[] ``` - Required: No @@ -96,7 +96,7 @@ page: Page, /** VuePress App */ app: App, - ): SeoContent; + ): SeoContent ``` - Required: No @@ -118,7 +118,7 @@ page: Page, /** VuePress App */ app: App, - ): ArticleSchema | BlogPostingSchema | WebPageSchema; + ): ArticleSchema | BlogPostingSchema | WebPageSchema ``` - Required: No @@ -141,7 +141,7 @@ page: Page, /** VuePress App */ app: App, - ): void; + ): void ``` - Required: No diff --git a/docs/plugins/seo/guide.md b/docs/plugins/seo/guide.md index 0ee2602fc6..38fee94cfd 100644 --- a/docs/plugins/seo/guide.md +++ b/docs/plugins/seo/guide.md @@ -90,7 +90,7 @@ function ogp( page: Page, /** VuePress App */ app: App, -): SeoContent; +): SeoContent ``` For detailed parameter structure, see [Config](./config.md). @@ -101,9 +101,9 @@ For example, if you are using a third-party theme and set a `banner` in frontmat seoPlugin({ ogp: (ogp, page) => ({ ...ogp, - "og:image": page.frontmatter.banner || ogp["og:image"], + 'og:image': page.frontmatter.banner || ogp['og:image'], }), -}); +}) ``` ### JSON-LD @@ -118,7 +118,7 @@ function jsonLd( page: Page, /** VuePress App */ app: App, -): ArticleSchema | BlogPostingSchema | WebPageSchema; +): ArticleSchema | BlogPostingSchema | WebPageSchema ``` ## Canonical Link @@ -150,7 +150,7 @@ function customHead( page: Page, /** VuePress App */ app: App, -): void; +): void ``` You should modify the `head` array in this function directly. diff --git a/docs/plugins/sitemap/README.md b/docs/plugins/sitemap/README.md index c0a3e572e9..3983930fdd 100644 --- a/docs/plugins/sitemap/README.md +++ b/docs/plugins/sitemap/README.md @@ -9,7 +9,7 @@ npm i -D @vuepress/plugin-sitemap@next ``` ```ts title=".vuepress/config.ts" -import { sitemapPlugin } from "@vuepress/plugin-sitemap"; +import { sitemapPlugin } from '@vuepress/plugin-sitemap' export default { plugins: [ diff --git a/docs/plugins/sitemap/frontmatter.md b/docs/plugins/sitemap/frontmatter.md index 7efad1eed5..7c68a731f6 100644 --- a/docs/plugins/sitemap/frontmatter.md +++ b/docs/plugins/sitemap/frontmatter.md @@ -1,4 +1,3 @@ - # Frontmatter ## sitemap diff --git a/docs/zh/plugins/copy-code.md b/docs/zh/plugins/copy-code.md index abc1a6eb0e..47dbd5655b 100644 --- a/docs/zh/plugins/copy-code.md +++ b/docs/zh/plugins/copy-code.md @@ -69,16 +69,16 @@ export default { /** * 复制文字 */ - copy: string; + copy: string /** * 已复制文字 */ - copied: string; + copied: string } interface CopyCodeLocaleConfig { - [localePath: string]: CopyCodeLocaleData; + [localePath: string]: CopyCodeLocaleData } ``` @@ -90,35 +90,35 @@ export default { - 示例: ```ts - import { copyCodePlugin } from "vuepress-plugin-copy-code2"; + import { copyCodePlugin } from 'vuepress-plugin-copy-code2' export default { locales: { - "/": { + '/': { // 这是一个支持的语言 - lang: "zh-CN", + lang: 'zh-CN', }, - "/xx/": { + '/xx/': { // 这是一个没有收到插件支持的语言 - lang: "mm-NN", + lang: 'mm-NN', }, }, plugins: [ copyCodePlugin({ locales: { - "/": { + '/': { // 覆盖复制按钮标签文字 - copy: "复制此段代码", + copy: '复制此段代码', }, - "/xx/": { + '/xx/': { // 在这里完整设置 `mm-NN` 的多语言配置 }, }, }), ], - }; + } ``` ::: details 内置支持语言 @@ -145,10 +145,8 @@ export default { ::: - ## 样式 你可以通过 CSS 变量来自定义*复制按钮*的样式: - @[code css](@vuepress/plugin-copy-code/src/client/styles/vars.css) diff --git a/docs/zh/plugins/feed/README.md b/docs/zh/plugins/feed/README.md index 40c9c1a537..7f4b0b4c19 100644 --- a/docs/zh/plugins/feed/README.md +++ b/docs/zh/plugins/feed/README.md @@ -9,7 +9,7 @@ npm i -D @vuepress/plugin-feed@next ``` ```ts title=".vuepress/config.ts" -import { feedPlugin } from "@vuepress/plugin-feed"; +import { feedPlugin } from '@vuepress/plugin-feed' export default { plugins: [ diff --git a/docs/zh/plugins/feed/channel.md b/docs/zh/plugins/feed/channel.md index 01a1ad2641..621026736f 100644 --- a/docs/zh/plugins/feed/channel.md +++ b/docs/zh/plugins/feed/channel.md @@ -89,17 +89,17 @@ ```ts interface FeedAuthor { /** 作者姓名 */ - name: string; + name: string /** 作者电子邮箱 */ - email?: string; + email?: string /** 作者网站 */ - url?: string; + url?: string /** * 作者头像地址 * * 正方形,最好不小于 128×128,透明背景 */ - avatar?: string; + avatar?: string } ``` diff --git a/docs/zh/plugins/feed/config.md b/docs/zh/plugins/feed/config.md index ab9b02bb1e..0b6cbf91aa 100644 --- a/docs/zh/plugins/feed/config.md +++ b/docs/zh/plugins/feed/config.md @@ -65,13 +65,13 @@ - 默认值: ```ts - ({ frontmatter, filePathRelative }: Page): boolean => + ;({ frontmatter, filePathRelative }: Page): boolean => !( frontmatter.home || !filePathRelative || frontmatter.article === false || frontmatter.feed === false - ); + ) ``` 自定义的过滤函数,用于过滤哪些项目在 feed 中显示。 @@ -84,7 +84,7 @@ ```ts // compareDate 来源于 vuepress-shared - (pageA, pageB): number => + ;(pageA, pageB): number => compareDate( pageA.data.git?.createdTime ? new Date(pageA.data.git?.createdTime) @@ -92,7 +92,7 @@ pageB.data.git?.createdTime ? new Date(pageB.data.git?.createdTime) : pageB.frontmatter.date, - ); + ) ``` Feed 项目的排序器。 diff --git a/docs/zh/plugins/feed/frontmatter.md b/docs/zh/plugins/feed/frontmatter.md index 930a80ab54..982e69d2b0 100644 --- a/docs/zh/plugins/feed/frontmatter.md +++ b/docs/zh/plugins/feed/frontmatter.md @@ -79,26 +79,26 @@ interface FeedAuthor { /** * 作者名字 */ - name?: string; + name?: string /** * 作者邮件 */ - email?: string; + email?: string /** * 作者网站 * * @description json format only */ - url?: string; + url?: string /** * 作者头像 * * @description json format only */ - avatar?: string; + avatar?: string } ``` @@ -117,26 +117,26 @@ interface FeedContributor { /** * 作者名字 */ - name?: string; + name?: string /** * 作者邮件 */ - email?: string; + email?: string /** * 作者网站 * * @description json format only */ - url?: string; + url?: string /** * 作者头像 * * @description json format only */ - avatar?: string; + avatar?: string } ``` diff --git a/docs/zh/plugins/feed/getter.md b/docs/zh/plugins/feed/getter.md index 37d7bc5bc5..8eead387ee 100644 --- a/docs/zh/plugins/feed/getter.md +++ b/docs/zh/plugins/feed/getter.md @@ -49,26 +49,26 @@ interface FeedAuthor { /** * 作者名字 */ - name?: string; + name?: string /** * 作者邮件 */ - email?: string; + email?: string /** * 作者网站 * * @description json format only */ - url?: string; + url?: string /** * 作者头像 * * @description json format only */ - avatar?: string; + avatar?: string } ``` @@ -87,21 +87,21 @@ interface FeedCategory { /** * 分类名称 */ - name: string; + name: string /** * 标识分类法的字符串 * * @description rss format only */ - domain?: string; + domain?: string /** * URI 标识的分类 scheme * * @description atom format only */ - scheme?: string; + scheme?: string } ``` @@ -120,21 +120,21 @@ interface FeedEnclosure { /** * Enclosure 地址 */ - url: string; + url: string /** * 类型 * * @description 应为一个标准的 MIME 类型,rss format only */ - type: string; + type: string /** * 按照字节数计算的大小 * * @description rss format only */ - length?: number; + length?: number } ``` @@ -179,26 +179,26 @@ interface FeedContributor { /** * 作者名字 */ - name?: string; + name?: string /** * 作者邮件 */ - email?: string; + email?: string /** * 作者网站 * * @description json format only */ - url?: string; + url?: string /** * 作者头像 * * @description json format only */ - avatar?: string; + avatar?: string } ``` diff --git a/docs/zh/plugins/seo/README.md b/docs/zh/plugins/seo/README.md index 2c32a5ccad..eebc5a0b95 100644 --- a/docs/zh/plugins/seo/README.md +++ b/docs/zh/plugins/seo/README.md @@ -9,7 +9,7 @@ npm i -D @vuepress/plugin-seo@next ``` ```ts title=".vuepress/config.ts" -import { seoPlugin } from "@vuepress/plugin-seo"; +import { seoPlugin } from '@vuepress/plugin-seo' export default { plugins: [ diff --git a/docs/zh/plugins/seo/config.md b/docs/zh/plugins/seo/config.md index 8b4d22c62e..eaed5baca8 100644 --- a/docs/zh/plugins/seo/config.md +++ b/docs/zh/plugins/seo/config.md @@ -13,26 +13,26 @@ - 类型:`Author` ```ts - type AuthorName = string; + type AuthorName = string interface AuthorInfo { /** * 作者姓名 */ - name: string; + name: string /** * 作者网站 */ - url?: string; + url?: string /** * 作者 Email */ - email?: string; + email?: string } - type Author = AuthorName | AuthorName[] | AuthorInfo | AuthorInfo[]; + type Author = AuthorName | AuthorName[] | AuthorInfo | AuthorInfo[] ``` - 详情: @@ -101,7 +101,7 @@ page: Page, /** VuePress App */ app: App, - ): SeoContent; + ): SeoContent ``` - 详情: @@ -122,7 +122,7 @@ page: Page, /** VuePress App */ app: App, - ): ArticleSchema | BlogPostingSchema | WebPageSchema; + ): ArticleSchema | BlogPostingSchema | WebPageSchema ``` - 详情: @@ -143,7 +143,7 @@ page: Page, /** VuePress App */ app: App, - ): void; + ): void ``` - 详情: diff --git a/docs/zh/plugins/seo/guide.md b/docs/zh/plugins/seo/guide.md index 156562b9c2..c5cceaab1d 100644 --- a/docs/zh/plugins/seo/guide.md +++ b/docs/zh/plugins/seo/guide.md @@ -87,7 +87,7 @@ function ogp( page: Page, /** VuePress App */ app: App, -): SeoContent; +): SeoContent ``` 详细的参数结构详见 [配置](./config.md)。 @@ -98,9 +98,9 @@ function ogp( seoPlugin({ ogp: (ogp, page) => ({ ...ogp, - "og:image": page.frontmatter.banner || ogp["og:image"], + 'og:image': page.frontmatter.banner || ogp['og:image'], }), -}); +}) ``` ### JSON-LD @@ -115,7 +115,7 @@ function jsonLd( page: Page, /** VuePress App */ app: App, -): ArticleSchema | BlogPostingSchema | WebPageSchema; +): ArticleSchema | BlogPostingSchema | WebPageSchema ``` ## 规范链接 @@ -147,7 +147,7 @@ function customHead( page: Page, /** VuePress App */ app: App, -): void; +): void ``` 你应该直接修改传入的 `head` 参数。 diff --git a/docs/zh/plugins/sitemap/README.md b/docs/zh/plugins/sitemap/README.md index 9be95319fa..5b084cd644 100644 --- a/docs/zh/plugins/sitemap/README.md +++ b/docs/zh/plugins/sitemap/README.md @@ -9,7 +9,7 @@ npm i -D @vuepress/plugin-sitemap@next ``` ```ts title=".vuepress/config.ts" -import { sitemapPlugin } from "@vuepress/plugin-sitemap"; +import { sitemapPlugin } from '@vuepress/plugin-sitemap' export default { plugins: [ diff --git a/e2e/docs/feed/demo.md b/e2e/docs/feed/demo.md index 311df93cae..e39ff0584a 100644 --- a/e2e/docs/feed/demo.md +++ b/e2e/docs/feed/demo.md @@ -11,7 +11,7 @@ tag: Here is **article excerpt**. ```js -const a = 1; +const a = 1 ``` @@ -25,5 +25,5 @@ Here is main content of **article**. 1. C ```js -const a = 1; +const a = 1 ``` diff --git a/e2e/docs/seo/README.md b/e2e/docs/seo/README.md index 58eb2842a4..4a9a7515d2 100644 --- a/e2e/docs/seo/README.md +++ b/e2e/docs/seo/README.md @@ -11,7 +11,7 @@ tag: Here is **article excerpt**. ```js -const a = 1; +const a = 1 ``` @@ -27,5 +27,5 @@ Here is main content of **article**. 1. C ```js -const a = 1; +const a = 1 ``` diff --git a/plugins/plugin-active-header-links/CHANGELOG.md b/plugins/plugin-active-header-links/CHANGELOG.md index 4dba2742a9..259b559b20 100644 --- a/plugins/plugin-active-header-links/CHANGELOG.md +++ b/plugins/plugin-active-header-links/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-back-to-top/CHANGELOG.md b/plugins/plugin-back-to-top/CHANGELOG.md index d2afcec861..a5889e0dd3 100644 --- a/plugins/plugin-back-to-top/CHANGELOG.md +++ b/plugins/plugin-back-to-top/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-container/CHANGELOG.md b/plugins/plugin-container/CHANGELOG.md index acc8044ec7..6144311fc4 100644 --- a/plugins/plugin-container/CHANGELOG.md +++ b/plugins/plugin-container/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-docsearch/CHANGELOG.md b/plugins/plugin-docsearch/CHANGELOG.md index d8e03eed42..85ba701eab 100644 --- a/plugins/plugin-docsearch/CHANGELOG.md +++ b/plugins/plugin-docsearch/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-external-link-icon/CHANGELOG.md b/plugins/plugin-external-link-icon/CHANGELOG.md index 8a6b415f80..bdb244ca35 100644 --- a/plugins/plugin-external-link-icon/CHANGELOG.md +++ b/plugins/plugin-external-link-icon/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-feed/CHANGELOG.md b/plugins/plugin-feed/CHANGELOG.md index f1680ffb66..47cfe7ef8d 100644 --- a/plugins/plugin-feed/CHANGELOG.md +++ b/plugins/plugin-feed/CHANGELOG.md @@ -7,7 +7,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) +- **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) # [2.0.0-rc.4](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-01-31) @@ -17,4 +17,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* **plugin-feed:** add feed plugin ([#41](https://github.com/vuepress/ecosystem/issues/41)) ([b0b2aa4](https://github.com/vuepress/ecosystem/commit/b0b2aa49b4904fb903ec8b312a2e48f6b9affc17)) +- **plugin-feed:** add feed plugin ([#41](https://github.com/vuepress/ecosystem/issues/41)) ([b0b2aa4](https://github.com/vuepress/ecosystem/commit/b0b2aa49b4904fb903ec8b312a2e48f6b9affc17)) diff --git a/plugins/plugin-git/CHANGELOG.md b/plugins/plugin-git/CHANGELOG.md index 9dd51f9a99..73f87eaf36 100644 --- a/plugins/plugin-git/CHANGELOG.md +++ b/plugins/plugin-git/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-google-analytics/CHANGELOG.md b/plugins/plugin-google-analytics/CHANGELOG.md index 6c44265082..8ecadbc03d 100644 --- a/plugins/plugin-google-analytics/CHANGELOG.md +++ b/plugins/plugin-google-analytics/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-medium-zoom/CHANGELOG.md b/plugins/plugin-medium-zoom/CHANGELOG.md index a1c70137df..82cde64d52 100644 --- a/plugins/plugin-medium-zoom/CHANGELOG.md +++ b/plugins/plugin-medium-zoom/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-nprogress/CHANGELOG.md b/plugins/plugin-nprogress/CHANGELOG.md index 86758cdd0f..4f57cd4ce4 100644 --- a/plugins/plugin-nprogress/CHANGELOG.md +++ b/plugins/plugin-nprogress/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-palette/CHANGELOG.md b/plugins/plugin-palette/CHANGELOG.md index 6d94d97ec5..785082ec9e 100644 --- a/plugins/plugin-palette/CHANGELOG.md +++ b/plugins/plugin-palette/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-prismjs/CHANGELOG.md b/plugins/plugin-prismjs/CHANGELOG.md index d018ac1cb5..57a903f738 100644 --- a/plugins/plugin-prismjs/CHANGELOG.md +++ b/plugins/plugin-prismjs/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-pwa-popup/CHANGELOG.md b/plugins/plugin-pwa-popup/CHANGELOG.md index eff7917431..ce4918bfad 100644 --- a/plugins/plugin-pwa-popup/CHANGELOG.md +++ b/plugins/plugin-pwa-popup/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-pwa/CHANGELOG.md b/plugins/plugin-pwa/CHANGELOG.md index d879b1fb23..d9e819ebb7 100644 --- a/plugins/plugin-pwa/CHANGELOG.md +++ b/plugins/plugin-pwa/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-register-components/CHANGELOG.md b/plugins/plugin-register-components/CHANGELOG.md index 6728bdd8c3..a98d917362 100644 --- a/plugins/plugin-register-components/CHANGELOG.md +++ b/plugins/plugin-register-components/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-search/CHANGELOG.md b/plugins/plugin-search/CHANGELOG.md index 855a40c583..33c2738565 100644 --- a/plugins/plugin-search/CHANGELOG.md +++ b/plugins/plugin-search/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-seo/CHANGELOG.md b/plugins/plugin-seo/CHANGELOG.md index 94ab6f6d59..e9f0f24a49 100644 --- a/plugins/plugin-seo/CHANGELOG.md +++ b/plugins/plugin-seo/CHANGELOG.md @@ -7,11 +7,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **plugin-seo:** fix logger name and remove debug logger ([a692d7a](https://github.com/vuepress/ecosystem/commit/a692d7ad813372188d2283e065a41c64114ed3df)) +- **plugin-seo:** fix logger name and remove debug logger ([a692d7a](https://github.com/vuepress/ecosystem/commit/a692d7ad813372188d2283e065a41c64114ed3df)) ### Features -* **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) +- **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) # [2.0.0-rc.4](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-01-31) @@ -21,4 +21,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* **plugin-seo:** add seo plugin ([#42](https://github.com/vuepress/ecosystem/issues/42)) ([8a999c5](https://github.com/vuepress/ecosystem/commit/8a999c58c20006b3a36de52a8502d03344af099d)) +- **plugin-seo:** add seo plugin ([#42](https://github.com/vuepress/ecosystem/issues/42)) ([8a999c5](https://github.com/vuepress/ecosystem/commit/8a999c58c20006b3a36de52a8502d03344af099d)) diff --git a/plugins/plugin-seo/tests/__fixtures__/src/example.md b/plugins/plugin-seo/tests/__fixtures__/src/example.md index b12304de1e..fb83315103 100644 --- a/plugins/plugin-seo/tests/__fixtures__/src/example.md +++ b/plugins/plugin-seo/tests/__fixtures__/src/example.md @@ -107,8 +107,8 @@ Syntax highlighting: ```js var foo = function (bar) { - return bar++; -}; + return bar++ +} -console.log(foo(5)); +console.log(foo(5)) ``` diff --git a/plugins/plugin-seo/tests/__fixtures__/src/zh/example.md b/plugins/plugin-seo/tests/__fixtures__/src/zh/example.md index 0ddcdb4912..28955f0b4e 100644 --- a/plugins/plugin-seo/tests/__fixtures__/src/zh/example.md +++ b/plugins/plugin-seo/tests/__fixtures__/src/zh/example.md @@ -116,8 +116,8 @@ Sample text here... ```js var foo = function (bar) { - return bar++; -}; + return bar++ +} -console.log(foo(5)); +console.log(foo(5)) ``` diff --git a/plugins/plugin-shiki/CHANGELOG.md b/plugins/plugin-shiki/CHANGELOG.md index fba36f33e6..361ad84b6e 100644 --- a/plugins/plugin-shiki/CHANGELOG.md +++ b/plugins/plugin-shiki/CHANGELOG.md @@ -11,12 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) -* **plugin-shiki:** bump to shikiji v0.10 ([e24c1cb](https://github.com/vuepress/ecosystem/commit/e24c1cb83a392dbb6182003b155cfa5cf417e67a)) -* **plugin-shiki:** migrate to esm-based shikiji (close [#12](https://github.com/vuepress/ecosystem/issues/12)) ([#13](https://github.com/vuepress/ecosystem/issues/13)) ([df11c04](https://github.com/vuepress/ecosystem/commit/df11c046854016e7d9ad043d0fc46b40beb9bddf)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- **plugin-shiki:** bump to shikiji v0.10 ([e24c1cb](https://github.com/vuepress/ecosystem/commit/e24c1cb83a392dbb6182003b155cfa5cf417e67a)) +- **plugin-shiki:** migrate to esm-based shikiji (close [#12](https://github.com/vuepress/ecosystem/issues/12)) ([#13](https://github.com/vuepress/ecosystem/issues/13)) ([df11c04](https://github.com/vuepress/ecosystem/commit/df11c046854016e7d9ad043d0fc46b40beb9bddf)) ### BREAKING CHANGES -* **plugin-shiki:** now `langs` option is required, you need to set the languages list explicitly +- **plugin-shiki:** now `langs` option is required, you need to set the languages list explicitly Co-authored-by: meteorlxy diff --git a/plugins/plugin-sitemap/CHANGELOG.md b/plugins/plugin-sitemap/CHANGELOG.md index 2211cf0c1f..b640e8b842 100644 --- a/plugins/plugin-sitemap/CHANGELOG.md +++ b/plugins/plugin-sitemap/CHANGELOG.md @@ -15,4 +15,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* **plugin-sitemap:** add sitemap plugin ([#37](https://github.com/vuepress/ecosystem/issues/37)) ([267f388](https://github.com/vuepress/ecosystem/commit/267f388c6ee4d3d5a44f42ddd16583569cfe97af)) +- **plugin-sitemap:** add sitemap plugin ([#37](https://github.com/vuepress/ecosystem/issues/37)) ([267f388](https://github.com/vuepress/ecosystem/commit/267f388c6ee4d3d5a44f42ddd16583569cfe97af)) diff --git a/plugins/plugin-theme-data/CHANGELOG.md b/plugins/plugin-theme-data/CHANGELOG.md index b77f4c1b39..ef215b3f26 100644 --- a/plugins/plugin-theme-data/CHANGELOG.md +++ b/plugins/plugin-theme-data/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/plugins/plugin-toc/CHANGELOG.md b/plugins/plugin-toc/CHANGELOG.md index 7869064789..c7f9037531 100644 --- a/plugins/plugin-toc/CHANGELOG.md +++ b/plugins/plugin-toc/CHANGELOG.md @@ -11,4 +11,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) diff --git a/themes/theme-default/CHANGELOG.md b/themes/theme-default/CHANGELOG.md index 14f9eb7676..290320fc4a 100644 --- a/themes/theme-default/CHANGELOG.md +++ b/themes/theme-default/CHANGELOG.md @@ -15,10 +15,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* **plugin-seo:** add seo plugin ([#42](https://github.com/vuepress/ecosystem/issues/42)) ([8a999c5](https://github.com/vuepress/ecosystem/commit/8a999c58c20006b3a36de52a8502d03344af099d)) -* **plugin-sitemap:** add sitemap plugin ([#37](https://github.com/vuepress/ecosystem/issues/37)) ([267f388](https://github.com/vuepress/ecosystem/commit/267f388c6ee4d3d5a44f42ddd16583569cfe97af)) -* **theme-default:** heading-sidebar ([#30](https://github.com/vuepress/ecosystem/issues/30)) ([0ac591d](https://github.com/vuepress/ecosystem/commit/0ac591dfe469e25cf42f1870dd6466d4e5bb3c4c)) -* **theme-default:** image alt option and set aria hidden on title if same as image alt (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([#23](https://github.com/vuepress/ecosystem/issues/23)) ([dc8042e](https://github.com/vuepress/ecosystem/commit/dc8042e40d15b290b8d100b9b39bf3e17a1d8e77)) +- **plugin-seo:** add seo plugin ([#42](https://github.com/vuepress/ecosystem/issues/42)) ([8a999c5](https://github.com/vuepress/ecosystem/commit/8a999c58c20006b3a36de52a8502d03344af099d)) +- **plugin-sitemap:** add sitemap plugin ([#37](https://github.com/vuepress/ecosystem/issues/37)) ([267f388](https://github.com/vuepress/ecosystem/commit/267f388c6ee4d3d5a44f42ddd16583569cfe97af)) +- **theme-default:** heading-sidebar ([#30](https://github.com/vuepress/ecosystem/issues/30)) ([0ac591d](https://github.com/vuepress/ecosystem/commit/0ac591dfe469e25cf42f1870dd6466d4e5bb3c4c)) +- **theme-default:** image alt option and set aria hidden on title if same as image alt (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([#23](https://github.com/vuepress/ecosystem/issues/23)) ([dc8042e](https://github.com/vuepress/ecosystem/commit/dc8042e40d15b290b8d100b9b39bf3e17a1d8e77)) # [2.0.0-rc.2](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2024-01-26) @@ -28,13 +28,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **theme-default:** avoid calling hooks in computed ([6d78f5d](https://github.com/vuepress/ecosystem/commit/6d78f5d0972c023027f44ae891833657f1da0adb)) -* **theme-default:** code group accessibility ([#10](https://github.com/vuepress/ecosystem/issues/10)) ([aae5916](https://github.com/vuepress/ecosystem/commit/aae591671fd18497fb5448b1cfdc9e89040c8a64)) -* **theme-default:** fix navbar brand logo a11y (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([8e6e57e](https://github.com/vuepress/ecosystem/commit/8e6e57ea2de65e30c5b033f1498b6a264f03ab20)) -* **theme-default:** fix new anchor style ([046ea1c](https://github.com/vuepress/ecosystem/commit/046ea1cff8c1f2f40bdded2ff713314d78f59501)) +- **theme-default:** avoid calling hooks in computed ([6d78f5d](https://github.com/vuepress/ecosystem/commit/6d78f5d0972c023027f44ae891833657f1da0adb)) +- **theme-default:** code group accessibility ([#10](https://github.com/vuepress/ecosystem/issues/10)) ([aae5916](https://github.com/vuepress/ecosystem/commit/aae591671fd18497fb5448b1cfdc9e89040c8a64)) +- **theme-default:** fix navbar brand logo a11y (close [#20](https://github.com/vuepress/ecosystem/issues/20)) ([8e6e57e](https://github.com/vuepress/ecosystem/commit/8e6e57ea2de65e30c5b033f1498b6a264f03ab20)) +- **theme-default:** fix new anchor style ([046ea1c](https://github.com/vuepress/ecosystem/commit/046ea1cff8c1f2f40bdded2ff713314d78f59501)) ### Features -* bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) -* **theme-default:** make use of data-title attr for code blocks (close [#18](https://github.com/vuepress/ecosystem/issues/18)) ([fbf5e32](https://github.com/vuepress/ecosystem/commit/fbf5e3248d87819c6e78121c082187b4458a3525)) -* **theme-default:** sync anchor permalink function updates for better a11y ([93e6a04](https://github.com/vuepress/ecosystem/commit/93e6a0489f023578625fc9421d4c67990eba3610)) +- bump to vp2rc1 and declare vuepress as peer ([af4f00b](https://github.com/vuepress/ecosystem/commit/af4f00b24dc64dfd3ec5f45053e78fdcf147da61)) +- **theme-default:** make use of data-title attr for code blocks (close [#18](https://github.com/vuepress/ecosystem/issues/18)) ([fbf5e32](https://github.com/vuepress/ecosystem/commit/fbf5e3248d87819c6e78121c082187b4458a3525)) +- **theme-default:** sync anchor permalink function updates for better a11y ([93e6a04](https://github.com/vuepress/ecosystem/commit/93e6a0489f023578625fc9421d4c67990eba3610)) diff --git a/themes/theme-default/templates/build.html b/themes/theme-default/templates/build.html index 5c60105034..e3dea5a2db 100644 --- a/themes/theme-default/templates/build.html +++ b/themes/theme-default/templates/build.html @@ -1,9 +1,9 @@ - + - - - + + + diff --git a/tools/create-vuepress/CHANGELOG.md b/tools/create-vuepress/CHANGELOG.md index cb9ef6f5ac..42e3c0ce26 100644 --- a/tools/create-vuepress/CHANGELOG.md +++ b/tools/create-vuepress/CHANGELOG.md @@ -7,16 +7,16 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **create-vuepress:** sync output folder with docs ([#29](https://github.com/vuepress/ecosystem/issues/29)) ([e7887aa](https://github.com/vuepress/ecosystem/commit/e7887aa3e0b8af278844d0d74e4df8d481ee9915)) +- **create-vuepress:** sync output folder with docs ([#29](https://github.com/vuepress/ecosystem/issues/29)) ([e7887aa](https://github.com/vuepress/ecosystem/commit/e7887aa3e0b8af278844d0d74e4df8d481ee9915)) # [2.0.0-rc.2](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2024-01-26) ### Features -* **create-vuepress:** update packages version ([68d5005](https://github.com/vuepress/ecosystem/commit/68d5005b3d5eabc8e9e473bf498038edd3043901)) +- **create-vuepress:** update packages version ([68d5005](https://github.com/vuepress/ecosystem/commit/68d5005b3d5eabc8e9e473bf498038edd3043901)) # 2.0.0-rc.1 (2024-01-26) ### Features -* **create-vuepress:** add create-helper (close [#1](https://github.com/vuepress/ecosystem/issues/1)) ([#15](https://github.com/vuepress/ecosystem/issues/15)) ([531a7e8](https://github.com/vuepress/ecosystem/commit/531a7e8c77b4145cb6da6247b695ef4bc38d4f98)) +- **create-vuepress:** add create-helper (close [#1](https://github.com/vuepress/ecosystem/issues/1)) ([#15](https://github.com/vuepress/ecosystem/issues/15)) ([531a7e8](https://github.com/vuepress/ecosystem/commit/531a7e8c77b4145cb6da6247b695ef4bc38d4f98)) diff --git a/tools/create-vuepress/template/blog/README.md b/tools/create-vuepress/template/blog/README.md index 49f0744e02..4080e4b978 100644 --- a/tools/create-vuepress/template/blog/README.md +++ b/tools/create-vuepress/template/blog/README.md @@ -6,7 +6,7 @@ actions: - text: Get Started link: /getting-started.html type: primary - + - text: Introduction link: https://vuejs.press/guide/introduction.html type: secondary diff --git a/tools/create-vuepress/template/docs/README.md b/tools/create-vuepress/template/docs/README.md index 49f0744e02..4080e4b978 100644 --- a/tools/create-vuepress/template/docs/README.md +++ b/tools/create-vuepress/template/docs/README.md @@ -6,7 +6,7 @@ actions: - text: Get Started link: /getting-started.html type: primary - + - text: Introduction link: https://vuejs.press/guide/introduction.html type: secondary diff --git a/tools/helper/CHANGELOG.md b/tools/helper/CHANGELOG.md index 97a05d6467..8221e0a598 100644 --- a/tools/helper/CHANGELOG.md +++ b/tools/helper/CHANGELOG.md @@ -7,29 +7,29 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **helper:** improve types of useLocaleConfig ([0fcc7f6](https://github.com/vuepress/ecosystem/commit/0fcc7f6bdb5f1a18899ad6e74849003d5e0e70e3)) +- **helper:** improve types of useLocaleConfig ([0fcc7f6](https://github.com/vuepress/ecosystem/commit/0fcc7f6bdb5f1a18899ad6e74849003d5e0e70e3)) ### Features -* **helper:** add data utils ([#43](https://github.com/vuepress/ecosystem/issues/43)) ([ebd6f63](https://github.com/vuepress/ecosystem/commit/ebd6f630652a1d8ee858ff2e9a3f260014d1353e)) -* **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) +- **helper:** add data utils ([#43](https://github.com/vuepress/ecosystem/issues/43)) ([ebd6f63](https://github.com/vuepress/ecosystem/commit/ebd6f630652a1d8ee858ff2e9a3f260014d1353e)) +- **helper:** add locales helper ([#44](https://github.com/vuepress/ecosystem/issues/44)) ([f1be46f](https://github.com/vuepress/ecosystem/commit/f1be46f1c80a3a373da49852d6cb96967c2c74d3)) # [2.0.0-rc.4](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-01-31) ### Features -* **helper:** add shared export ([da50bcf](https://github.com/vuepress/ecosystem/commit/da50bcf7fe18ff743696092ca5aa78a45d518657)) +- **helper:** add shared export ([da50bcf](https://github.com/vuepress/ecosystem/commit/da50bcf7fe18ff743696092ca5aa78a45d518657)) # [2.0.0-rc.3](https://github.com/vuepress/ecosystem/compare/v2.0.0-rc.2...v2.0.0-rc.3) (2024-01-31) ### Bug Fixes -* **helper:** add missing export ([049da22](https://github.com/vuepress/ecosystem/commit/049da224a22e0ce0a1927df2f24c3764d97f4f5b)) -* **helper:** add missing exports ([2dc8ea5](https://github.com/vuepress/ecosystem/commit/2dc8ea53493b5e625ed8d8e5fbe701d0a8ccf9d5)) +- **helper:** add missing export ([049da22](https://github.com/vuepress/ecosystem/commit/049da224a22e0ce0a1927df2f24c3764d97f4f5b)) +- **helper:** add missing exports ([2dc8ea5](https://github.com/vuepress/ecosystem/commit/2dc8ea53493b5e625ed8d8e5fbe701d0a8ccf9d5)) ### Features -* **helper:** add date helper ([20e5e46](https://github.com/vuepress/ecosystem/commit/20e5e46e4b5f2e321dae7b4943454626cdb1e5dc)) -* **helper:** add getPageText ([#39](https://github.com/vuepress/ecosystem/issues/39)) ([d666d1b](https://github.com/vuepress/ecosystem/commit/d666d1bcc55122e0ebcff386b6190d0c9d7ddb67)) -* **helper:** add helper package ([#33](https://github.com/vuepress/ecosystem/issues/33)) ([fadf122](https://github.com/vuepress/ecosystem/commit/fadf1225c643ab0bf9c4c0f46d0b3b3f1aa15ac6)) -* **helper:** add logger utils ([#35](https://github.com/vuepress/ecosystem/issues/35)) ([a92c710](https://github.com/vuepress/ecosystem/commit/a92c710298a07dbbce5434c18a504cade47effe4)) +- **helper:** add date helper ([20e5e46](https://github.com/vuepress/ecosystem/commit/20e5e46e4b5f2e321dae7b4943454626cdb1e5dc)) +- **helper:** add getPageText ([#39](https://github.com/vuepress/ecosystem/issues/39)) ([d666d1b](https://github.com/vuepress/ecosystem/commit/d666d1bcc55122e0ebcff386b6190d0c9d7ddb67)) +- **helper:** add helper package ([#33](https://github.com/vuepress/ecosystem/issues/33)) ([fadf122](https://github.com/vuepress/ecosystem/commit/fadf1225c643ab0bf9c4c0f46d0b3b3f1aa15ac6)) +- **helper:** add logger utils ([#35](https://github.com/vuepress/ecosystem/issues/35)) ([a92c710](https://github.com/vuepress/ecosystem/commit/a92c710298a07dbbce5434c18a504cade47effe4)) diff --git a/tools/helper/tests/__fixtures__/src/custom-separator.md b/tools/helper/tests/__fixtures__/src/custom-separator.md index c99f0486c6..2aad04c53e 100644 --- a/tools/helper/tests/__fixtures__/src/custom-separator.md +++ b/tools/helper/tests/__fixtures__/src/custom-separator.md @@ -11,7 +11,7 @@ tag: Here is **article excerpt**. ```js -const a = 1; +const a = 1 ``` END_OF_EXCERPT @@ -25,5 +25,5 @@ Here is main content of **article**. 1. C ```js -const a = 1; +const a = 1 ``` diff --git a/tools/helper/tests/__fixtures__/src/markdown.md b/tools/helper/tests/__fixtures__/src/markdown.md index 6b0634aa88..c22d642974 100644 --- a/tools/helper/tests/__fixtures__/src/markdown.md +++ b/tools/helper/tests/__fixtures__/src/markdown.md @@ -102,7 +102,7 @@ Classic: | center | right | left | | :------------------------: | -----------------------: | :---------------------- | | For center align use `:-:` | For right align use `-:` | For left align use `:-` | -| table text | aaaaaaaaa | aaaa | +| table text | aaaaaaaaa | aaaa | | c | aaaa | a | ## Codes @@ -119,10 +119,10 @@ Syntax highlighting: ```js {2} var foo = function (bar) { - return bar++; -}; + return bar++ +} -console.log(foo(5)); +console.log(foo(5)) ``` ## Comment diff --git a/tools/helper/tests/__fixtures__/src/separator.md b/tools/helper/tests/__fixtures__/src/separator.md index 41cede05ec..550659754d 100644 --- a/tools/helper/tests/__fixtures__/src/separator.md +++ b/tools/helper/tests/__fixtures__/src/separator.md @@ -11,7 +11,7 @@ tag: Here is **article excerpt**. ```js -const a = 1; +const a = 1 ``` @@ -25,5 +25,5 @@ Here is main content of **article**. 1. C ```js -const a = 1; +const a = 1 ``` diff --git a/tools/helper/tests/node/__snapshots__/excerpt.spec.ts.snap b/tools/helper/tests/node/__snapshots__/excerpt.spec.ts.snap index ae57cab2a9..71ba1c66fa 100644 --- a/tools/helper/tests/node/__snapshots__/excerpt.spec.ts.snap +++ b/tools/helper/tests/node/__snapshots__/excerpt.spec.ts.snap @@ -12,7 +12,7 @@ exports[`getPageExcerpt > default > generate excerpt for all pages > /component. exports[`getPageExcerpt > default > generate excerpt for all pages > /custom-separator.html 1`] = ` "

Here is article excerpt.

-
const a = 1;
+
const a = 1
 

END_OF_EXCERPT

Content

Here is main content of article.

@@ -44,7 +44,7 @@ exports[`getPageExcerpt > default > generate excerpt for all pages > /markdown.h exports[`getPageExcerpt > default > generate excerpt for all pages > /separator.html 1`] = ` "

Here is article excerpt.

-
const a = 1;
+
const a = 1
 
" `; @@ -60,7 +60,7 @@ exports[`getPageExcerpt > excerptLength > extract all content with Infinity > /c exports[`getPageExcerpt > excerptLength > extract all content with Infinity > /custom-separator.html 1`] = ` "

Here is article excerpt.

-
const a = 1;
+
const a = 1
 

END_OF_EXCERPT

Content

Here is main content of article.

@@ -69,7 +69,7 @@ exports[`getPageExcerpt > excerptLength > extract all content with Infinity > /c
  • B
  • C
  • -
    const a = 1;
    +
    const a = 1
     
    " `; @@ -248,10 +248,10 @@ line break again
    Sample text here...
     

    Syntax highlighting:

    var foo = function (bar) {
    -  return bar++;
    -};
    +  return bar++
    +}
     
    -console.log(foo(5));
    +console.log(foo(5))
     

    Comment

    " @@ -259,24 +259,24 @@ console.log(foo(5)); exports[`getPageExcerpt > excerptLength > extract all content with Infinity > /separator.html 1`] = ` "

    Here is article excerpt.

    -
    const a = 1;
    +
    const a = 1
     
    " `; exports[`getPageExcerpt > excerptLength > only generate when having marker with 0 > /separator.html 1`] = ` "

    Here is article excerpt.

    -
    const a = 1;
    +
    const a = 1
     
    " `; exports[`getPageExcerpt > excerptSeparator > generate excerpt with custom marker > /custom-separator.html 1`] = ` "

    Here is article excerpt.

    -
    const a = 1;
    +
    const a = 1
     
    " `; exports[`getPageExcerpt > excerptSeparator > generate excerpt with default marker > /separator.html 1`] = ` "

    Here is article excerpt.

    -
    const a = 1;
    +
    const a = 1
     
    " `; diff --git a/tools/helper/tests/node/__snapshots__/text.spec.ts.snap b/tools/helper/tests/node/__snapshots__/text.spec.ts.snap index aad297600e..d44474471e 100644 --- a/tools/helper/tests/node/__snapshots__/text.spec.ts.snap +++ b/tools/helper/tests/node/__snapshots__/text.spec.ts.snap @@ -194,24 +194,14 @@ exports[`getPageText > removedTags > / 1`] = ` " `; -exports[`getPageText > removedTags > / 2`] = ` -"Homepage Content -" -`; - exports[`getPageText > removedTags > /component.html 1`] = ` "A text with " `; -exports[`getPageText > removedTags > /component.html 2`] = ` -"A text with -" -`; - exports[`getPageText > removedTags > /custom-separator.html 1`] = ` "Here is article excerpt. -const a = 1; +const a = 1 END_OF_EXCERPT Content Here is main content of article. @@ -220,16 +210,7 @@ A B C -const a = 1; -" -`; - -exports[`getPageText > removedTags > /custom-separator.html 2`] = ` -"Here is article excerpt. -END_OF_EXCERPT -Content -Here is main content of article. - +const a = 1 " `; @@ -288,61 +269,6 @@ Content ends. " `; -exports[`getPageText > removedTags > /long-content.html 2`] = ` -"Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, rem. Recusandae itaque rem, non perspiciatis magnam molestiae, in ab quae, dolore illo neque possimus nisi inventore? Laudantium officia nihil iusto! -Quod delectus vero dicta perferendis quia sint incidunt vitae pariatur, nemo suscipit saepe veritatis laudantium deleniti aperiam! Explicabo dignissimos, corporis, odio voluptatum eius aut pariatur dicta inventore, amet optio modi! -Eligendi voluptatum animi aspernatur rerum hic quasi neque doloribus mollitia quaerat. Id blanditiis, nostrum autem sequi vero praesentium magnam totam in sit animi velit, veritatis hic natus? Quidem, distinctio provident! -Nemo distinctio numquam reprehenderit sed alias perspiciatis autem quasi qui culpa ducimus dolorum mollitia beatae aperiam quisquam necessitatibus neque voluptatum sapiente, quidem explicabo voluptate debitis laborum delectus. Hic, ipsam non? -Vitae saepe repellat, laboriosam ipsam numquam cumque, eaque perferendis quibusdam dolorem blanditiis, architecto velit molestiae. Earum ea cupiditate excepturi incidunt sequi ducimus ullam architecto, tempora, iure molestias in repellendus hic. -Vero ducimus minima vitae voluptas in magnam fuga ipsa a debitis alias porro non earum veniam laudantium ipsam perferendis itaque, voluptatum amet provident. Deleniti voluptatem sit numquam ducimus quam cupiditate! -Molestias cum, rerum perferendis at voluptatibus est assumenda. Soluta saepe corrupti sunt fugit laboriosam possimus labore nemo nisi veritatis neque minima qui, molestiae esse commodi sit iure voluptatem voluptatum quibusdam. -Asperiores fuga magnam explicabo sed quae laboriosam ullam aut harum laborum accusantium totam reprehenderit voluptatibus, vel facere, inventore soluta consectetur sint? Maxime nobis dicta a quos, voluptate quidem odit quo? -Eos magni ullam aperiam provident ab repellat sunt accusantium recusandae quisquam modi quasi quaerat et, officiis quis dolorem optio minima? Dicta aut dolorem eius, aliquid maiores labore! Officiis, tempore similique. -Ex quo in nulla molestias doloribus odio dolorem illum aperiam error iste! Facilis quae consequatur praesentium unde. Rerum, et, doloribus eveniet cum sequi autem illo est quibusdam laborum aperiam nostrum. -Eius ratione fuga dolorum aut totam molestias commodi ea sed odio possimus, fugiat perspiciatis perferendis omnis autem deserunt. Id veniam rem voluptatum non molestiae adipisci, impedit cupiditate eos exercitationem nisi. -Ab nam veniam corrupti aperiam cupiditate. Ex totam, cumque dignissimos dicta nemo veritatis facilis dolor minus consequatur et quo odio quibusdam consequuntur dolorum esse consectetur dolorem velit, perferendis deserunt perspiciatis! -Repellendus in labore sed nobis esse aut nam, neque incidunt asperiores natus fuga, reprehenderit porro ad, atque nemo dicta autem impedit iste totam quae minus? Ullam nesciunt iste voluptatum deserunt? -Corporis numquam itaque quibusdam eos quas tempore dolorem, impedit laboriosam sequi, possimus sint, voluptatum ab dolor unde! Harum illo, sed, adipisci iusto saepe provident, pariatur labore obcaecati dolorem velit nostrum. -Rerum minima eius hic, vel iure ipsa natus facilis necessitatibus dolores optio enim quod obcaecati neque doloribus sapiente atque repellendus. Amet eligendi libero illo? Earum aliquam molestiae tempora placeat delectus! -Dolores eum hic accusantium aliquam maxime deleniti non, voluptas aut cupiditate omnis veritatis dolorem, voluptatem nisi vero odio quidem sapiente animi! Nihil repudiandae, excepturi totam cupiditate blanditiis porro delectus quidem. -Iste ipsum qui, nostrum recusandae, maiores, at cum odio labore cupiditate numquam id animi iure? Quam sequi laborum vero magnam excepturi, mollitia ex nobis fuga sed, vel veniam molestiae hic? -Iste temporibus voluptate magni voluptates inventore deserunt magnam laboriosam rerum exercitationem maxime, minus sed accusamus sint perspiciatis quaerat, ipsa facilis ipsum? Commodi incidunt nam doloremque blanditiis neque minima beatae aliquam. -Veniam voluptate exercitationem voluptas blanditiis aliquam id non fugiat amet, esse iusto dolorem deserunt maxime libero, similique ducimus, reiciendis adipisci ad culpa! Unde corporis, magnam quo iusto blanditiis ex voluptatibus. -Ipsum quam accusamus atque itaque reiciendis obcaecati nemo quas architecto, suscipit, dolores a quasi illo at deserunt voluptas nesciunt. Odio sapiente dolores beatae et labore dicta aspernatur molestiae velit rerum? -Laborum vel vitae dignissimos enim amet quas eveniet aliquid earum numquam itaque possimus, est corrupti quidem quam natus nostrum neque repellat quis ratione corporis officiis minus expedita dicta voluptate! Quibusdam! -Qui minima provident dignissimos corrupti facilis modi saepe esse praesentium itaque molestiae aut, ea, earum, iure facere quis eaque alias! Voluptas in minima voluptate quos facilis perspiciatis expedita accusamus sequi! -Amet, sed qui eius delectus blanditiis possimus fugit et nulla doloribus, tempore beatae autem tenetur deserunt eveniet vero dolore sit ipsa minus magnam itaque aliquid labore, illo reprehenderit dolores! Sunt. -Commodi aliquam consectetur saepe quis laboriosam, debitis optio tempora eius sed error ad officiis. Cupiditate enim amet laborum quaerat eaque. Fugit ab ipsam similique tempore nesciunt accusantium explicabo repudiandae harum? -Autem atque laudantium mollitia voluptates eum corporis repudiandae debitis dicta cumque asperiores repellat accusamus sit esse, dolor, inventore libero minima tempora delectus eligendi quas sint! Odit eos ipsa accusamus ducimus. -Dicta natus facere, cum eveniet explicabo nobis, pariatur beatae quae ab temporibus maiores rem eaque. Quisquam itaque saepe sequi, voluptatem quibusdam, minima ea deleniti quos vel modi est. Modi, maxime? -Optio perspiciatis rerum iusto expedita esse magnam pariatur quo repellendus sint tenetur veniam illo alias quae ratione aliquid ab natus enim laboriosam veritatis qui possimus, quos dolorum officia quas? Quasi. -Consectetur, incidunt praesentium laborum consequatur magnam, accusantium reprehenderit sequi explicabo nam numquam iusto veniam ducimus temporibus molestiae ab nisi quis dolores quam unde repellat sunt, beatae quidem? Doloremque, vero minima? -Illo reiciendis veritatis rem adipisci dolores quasi dignissimos quisquam, eligendi sint facilis est perspiciatis velit totam in praesentium ipsum! Accusamus dignissimos minima fuga laudantium pariatur voluptate dolores veniam deserunt beatae? -Id, molestiae. Excepturi ad quaerat quam sit consequuntur dolores, a doloribus eaque et harum nulla illo alias beatae, temporibus non maiores quo! Numquam aliquid, enim quas possimus ab exercitationem accusamus. -Ab voluptates consequatur dolore aperiam, eum doloremque voluptatum dicta ipsum eos ea exercitationem. Soluta nobis sunt reiciendis consequuntur vero nesciunt suscipit quos maiores saepe, commodi doloremque, culpa rerum perferendis esse. -Quasi saepe sed repellendus. Fugiat voluptatem aspernatur nobis? Officiis necessitatibus veniam esse provident voluptatum alias quas consequuntur corporis aliquam doloribus eveniet autem, sit, quo dolorum voluptate vel porro quae quibusdam. -Aliquid illo maiores vel cumque eos iure explicabo quae molestiae exercitationem dolores quia voluptate, similique consequatur necessitatibus pariatur quas labore rerum consectetur eum totam dignissimos quaerat. Perferendis dicta facere saepe. -Nam molestias vel natus eaque, sunt itaque ratione maxime libero fuga fugit minus quidem velit assumenda, rem expedita impedit a in! Cumque perferendis est velit quo ullam fugit corrupti pariatur! -Eaque at cumque dolores culpa autem officiis architecto voluptas qui mollitia, nam repellat quis fuga consequuntur? Dolore optio nesciunt error perspiciatis. Praesentium nisi, fugiat adipisci suscipit reprehenderit ullam quia deleniti. -Iusto illo in voluptatum, reprehenderit atque hic inventore asperiores facere enim minima mollitia praesentium assumenda incidunt obcaecati. Delectus neque soluta, ullam nemo corrupti dicta sint explicabo nesciunt tempora, unde pariatur. -Suscipit, placeat, cum veniam recusandae ab dolor corporis laboriosam voluptate consequatur nihil deleniti quae soluta assumenda quam cumque aliquam, possimus expedita explicabo eligendi consequuntur accusantium enim! Maxime rem est ex! -Error ipsam dolorem temporibus, esse suscipit eveniet recusandae hic rem corporis excepturi laboriosam est nostrum? Illum distinctio laboriosam et, itaque temporibus maxime culpa aliquid iure ipsam? Commodi, aliquid quasi. Quod! -Ullam ratione tempora molestias unde, ut, dolor sint tenetur magni amet sunt, nihil corporis voluptatum fuga sapiente soluta maxime voluptas fugiat recusandae assumenda nobis quam maiores veniam cupiditate. Officia, sapiente. -Beatae alias repellendus nostrum sequi porro. Fugit cupiditate aperiam quos ratione dicta eligendi deserunt quisquam iste minima, unde natus dolorum vero. Consequatur similique quasi tenetur. Nisi illo vitae aperiam ipsam? -Praesentium, quidem accusamus doloribus exercitationem adipisci rem soluta asperiores quis corrupti pariatur? Incidunt architecto tempora similique repellat ratione voluptatibus magnam, odit harum maxime exercitationem reprehenderit repudiandae in facilis obcaecati velit. -Minus, rerum, inventore dolorem illo dolor tenetur molestiae sit quae sapiente officia, maxime voluptatum consequuntur ullam. Temporibus voluptates ipsa facere, optio odit saepe nihil repellendus ad reprehenderit expedita consequuntur nam! -Aut corrupti eligendi rem repudiandae cum similique officia ea illum beatae. Maiores, explicabo, voluptatum accusamus excepturi incidunt velit dolorem eligendi distinctio a nemo similique perspiciatis blanditiis dolores voluptates commodi porro? -Quis nulla minima corporis eligendi earum voluptas ipsam accusantium. Nesciunt corrupti numquam ex omnis fuga natus sint, delectus molestias eaque dolor ea porro autem velit, voluptate pariatur exercitationem modi explicabo. -Corporis vero quisquam id mollitia deleniti minus aut libero sint iure sapiente magni nemo laboriosam, voluptatem totam optio nostrum labore tenetur, a nesciunt! Quis impedit harum velit, minima quae maiores. -Cum sint, rem saepe quam similique sequi veniam nisi labore suscipit dolorem quos impedit alias dolore sit ad incidunt assumenda. Blanditiis sed perspiciatis reiciendis animi ea sunt, at perferendis iusto! -Qui voluptas quidem ipsa dolores exercitationem doloremque necessitatibus? Rem nihil deleniti eos, nobis doloremque a voluptatum dignissimos commodi cumque tempora facilis! Illo minima unde beatae dicta nobis ipsa, delectus dolore! -Illum quis laboriosam neque odio ad! Facere illo exercitationem quod in vel non magnam incidunt quibusdam culpa, minus pariatur id eaque dolorum, consequatur voluptas harum voluptatibus sunt odit iure atque. -Dolorum officiis fugit error laborum. Necessitatibus aliquam reprehenderit aspernatur. Beatae illo est reiciendis. Odit nobis pariatur provident, deleniti expedita magni maxime quaerat dolor omnis enim qui ducimus, fugit consectetur odio? -Beatae sunt, quia doloremque nulla animi aperiam facilis blanditiis, non laborum in delectus a ipsa esse ex odio maxime iure, magni excepturi pariatur vero veritatis. Officiis deserunt laboriosam consequuntur recusandae. -Content ends. -" -`; - exports[`getPageText > removedTags > /markdown.html 1`] = ` "Content Example Headings @@ -463,97 +389,15 @@ Block code: Sample text here... Syntax highlighting: var foo = function (bar) { - return bar++; -}; + return bar++ +} -console.log(foo(5)); +console.log(foo(5))  Comment " `; -exports[`getPageText > removedTags > /markdown.html 2`] = ` -"Content Example -Headings -Heading 1 -Heading 2 -Heading 3 -Heading 4 -Heading 5 -Heading 6 -Heading with markdown and html -Text -This sentence has bold、italic and style text. -Paragraph -This is a paragraph. -This is another paragraph. -Line Break -I would like to line break at -this point -::: tip -In codes above, two spaces are behind at. -::: -Blockquotes - -Blockquotes can also be nested... - -...by using greater-than signs right next to each other... - -...or with spaces between arrows. - - - -List -Unordered List - -Ordered List - -HR - -Link - -Image -Logo -logo -A inline image relative, image with absolute link and a image with full url. -Emoji -Classic: -😉 😢 😆 😋 -Tables - -Codes -Inline Code: inline code -Block code: -Syntax highlighting: - Comment - -" -`; - -exports[`getPageText > removedTags > /separator.html 1`] = ` -"Here is article excerpt. -const a = 1; - -Content -Here is main content of article. - -A -B -C - -const a = 1; -" -`; - -exports[`getPageText > removedTags > /separator.html 2`] = ` -"Here is article excerpt. - -Content -Here is main content of article. - -" -`; - exports[`getPageText > singleLine > / 1`] = `"Homepage Content "`; exports[`getPageText > singleLine > /component.html 1`] = `"A text with "`;