Skip to content

Commit

Permalink
fix(theme-yun): strato nimbo banner compatibility, close #508
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 23, 2025
1 parent 3f6bded commit c6f88b4
Show file tree
Hide file tree
Showing 10 changed files with 808 additions and 495 deletions.
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typedoc": "typedoc --options ./typedoc.json"
},
"devDependencies": {
"typedoc": "^0.27.7",
"typedoc": "^0.27.8",
"typedoc-plugin-markdown": "^4.4.2",
"typedoc-vitepress-theme": "^1.1.2",
"vitepress": "^1.6.3"
Expand Down
1 change: 1 addition & 0 deletions demo/yun/.valaxy/typed-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ declare module 'vue-router/auto-routes' {
'/collections/love-and-peace/3': RouteRecordInfo<'/collections/love-and-peace/3', '/collections/love-and-peace/3', Record<never, never>, Record<never, never>>,
'/collections/README': RouteRecordInfo<'/collections/README', '/collections/README', Record<never, never>, Record<never, never>>,
'/examples/addons/components': RouteRecordInfo<'/examples/addons/components', '/examples/addons/components', Record<never, never>, Record<never, never>>,
'/examples/code-height-limit': RouteRecordInfo<'/examples/code-height-limit', '/examples/code-height-limit', Record<never, never>, Record<never, never>>,
'/examples/custom-components': RouteRecordInfo<'/examples/custom-components', '/examples/custom-components', Record<never, never>, Record<never, never>>,
'/examples/sites': RouteRecordInfo<'/examples/sites', '/examples/sites', Record<never, never>, Record<never, never>>,
'/examples/without-aside': RouteRecordInfo<'/examples/without-aside', '/examples/without-aside', Record<never, never>, Record<never, never>>,
Expand Down
62 changes: 62 additions & 0 deletions demo/yun/pages/examples/code-height-limit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: Code height limit
title_zh: 代码块高度限制
toc: true
categories:
- examples
codeHeightLimit: 300
---

::: zh-CN
在 Front Matter 中设置 `codeHeightLimit: 300`
:::

::: en
Set `codeHeightLimit: 300` in Front Matter.
:::

```md
---
codeHeightLimit: 300
---
```

::: zh-CN
渲染结果
:::

::: en
Rendering result
:::

```ts
import type { ThemeConfig } from 'valaxy-theme-yun'
import { defineValaxyConfig } from 'valaxy'

const safelist = [
'i-ri-home-line',
]

export default defineValaxyConfig<ThemeConfig>({
// site config see site.config.ts or write in siteConfig
// siteConfig: {},

theme: 'yun',
themeConfig: {

banner: {
enable: true,
title: '云游君的小站',
},

notice: {
enable: true,
content: '公告测试',
},
},

unocss: {
safelist,
},
})
```
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@
"@antfu/eslint-config": "^4.3.0",
"@iconify-json/logos": "catalog:",
"@iconify-json/vscode-icons": "catalog:",
"@microsoft/api-extractor": "^7.50.0",
"@microsoft/api-extractor": "^7.50.1",
"@playwright/test": "^1.50.1",
"@types/debug": "^4.1.12",
"@types/markdown-it-attrs": "^4.1.3",
"@types/markdown-it-container": "^2.0.10",
"@types/markdown-it-emoji": "^3.0.1",
"@types/node": "^22.13.4",
"@types/node": "^22.13.5",
"@types/prompts": "^2.4.9",
"@types/resolve": "^1.20.6",
"bumpp": "^10.0.3",
"cross-env": "^7.0.3",
"eslint": "^9.20.1",
"eslint": "^9.21.0",
"https-localhost": "^4.7.1",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
Expand All @@ -107,7 +107,7 @@
"stylelint-config-recommended-vue": "^1.6.0",
"stylelint-config-standard-scss": "^14.0.0",
"tsup": "^8.3.6",
"tsx": "^4.19.2",
"tsx": "^4.19.3",
"typescript": "catalog:",
"unbuild": "catalog:",
"vite-node": "^3.0.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/valaxy-addon-algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"valaxy": ">=0.22"
},
"dependencies": {
"@docsearch/css": "^3.8.3",
"@docsearch/js": "^3.8.3"
"@docsearch/css": "^3.9.0",
"@docsearch/js": "^3.9.0"
}
}
4 changes: 2 additions & 2 deletions packages/valaxy-theme-press/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"main": "node/index.ts",
"types": "types/index.d.ts",
"dependencies": {
"@docsearch/css": "^3.8.3",
"@docsearch/js": "^3.8.3"
"@docsearch/css": "^3.9.0",
"@docsearch/js": "^3.9.0"
},
"devDependencies": {
"valaxy": "workspace:*"
Expand Down
1 change: 1 addition & 0 deletions packages/valaxy-theme-yun/layouts/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const showNotice = computed(() => {
<template v-if="!isPage">
<YunBanner />
<Transition
v-if="yun.isNimbo"
enter-from-class="scale-60"
enter-to-class="scale-100"
enter-active-class="transition-300 transition-cubic-bezier-ease-in-out delay-1000"
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"qrcode": "^1.5.4",
"resolve-global": "^2.0.0",
"sass": "^1.85.0",
"shiki": "^2",
"shiki": "^2.5.0",
"star-markdown-css": "^0.5.3",
"unocss": "^66.0.0",
"unplugin-vue-components": "28.0.0",
Expand Down
Loading

1 comment on commit c6f88b4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67bb44ce3601bff61e5f5b7e--valaxy.netlify.app

Please sign in to comment.