You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor: simplify mapContributors configuration
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
* fix(git-changelog): mapAuthors.name also include in nameAlias, default return github link when no links but with username (#211)
* fix: support mapAuthor.name to nameAlias
> When searching for nameAlisa, consider mapAuthors.name as one of its name Alias at the same time, which will prevent the user from typing name and nameAlisa repeatedly in mapAuthor.
* fix: should return github link when without links and with username
* fix: modify mapContributors config accordingly
---------
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
Co-authored-by: Northword <44738481+northword@users.noreply.github.com>
### Option `mapContributors` - Map contributors' information
70
+
### Option `mapAuthors` - Map contributors' information
71
71
72
-
The `mapContributors` field in the configuration options is used to map the contributors' information. You can provide the `mapContributors` field in the configuration options to map the contributors' information, including the display name, avatar, email, social links, and aliases.
72
+
The `mapAuthors` field in the configuration options is used to map the contributors' information. You can provide the `mapAuthors` field in the configuration options to map the contributors' information, including the display name, avatar, email, social links, and aliases.
73
73
74
74
Let's say we have these logs:
75
75
@@ -89,7 +89,7 @@ Author: John Doe <john.doe@anothersite.com>
89
89
We now have two commits from the same person, with only the email address is different. By default, the plugin will treat them as two different contributors.
90
90
Such case happens when you changed your name or email address in the past.
91
91
92
-
To solve this, you can provide the `mapContributors` field in the configuration options to map the contributors' information:
92
+
To solve this, you can provide the `mapAuthors` field in the configuration options to map the contributors' information:
1. `mapContributors` now deprecated, please use `mapAuthors` instead since it's more neutral for writers.
210
+
2. `nameAliases` now deprecated, please use `mapByNameAliases` instead, which is more clear and consistent with other plugins.
211
+
3. `emailAliases` now deprecated, please use `mapByEmailAliases` instead, which is more clear and consistent with other plugins.
212
+
4. Added new `username` field, which is the username of the author on GitHub used to fetch the avatar.
213
+
214
+
### `Vite` config
215
+
207
216
1. `includeDirs` and `includeExtensions` have been deprecated and merged into `include`, which is a list of glob modes with `!` negation.
208
217
2. If a renderable page file located outside of the VitePress root (where `.vitepress` lives), please configure the `cwd` (current working directory) to the parent directory of the page files. (For example, in a Monorepo, if the source file that rendered a page s located outside of `docs/`, you need to set `cwd` to the root directory of the Monorepo instead of the root of VitePress.)
209
218
3. No longer needed to configure `rewritePaths`, therefor `rewritePaths` is now deprecated, can be safely removed.
0 commit comments