mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
Code Groups
::: code-group
{{ 1 + 1 }}
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<template>
<div>
Some *custom* layout
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet mi in nunc faucibus consequat.
<slot />
</div>
</template>
export default {
name: 'MyComponent'
// ...
}
<template>
<div>
Some *custom* layout
<slot />
</div>
</template>
:::
-
in list
-
::: code-group
printf('111')
import torch as th print("Hello world")
import torch as th print("Hello world")
:::
.
├─ index.md
├─ foo
│ ├─ index.md
│ ├─ one.md
│ └─ two.md
└─ bar
├─ index.md
├─ three.md
└─ four.md
-
[Home](/) <!-- sends the user to the root index.md --> [foo](/foo/) <!-- sends the user to index.html of directory foo --> [foo heading](./#heading) <!-- anchors user to a heading in the foo index file --> [bar - three](../bar/three) <!-- you can omit extention --> [bar - three](../bar/three.md) <!-- you can append .md --> [bar - four](../bar/four.html) <!-- or you can append .html -->