|
| 1 | +<!-- ## Table of Contents |
| 2 | +[[toc]] --> |
| 3 | + |
| 4 | +<!--  --> |
| 5 | + |
| 6 | +<iframe src="https://codesandbox.io/embed/friendly-sun-nbd4d?autoresize=1&fontsize=14&hidenavigation=1&theme=dark&hidedevtools=1" |
| 7 | + style="width: 100%; height: 500px; border: 0; border-radius: 4px; overflow: hidden;" |
| 8 | + title="friendly-sun-nbd4d" |
| 9 | + allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" |
| 10 | + sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts" |
| 11 | +></iframe> |
| 12 | +
|
| 13 | + |
| 14 | + |
| 15 | +<a href="https://www.youtube.com/watch?v=ojLrp2rmh0I |
| 16 | +" target="_blank"><img src="http://img.youtube.com/vi/ojLrp2rmh0I/0.jpg" |
| 17 | +alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> |
| 18 | + |
| 19 | +## Reference |
| 20 | +1. [Vitepress official docs](https://vitepress.vuejs.org/) |
| 21 | +2. [markdown-it](https://markdown-it.github.io/) |
| 22 | +3. [Guthub vitepress docs Example](https://github.com/vuejs/vitepress/tree/master/docs) |
| 23 | +4. [Guthub markdown cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) |
| 24 | +5. [Markdown basic syntax](https://www.markdownguide.org/basic-syntax/) |
| 25 | +6. [Markdown extended syntax](https://www.markdownguide.org/extended-syntax/) |
| 26 | +7. [A list of emojis](https://github.com/markdown-it/markdown-it-emoji/blob/master/lib/data/full.json) |
| 27 | +7. [A list of Code syntax highlighting](https://prismjs.com/#languages-list) |
| 28 | + |
| 29 | +## Routing! |
| 30 | + |
| 31 | +<!-- [docs/index.md](/) -> / |
| 32 | +
|
| 33 | +[docs/guide/one.md](/guide/getting-start) -> /one |
| 34 | +
|
| 35 | +[docs/api/index.md](/api/) -> /api/ |
| 36 | +
|
| 37 | +[docs/guide/two.md](/guide/two) -> /guide/two --> |
| 38 | + |
| 39 | +### All these options work! |
| 40 | + |
| 41 | +<!-- [docs/guide/one.md](/guide/getting-start) | |
| 42 | +[docs/api/index.md](/api/) | |
| 43 | +[docs/guide/two.md](/guide/two) --> |
| 44 | + |
| 45 | +'# Hello VitePress' |
| 46 | +| Tables | Are | Cool | |
| 47 | +| ------------- |:-------------:| -----:| |
| 48 | +| col 3 is | right-aligned | $1600 | |
| 49 | +| col 2 is | centered | $12 | |
| 50 | +| zebra stripes | are neat | $1 |
| 51 | + |
| 52 | +| Headings | Are | Centered | |
| 53 | +| ------------- |:-------------:| -----: | |
| 54 | +| left align | centered | right align | |
| 55 | +| zebra striped | rows | easy | |
| 56 | + |
| 57 | +### Blogging Like a Hacker |
| 58 | +--- |
| 59 | + |
| 60 | +head: |
| 61 | + - - meta |
| 62 | + - name: description |
| 63 | + content: hello |
| 64 | + - - meta |
| 65 | + - name: keywords |
| 66 | + content: super duper SEO |
| 67 | + |
| 68 | +### Emoji |
| 69 | +--- |
| 70 | +:tada: :100: |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +## Custom Containers |
| 75 | + |
| 76 | +::: tip |
| 77 | +This is a tip |
| 78 | +::: |
| 79 | + |
| 80 | +::: warning |
| 81 | +This is a warning |
| 82 | +::: |
| 83 | + |
| 84 | +::: danger |
| 85 | +This is a dangerous warning |
| 86 | +::: |
| 87 | + |
| 88 | +::: danger STOP |
| 89 | +Danger zone, do not proceed |
| 90 | +::: |
| 91 | + |
| 92 | +Syntax Highlighting in Code Blocks |
| 93 | +--- |
| 94 | +```js |
| 95 | +export default { |
| 96 | + name: 'MyComponent', |
| 97 | + // ... |
| 98 | +} |
| 99 | +``` |
| 100 | + |
| 101 | +```html |
| 102 | +<ul> |
| 103 | + <li v-for="todo in todos" :key="todo.id"> |
| 104 | + {{ todo.text }} |
| 105 | + </li> |
| 106 | +</ul> |
| 107 | +``` |
| 108 | + |
| 109 | +```json{5} |
| 110 | +{ |
| 111 | + "role": { |
| 112 | + "name": "develop", |
| 113 | + "expiredAt": "2021-05-01", |
| 114 | + "description": "Highlighted!", |
| 115 | + "status": true |
| 116 | + } |
| 117 | +} |
| 118 | +``` |
| 119 | + |
| 120 | +```js{4} |
| 121 | +export default { |
| 122 | + data () { |
| 123 | + return { |
| 124 | + msg: 'Highlighted!' |
| 125 | + } |
| 126 | + } |
| 127 | +} |
| 128 | +``` |
| 129 | + |
| 130 | +- Line ranges: for example {5-8}, {3-10}, {10-17} |
| 131 | +- Multiple single lines: for example {4,7,9} |
| 132 | +- Line ranges and single lines: for example {4,7-13,16,23-27,40} |
| 133 | + |
| 134 | +```js{1,4,6-7} |
| 135 | +export default { // Highlighted |
| 136 | + data () { |
| 137 | + return { |
| 138 | + msg: `Highlighted! |
| 139 | + This line isn't highlighted, |
| 140 | + but this and the next 2 are.`, |
| 141 | + motd: 'VitePress is awesome', |
| 142 | + lorem: 'ipsum', |
| 143 | + } |
| 144 | + } |
| 145 | +} |
| 146 | +``` |
| 147 | + |
| 148 | +### Docs |
| 149 | + |
| 150 | +::: v-pre |
| 151 | +`{{ This will be displayed as-is }}` |
| 152 | +::: |
| 153 | + |
| 154 | +### text `<Tag/>` |
| 155 | + |
| 156 | +--- |
| 157 | +head: |
| 158 | + - - meta |
| 159 | + - name: description |
| 160 | + content: hello |
| 161 | + - - meta |
| 162 | + - name: keywords |
| 163 | + content: super duper SEO |
| 164 | +--- |
0 commit comments