vitepress-allyouneed 0.3.0-beta.2 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -2,9 +2,20 @@
2
2
 
3
3
  本项目遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/);版本号遵循 [SemVer](https://semver.org/lang/zh-CN/)。
4
4
 
5
- ## [0.3.0-beta.2] - 2026-05-20
6
- ### Fixed
7
- - **build-mode base 双重 prefix bug**:`
5
+ ## [0.3.0] - 2026-05-20
6
+
7
+ 正式版。汇集 v0.3 全部新功能(Obsidian 语法 6 模块、sidebar 自动生成全套、DocHeader banner、i18n 集成、`_sidebar.md` 覆盖等),并修两个 deploy 关键 bug
8
+
9
+ ### Fixed(0.3.0-beta.0 → 0.3.0)
10
+ - **build-mode base 双重 prefix → 404**:`entry.url` 之前**包含 base**(`/<base>/foo`),VitePress render 时**再** prepend base → `/<base>/<base>/foo` → GitHub Pages 等子路径部署全部 404。现 `computeUrl` 始终输出**不带 base 的 site-root 相对 URL**(`/foo`),VitePress 统一 prepend。影响 wikilink `<a href>`、sidebar/nav link、per-folder Record key、`_perspectives_/` fallback 等所有内部 URL。
11
+ - **i18n nav 注入丢失**:VitePress i18n 下 `themeConfig.locales[lang].themeConfig.nav` 覆盖顶层 nav,Perspectives 下拉在 EN locale 消失。wrapper 现在给**所有 locale 的 nav** 都注入。
12
+ - **跨 locale nav 链接 404**:EN locale 写 `link: '/test/'` 被解释为 locale-relative `/en/test/`。example 配置已修正(EN nav 只列已翻译 page)。
13
+ - **Perspectives 视图页 sidebar 显示扁平 fallback 列表**(用户反馈不够有用)→ 视图页自动 frontmatter `sidebar: false`,只剩中间 graph/stats/tags 组件全屏展示。
14
+
15
+ ### Added(0.3.0-beta.0 → 0.3.0)
16
+ - 11 篇 EN 翻译文档(`en/guide/{overview, docs×6, advanced×4}`)
17
+ - VitePress 原生 i18n 集成:wrapper 自动识别 `themeConfig.locales`,给每个 non-root locale 用 `includePrefix` 生成独立 sidebar
18
+ - `sidebarAuto.includePrefix` / `excludePrefixes` 公开选项
8
19
 
9
20
  ## [0.3.0-beta.1] - 2026-05-20
10
21
 
package/dist/index.cjs CHANGED
@@ -570,7 +570,7 @@ function computeUrl(rel, options) {
570
570
  const pathPart = isIndex ? noExt.replace(/(^|\/)(index|README)$/i, "$1") : noExt;
571
571
  const segments = pathPart.split("/").filter(Boolean);
572
572
  if (segments.length === 0) {
573
- return options.base;
573
+ return "/";
574
574
  }
575
575
  const last = segments[segments.length - 1];
576
576
  if (!isIndex) {
@@ -578,7 +578,7 @@ function computeUrl(rel, options) {
578
578
  } else if (!options.cleanUrls) {
579
579
  segments.push("index.html");
580
580
  }
581
- return buildUrl(options.base, segments);
581
+ return buildUrl("/", segments);
582
582
  }
583
583
  function pushToArrayMap(m, k, v) {
584
584
  const arr = m.get(k);
@@ -2067,6 +2067,7 @@ function renderTemplate(v) {
2067
2067
  "---",
2068
2068
  `title: ${v.title}`,
2069
2069
  "layout: doc",
2070
+ "sidebar: false",
2070
2071
  "aside: false",
2071
2072
  "outline: false",
2072
2073
  "---",