File tree 9 files changed +107
-7
lines changed
9 files changed +107
-7
lines changed Original file line number Diff line number Diff line change 5
5
Section Header
6
6
</h3 >
7
7
8
- <nuxt-link to =" # " class =" flex items-center pb-3 pr-5 text-gray-600 hover:text-gray-700" >
8
+ <nuxt-link to =" doc-example " class =" flex items-center pb-3 pr-5 text-gray-600 hover:text-gray-700" >
9
9
Link 1
10
10
</nuxt-link >
11
11
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" fixed flex flex-shrink-0 h-16 w-full max-w-6xl bg-white border-b-2 border-gray-100" >
2
+ <div class =" fixed z-10 flex flex-shrink-0 h-16 w-full max-w-6xl bg-white border-b-2 border-gray-100" >
3
3
<!-- TODO Add mobile friendly header -->
4
- <button class =" md:hidden p -6" @click =" showMobileMenu" >
4
+ <button class =" md:hidden items-center px -6" @click =" showMobileMenu" >
5
5
<svg class =" h-6 w-6" xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor" >
6
6
<path stroke-linecap =" round" stroke-linejoin =" round" stroke-width =" 2" d =" M4 6h16M4 12h16M4 18h16" />
7
7
</svg >
17
17
</div >
18
18
19
19
<!-- icons -->
20
- <div >
20
+ <a href = " / " >
21
21
<GlobeIcon class =" mr-1 h-5 w-5 text-gray-700 hover:text-gray-800" />
22
- </div >
22
+ </a >
23
23
24
24
25
25
</div >
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : ' Doc Example 1'
3
+ description : ' Documentation Example one'
4
+ image : ' '
5
+ video : ' '
6
+ ---
7
+
8
+ ## Header 2
9
+
10
+ ### Header 3
11
+
12
+ [ Google] ( https://google.com )
13
+
14
+ ![ this is an image] ( /images/cleavr_logo.png )
15
+
16
+ 1 . This
17
+ 2 . is
18
+ 3 . an
19
+ 4 . ordered
20
+ 5 . list
21
+
22
+ - this
23
+ - is
24
+ - an
25
+ - unordered
26
+ - list
Original file line number Diff line number Diff line change 13
13
<MainHeader @showMobileMenu =" showMobileMenu = true" v-show =" !showMobileMenu" />
14
14
<div class =" h-screen flex" >
15
15
<DesktopSidebar class =" hidden md:flex" />
16
- <Nuxt />
16
+ <Nuxt class = " mt-24 px-6 " />
17
17
</div >
18
18
</div >
19
19
</template >
20
20
21
21
<script >
22
22
export default {
23
+ transition: {
24
+ name: ' page' ,
25
+ mode: ' out-in'
26
+ },
27
+ watch: {
28
+ ' $route' () {
29
+ this .showMobileMenu = false
30
+ }
31
+ },
23
32
data () {
24
33
return {
25
34
showMobileMenu: false
@@ -29,5 +38,16 @@ export default {
29
38
</script >
30
39
31
40
<style >
41
+ .prose code {
42
+ color : orange ;
43
+ }
44
+ .prose a {
45
+ color : #2563EB ;
46
+ text-decoration : none ;
47
+ }
32
48
49
+ .prose a :hover {
50
+ color : #3B82F6 ;
51
+ text-decoration : none ;
52
+ }
33
53
</style >
Original file line number Diff line number Diff line change 11
11
"dependencies" : {
12
12
"@nuxt/content" : " ^1.11.1" ,
13
13
"core-js" : " ^3.6.5" ,
14
- "nuxt" : " ^2.14.6"
14
+ "nuxt" : " ^2.14.6" ,
15
+ "@tailwindcss/typography" : " ^0.2.0"
15
16
},
16
17
"devDependencies" : {
17
18
"@nuxtjs/tailwindcss" : " ^3.1.0"
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >
3
+ <h1 class =" text-3xl font-semibold text-gray-9000 pb-8" >
4
+ {{ doc.title }}
5
+ </h1 >
6
+ <NuxtContent :document =" doc" class =" prose" />
7
+ </div >
8
+ </template >
9
+
10
+ <script >
11
+
12
+ export default {
13
+ transition: {
14
+ name: ' page' ,
15
+ mode: ' out-in'
16
+ },
17
+ async asyncData ( { $content, params } ) {
18
+ const doc = await $content (' documentation' , params .doc ).fetch ()
19
+ return { doc }
20
+ }
21
+
22
+ }
23
+ </script >
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ purge : [ ] ,
3
+ darkMode : false ,
4
+ theme : {
5
+ typography : {
6
+ default : {
7
+ css : {
8
+ 'code::before' : {
9
+ content : '""' ,
10
+ } ,
11
+ 'code::after' : {
12
+ content : '""' ,
13
+ } ,
14
+ } ,
15
+ } ,
16
+ } ,
17
+ extend : { } ,
18
+ } ,
19
+ variants : {
20
+ extend : { } ,
21
+ } ,
22
+ plugins : [
23
+ require ( `@tailwindcss/typography` )
24
+ ]
25
+ }
Original file line number Diff line number Diff line change 1308
1308
mustache "^2.3.0"
1309
1309
stack-trace "0.0.10"
1310
1310
1311
+ " @tailwindcss/typography@^0.2.0 " :
1312
+ version "0.2.0"
1313
+ resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.2.0.tgz#b597c83502e3c3c6641a8aaabda223cd494ab349"
1314
+ integrity sha512-aPgMH+CjQiScLZculoDNOQUrrK2ktkbl3D6uCLYp1jgYRlNDrMONu9nMu8LfwAeetYNpVNeIGx7WzHSu0kvECg==
1315
+
1311
1316
" @types/anymatch@* " :
1312
1317
version "1.3.1"
1313
1318
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
You can’t perform that action at this time.
0 commit comments