mirror of
				https://github.com/nsnail/dot.git
				synced 2025-11-04 11:00:49 +08:00 
			
		
		
		
	refactor: ♻️ 2.0 (#13)
This commit is contained in:
		
							
								
								
									
										29
									
								
								docs/manual/docs/.vitepress/config.mts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								docs/manual/docs/.vitepress/config.mts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
import { defineConfig } from 'vitepress'
 | 
			
		||||
 | 
			
		||||
// https://vitepress.dev/reference/site-config
 | 
			
		||||
export default defineConfig({
 | 
			
		||||
  base: "/netadmin/",
 | 
			
		||||
  title: "dot",
 | 
			
		||||
  description: "管理后台快速开发框架",
 | 
			
		||||
  themeConfig: {
 | 
			
		||||
    // https://vitepress.dev/reference/default-theme-config
 | 
			
		||||
    nav: [
 | 
			
		||||
      { text: 'Home', link: '/' },
 | 
			
		||||
      { text: 'Examples', link: '/markdown-examples' }
 | 
			
		||||
    ],
 | 
			
		||||
 | 
			
		||||
    sidebar: [
 | 
			
		||||
      {
 | 
			
		||||
        text: 'Examples',
 | 
			
		||||
        items: [
 | 
			
		||||
          { text: 'Markdown Examples', link: '/markdown-examples' },
 | 
			
		||||
          { text: 'Runtime API Examples', link: '/api-examples' }
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    ],
 | 
			
		||||
 | 
			
		||||
    socialLinks: [
 | 
			
		||||
      { icon: 'github', link: 'https://github.com/nsnail/netadmin' }
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										49
									
								
								docs/manual/docs/api-examples.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								docs/manual/docs/api-examples.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,49 @@
 | 
			
		||||
---
 | 
			
		||||
outline: deep
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
# Runtime API Examples
 | 
			
		||||
 | 
			
		||||
This page demonstrates usage of some of the runtime APIs provided by VitePress.
 | 
			
		||||
 | 
			
		||||
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
 | 
			
		||||
 | 
			
		||||
```md
 | 
			
		||||
<script setup>
 | 
			
		||||
import { useData } from 'vitepress'
 | 
			
		||||
 | 
			
		||||
const { theme, page, frontmatter } = useData()
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
## Results
 | 
			
		||||
 | 
			
		||||
### Theme Data
 | 
			
		||||
<pre>{{ theme }}</pre>
 | 
			
		||||
 | 
			
		||||
### Page Data
 | 
			
		||||
<pre>{{ page }}</pre>
 | 
			
		||||
 | 
			
		||||
### Page Frontmatter
 | 
			
		||||
<pre>{{ frontmatter }}</pre>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { useData } from 'vitepress'
 | 
			
		||||
 | 
			
		||||
const { site, theme, page, frontmatter } = useData()
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
## Results
 | 
			
		||||
 | 
			
		||||
### Theme Data
 | 
			
		||||
<pre>{{ theme }}</pre>
 | 
			
		||||
 | 
			
		||||
### Page Data
 | 
			
		||||
<pre>{{ page }}</pre>
 | 
			
		||||
 | 
			
		||||
### Page Frontmatter
 | 
			
		||||
<pre>{{ frontmatter }}</pre>
 | 
			
		||||
 | 
			
		||||
## More
 | 
			
		||||
 | 
			
		||||
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
 | 
			
		||||
							
								
								
									
										24
									
								
								docs/manual/docs/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								docs/manual/docs/index.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
---
 | 
			
		||||
# https://vitepress.dev/reference/default-theme-home-page
 | 
			
		||||
layout: home
 | 
			
		||||
 | 
			
		||||
hero:
 | 
			
		||||
  name: "dot"
 | 
			
		||||
  text: "管理后台快速开发框架"
 | 
			
		||||
  tagline: 基于C#12/.NET8、Vue3/Vite、Element Plus等现代技术构建,具有十分整洁、优雅的编码规范
 | 
			
		||||
  actions:
 | 
			
		||||
    - theme: brand
 | 
			
		||||
      text: 快速开始
 | 
			
		||||
      link: /markdown-examples
 | 
			
		||||
    - theme: alt
 | 
			
		||||
      text: API Examples
 | 
			
		||||
      link: /api-examples
 | 
			
		||||
 | 
			
		||||
features:
 | 
			
		||||
  - title: Feature A
 | 
			
		||||
    details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
 | 
			
		||||
  - title: Feature B
 | 
			
		||||
    details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
 | 
			
		||||
  - title: Feature C
 | 
			
		||||
    details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
 | 
			
		||||
---
 | 
			
		||||
							
								
								
									
										85
									
								
								docs/manual/docs/markdown-examples.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										85
									
								
								docs/manual/docs/markdown-examples.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,85 @@
 | 
			
		||||
# Markdown Extension Examples
 | 
			
		||||
 | 
			
		||||
This page demonstrates some of the built-in markdown extensions provided by VitePress.
 | 
			
		||||
 | 
			
		||||
## Syntax Highlighting
 | 
			
		||||
 | 
			
		||||
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
 | 
			
		||||
 | 
			
		||||
**Input**
 | 
			
		||||
 | 
			
		||||
````
 | 
			
		||||
```js{4}
 | 
			
		||||
export default {
 | 
			
		||||
  data () {
 | 
			
		||||
    return {
 | 
			
		||||
      msg: 'Highlighted!'
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
````
 | 
			
		||||
 | 
			
		||||
**Output**
 | 
			
		||||
 | 
			
		||||
```js{4}
 | 
			
		||||
export default {
 | 
			
		||||
  data () {
 | 
			
		||||
    return {
 | 
			
		||||
      msg: 'Highlighted!'
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Custom Containers
 | 
			
		||||
 | 
			
		||||
**Input**
 | 
			
		||||
 | 
			
		||||
```md
 | 
			
		||||
::: info
 | 
			
		||||
This is an info box.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: tip
 | 
			
		||||
This is a tip.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: warning
 | 
			
		||||
This is a warning.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: danger
 | 
			
		||||
This is a dangerous warning.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: details
 | 
			
		||||
This is a details block.
 | 
			
		||||
:::
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Output**
 | 
			
		||||
 | 
			
		||||
::: info
 | 
			
		||||
This is an info box.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: tip
 | 
			
		||||
This is a tip.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: warning
 | 
			
		||||
This is a warning.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: danger
 | 
			
		||||
This is a dangerous warning.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: details
 | 
			
		||||
This is a details block.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
## More
 | 
			
		||||
 | 
			
		||||
Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).
 | 
			
		||||
							
								
								
									
										10
									
								
								docs/manual/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								docs/manual/package.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "docs:dev": "vitepress dev docs",
 | 
			
		||||
    "docs:build": "vitepress build docs",
 | 
			
		||||
    "docs:preview": "vitepress preview docs"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "vitepress": "^1.0.0-rc.27"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user