@clarify-labs/templates 0.11.9 → 0.11.10

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.
@@ -20,10 +20,10 @@ export default defineConfig({
20
20
  },
21
21
  },
22
22
  navigation: {
23
- links: [
23
+ menus: [
24
24
  { label: { 'en-US': 'Guides', 'zh-CN': '指南' }, href: '/guides/writing-content' },
25
25
  { label: { 'en-US': 'API', 'zh-CN': '接口' }, href: '/api' },
26
- { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify', external: true },
26
+ { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify' },
27
27
  ],
28
28
  tabs: [
29
29
  {
@@ -7,14 +7,18 @@ description: Track notable product and documentation changes.
7
7
 
8
8
  Use this page to publish notable product, API, and documentation updates.
9
9
 
10
- ## 2026-06-20
10
+ <Release version="v0.1.0" date="2026-06-20">
11
11
 
12
- ### Added
12
+ <ReleaseItem title="Added">
13
13
 
14
14
  - Initial Clarify documentation starter.
15
15
  - Basic MDX authoring examples.
16
16
  - OpenAPI reference example.
17
17
 
18
- ### Changed
18
+ </ReleaseItem>
19
+ <ReleaseItem title="Changed">
19
20
 
20
21
  - Replace these entries with your real release notes.
22
+
23
+ </ReleaseItem>
24
+ </Release>
@@ -54,9 +54,9 @@ export default defineConfig({
54
54
  ```ts title="clarify.ts"
55
55
  export default defineConfig({
56
56
  navigation: {
57
- links: [
58
- { label: 'Guides', href: '/guides/writing-content' },
59
- { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify', external: true },
57
+ menus: [
58
+ { label: 'Guides', page: 'guides/writing-content' },
59
+ { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify' },
60
60
  ],
61
61
  },
62
62
  footer: {
@@ -26,15 +26,12 @@ The `clarify.ts` file controls the site shell, theme, navigation, and OpenAPI en
26
26
  <Property name="theme" type="ClarifyThemeConfig">
27
27
  Preset, color tokens, radius tokens, and layout settings.
28
28
  </Property>
29
- <Property name="navbar" type="{ links?: ClarifyNavbarLink[] }">
30
- Top navigation links. Use `external: true` for off-site links.
29
+ <Property name="navigation" type="{ menus?: ClarifyNavbarMenu[]; tabs?: ClarifyTabsConfig }">
30
+ Top navigation menus, tabs, and sidebar pages. External URLs are detected automatically.
31
31
  </Property>
32
32
  <Property name="footer" type="ClarifyFooterConfig">
33
33
  Footer links, social links, copyright text, or a custom footer component path. Clarify branding always remains in the bottom-right corner.
34
34
  </Property>
35
- <Property name="tabs" type="ClarifyTabsConfig">
36
- Top-level navigation tabs and sidebar pages.
37
- </Property>
38
35
  <Property name="i18n" type="ClarifyI18nConfig">
39
36
  Optional locale configuration for multilingual sites.
40
37
  </Property>
@@ -7,14 +7,18 @@ description: 记录重要的产品和文档变更。
7
7
 
8
8
  使用此页面发布重要的产品、API 和文档更新。
9
9
 
10
- ## 2026-06-20
10
+ <Release version="v0.1.0" date="2026-06-20">
11
11
 
12
- ### 新增
12
+ <ReleaseItem title="新增">
13
13
 
14
14
  - 初始 Clarify 文档模板。
15
15
  - 基础 MDX 写作示例。
16
16
  - OpenAPI 参考示例。
17
17
 
18
- ### 变更
18
+ </ReleaseItem>
19
+ <ReleaseItem title="变更">
19
20
 
20
21
  - 将这些条目替换为你的真实发布说明。
22
+
23
+ </ReleaseItem>
24
+ </Release>
@@ -54,9 +54,9 @@ export default defineConfig({
54
54
  ```ts title="clarify.ts"
55
55
  export default defineConfig({
56
56
  navigation: {
57
- links: [
58
- { label: 'Guides', href: '/guides/writing-content' },
59
- { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify', external: true },
57
+ menus: [
58
+ { label: '指南', page: 'guides/writing-content' },
59
+ { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify' },
60
60
  ],
61
61
  },
62
62
  footer: {
@@ -26,15 +26,12 @@ description: 了解此模板使用的 Clarify 配置字段。
26
26
  <Property name="theme" type="ClarifyThemeConfig">
27
27
  主题预设、颜色 token、圆角 token 和布局设置。
28
28
  </Property>
29
- <Property name="navbar" type="{ links?: ClarifyNavbarLink[] }">
30
- 顶部导航链接。站外链接请使用 `external: true`。
29
+ <Property name="navigation" type="{ menus?: ClarifyNavbarMenu[]; tabs?: ClarifyTabsConfig }">
30
+ 顶部导航菜单、标签页和侧边栏页面。外部 URL 会自动识别。
31
31
  </Property>
32
32
  <Property name="footer" type="ClarifyFooterConfig">
33
33
  页脚链接、社交链接、版权文本,或自定义页脚组件路径。Clarify 品牌标识会始终保留在右下角。
34
34
  </Property>
35
- <Property name="tabs" type="ClarifyTabsConfig">
36
- 顶级导航标签页和侧边栏页面。
37
- </Property>
38
35
  <Property name="i18n" type="ClarifyI18nConfig">
39
36
  多语言站点的可选 locale 配置。
40
37
  </Property>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clarify-labs/templates",
3
- "version": "0.11.9",
3
+ "version": "0.11.10",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -15,10 +15,10 @@ export default defineConfig({
15
15
  },
16
16
  },
17
17
  navigation: {
18
- links: [
18
+ menus: [
19
19
  { label: 'Guides', href: '/guides/writing-content' },
20
20
  { label: 'Changelog', href: '/changelog' },
21
- { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify', external: true },
21
+ { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify' },
22
22
  ],
23
23
  tabs: [
24
24
  {
@@ -7,14 +7,18 @@ description: Track notable product and documentation changes.
7
7
 
8
8
  Use this page to publish notable product, API, and documentation updates.
9
9
 
10
- ## 2026-06-20
10
+ <Release version="v0.1.0" date="2026-06-20">
11
11
 
12
- ### Added
12
+ <ReleaseItem title="Added">
13
13
 
14
14
  - Initial Clarify documentation starter.
15
15
  - Basic MDX authoring examples.
16
16
  - OpenAPI reference example.
17
17
 
18
- ### Changed
18
+ </ReleaseItem>
19
+ <ReleaseItem title="Changed">
19
20
 
20
21
  - Replace these entries with your real release notes.
22
+
23
+ </ReleaseItem>
24
+ </Release>
@@ -55,10 +55,10 @@ export default defineConfig({
55
55
  ```ts title="clarify.ts"
56
56
  export default defineConfig({
57
57
  navigation: {
58
- links: [
59
- { label: 'Guides', href: '/guides/writing-content' },
60
- { label: 'Changelog', href: '/changelog' },
61
- { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify', external: true },
58
+ menus: [
59
+ { label: 'Guides', page: 'guides/writing-content' },
60
+ { label: 'Changelog', page: 'changelog' },
61
+ { label: 'GitHub', href: 'https://github.com/taicode-labs/clarify' },
62
62
  ],
63
63
  },
64
64
  footer: {