This repository was archived by the owner on May 1, 2025. It is now read-only.
File tree 3 files changed +15
-2
lines changed 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,14 @@ The development server will be running at [http://localhost:3000](http://localho
45
45
- [x] Allow each guide to toggle features
46
46
- [ ] Allow each guide to configure file filter
47
47
- [ ] Solution for each guide
48
- - [ ] A button of "Edit this page"
48
+ - [x ] A button of "Edit this page"
49
49
- [ ] Verification for tutorial tasks
50
50
- [ ] Search feature
51
51
- [ ] Embedded Nuxt Docs (update CORS headers)
52
52
- [ ] Command K System
53
53
- [ ] About Page
54
54
- [ ] Welcome Screen
55
+ - [ ] Try https://ark-ui.com/docs/components/splitter
55
56
- [x] Show release time for the playground
56
57
- [x] Show Nuxt and Vue versions from the container
57
58
- [x] Custom bundler for templates (replaces ` import.meta.glob ` , create static virtual modules)
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ const { page } = useContent ()
2
3
4
+ const sourceUrl = computed (() => ` https://github.com/nuxt/learn.nuxt.com/edit/main/content/${page .value ._file } ` )
3
5
</script >
4
6
5
7
<template >
6
- <div h-full grid =" ~ rows-[min-content_1fr ]" >
8
+ <div h-full grid =" ~ rows-[min-content_1fr_min-content ]" >
7
9
<div flex =" ~ gap-2 items-center" border =" b base dashed" bg-faded px4 py2 >
8
10
<div i-ph-book-duotone />
9
11
<span text-sm >Guide</span >
10
12
</div >
11
13
<article class =" max-w-none prose" of-auto p6 >
12
14
<ContentDoc />
13
15
</article >
16
+ <div border =" t base dashed" px6 py2 >
17
+ <NuxtLink
18
+ :to =" sourceUrl" target =" _blank"
19
+ flex =" ~ items-center gap-2" op50 hover =" text-primary op100"
20
+ >
21
+ <div i-ph-note-pencil-duotone />
22
+ Edit this page
23
+ </NuxtLink >
24
+ </div >
14
25
</div >
15
26
</template >
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export default defineNuxtConfig({
67
67
defineModel : true ,
68
68
} ,
69
69
content : {
70
+ documentDriven : true ,
70
71
highlight : {
71
72
theme : {
72
73
default : 'vitesse-light' ,
You can’t perform that action at this time.
0 commit comments