mirror of https://github.com/YunYouJun/valaxy
docs: add how to use customize code block icon
This commit is contained in:
parent
df2fe5ba02
commit
ba7045ae39
|
@ -121,7 +121,7 @@ export default defineValaxyConfig<ThemeConfig>({
|
|||
customIcon: {
|
||||
// valaxy: 'https://valaxy.site/favicon.svg',
|
||||
valaxy: localIconLoader(import.meta.url, '../../docs/public/favicon.svg'),
|
||||
dockerfile: 'vscode-icons:file-type-docker2',
|
||||
dockerfile: 'vscode-icons:file-type-docker',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -720,6 +720,7 @@ export default defineValaxyConfig({
|
|||
playwright: 'vscode-icons:file-type-playwright',
|
||||
typedoc: 'vscode-icons:file-type-typedoc',
|
||||
eslint: 'vscode-icons:file-type-eslint',
|
||||
dockerfile: 'vscode-icons:file-type-docker',
|
||||
},
|
||||
}
|
||||
})
|
||||
|
@ -733,6 +734,11 @@ import { defineValaxyConfig } from 'valaxy'
|
|||
|
||||
export default defineValaxyConfig({})
|
||||
```
|
||||
```dockerfile [sample.dockerfile]
|
||||
FROM ubuntu
|
||||
|
||||
ENV PATH /opt/conda/bin:$PATH
|
||||
```
|
||||
````
|
||||
|
||||
我们将会得到带有 `valaxy.config.ts` 标题与 Valaxy 图标的代码块:
|
||||
|
@ -743,6 +749,14 @@ import { defineValaxyConfig } from 'valaxy'
|
|||
export default defineValaxyConfig({})
|
||||
```
|
||||
|
||||
还会得到带有 `sample.dockerfile` 标题与 Docker 图标的代码块:
|
||||
|
||||
```dockerfile [sample.dockerfile]
|
||||
FROM ubuntu
|
||||
|
||||
ENV PATH /opt/conda/bin:$PATH
|
||||
```
|
||||
|
||||
## KaTeX {lang="en"}
|
||||
|
||||
## KaTeX 语法支持 {lang="zh-CN"}
|
||||
|
|
Loading…
Reference in New Issue