-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
174 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { search as zhSearch } from './zh' | ||
import { search as ptSearch } from './pt' | ||
import { search as ruSearch } from './ru' | ||
import { search as esSearch } from './es' | ||
import { search as koSearch } from './ko' | ||
|
||
export const shared = defineConfig({ | ||
title: 'VitePress', | ||
|
||
rewrites: { | ||
'en/:rest*': ':rest*' | ||
}, | ||
|
||
lastUpdated: true, | ||
cleanUrls: true, | ||
metaChunk: true, | ||
|
||
markdown: { | ||
math: true, | ||
codeTransformers: [ | ||
// We use `[!!code` in demo to prevent transformation, here we revert it back. | ||
{ | ||
postprocess(code) { | ||
return code.replace(/\[\!\!code/g, '[!code') | ||
} | ||
} | ||
] | ||
}, | ||
|
||
sitemap: { | ||
hostname: 'https://vitepress.dev', | ||
transformItems(items) { | ||
return items.filter((item) => !item.url.includes('migration')) | ||
} | ||
}, | ||
|
||
/* prettier-ignore */ | ||
head: [ | ||
['link', { rel: 'icon', type: 'image/svg+xml', href: '/vitepress-logo-mini.svg' }], | ||
['link', { rel: 'icon', type: 'image/png', href: '/vitepress-logo-mini.png' }], | ||
['meta', { name: 'theme-color', content: '#5f67ee' }], | ||
['meta', { property: 'og:type', content: 'website' }], | ||
['meta', { property: 'og:locale', content: 'en' }], | ||
['meta', { property: 'og:title', content: 'VitePress | Vite & Vue Powered Static Site Generator' }], | ||
['meta', { property: 'og:site_name', content: 'VitePress' }], | ||
['meta', { property: 'og:image', content: 'https://vitepress.dev/vitepress-og.jpg' }], | ||
['meta', { property: 'og:url', content: 'https://vitepress.dev/' }], | ||
['script', { src: 'https://cdn.usefathom.com/script.js', 'data-site': 'AZBRSFGG', 'data-spa': 'auto', defer: '' }] | ||
], | ||
|
||
themeConfig: { | ||
logo: { src: '/vitepress-logo-mini.svg', width: 24, height: 24 }, | ||
|
||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } | ||
], | ||
|
||
search: { | ||
provider: 'algolia', | ||
options: { | ||
appId: '8J64VVRP8K', | ||
apiKey: '52f578a92b88ad6abde815aae2b0ad7c', | ||
indexName: 'vitepress', | ||
locales: { | ||
...zhSearch, | ||
...ptSearch, | ||
...ruSearch, | ||
...esSearch, | ||
...koSearch | ||
} | ||
} | ||
}, | ||
|
||
carbonAds: { code: 'CEBDT27Y', placement: 'vuejsorg' } | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
layout: home | ||
|
||
title: SwanLab Docs | ||
titleTemplate: Advanced AI Team Collaboration and Model Innovation Engine | ||
|
||
hero: | ||
name: SwanLab | ||
text: Track and Visualize Your AI Experiments | ||
tagline: One-stop Experiment Tracking and Training Visualization Tool | ||
actions: | ||
- theme: brand | ||
text: Documentation | ||
link: /en/guide_cloud/general/what-is-swanlab.md | ||
- theme: brand | ||
text: Website | ||
link: https://dev101.swanlab.cn | ||
# - theme: alt | ||
# text: 快速开始 | ||
# link: /en/guide_cloud/general/quick-start.md | ||
- theme: alt | ||
text: Docs GitHub | ||
link: https://github.com/SwanHubX/SwanLab-Docs | ||
image: | ||
src: /page.png | ||
alt: VitePress | ||
|
||
features: | ||
- icon: 🚢 | ||
title: Quick Start | ||
details: Install SwanLab and start tracking your AI experiments in minutes. | ||
link: /en/guide_cloud/general/quick-start.md | ||
|
||
# - icon: 📚 | ||
# title: 案例 | ||
# details: SwanLab官方案例合集,更好地理解SwanLab在人工智能pipeline中扮演的角色和作用。 | ||
# link: /en/examples/mnist | ||
|
||
# - icon: 🤗 | ||
# title: 集成 | ||
# details: 与HuggingFace Transformers、PyTorch Lightning、Hydra等主流框架的集成文档。 | ||
# link: /en/guide_cloud/integration/integration-pytorch-lightning.md | ||
|
||
# - icon: ⚡️ | ||
# title: API文档 | ||
# details: Python库和CLI的完整API文档 | ||
# link: en/api/api-index | ||
|
||
--- | ||
|
||
<style> | ||
:root { | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #637de8 50%, #63ca8c); | ||
|
||
--vp-home-hero-image-background-image: linear-gradient(-45deg, #8d9956 50%, #47caff 50%); | ||
--vp-home-hero-image-filter: blur(44px); | ||
} | ||
|
||
@media (min-width: 640px) { | ||
:root { | ||
--vp-home-hero-image-filter: blur(56px); | ||
} | ||
} | ||
|
||
@media (min-width: 960px) { | ||
:root { | ||
--vp-home-hero-image-filter: blur(68px); | ||
} | ||
} | ||
</style> |
File renamed without changes.