Skip to content

Commit 066f04d

Browse files
authored
refactor(docs): use @nuxt/content (#465)
* refactor: initial refactor to `@nuxt/content` * refactor: categorise items and port features across * fix: update gitignore * ci: update build directory * fix: make icon absolute * fix: css selector * fix: set default active code block * fix: localisation * fix: update theme colour * fix: use native docs colour option * fix: remove `//` * fix: add missing pt translation and generate all locales
1 parent 6488179 commit 066f04d

File tree

117 files changed

+6257
-3634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+6257
-3634
lines changed

docs/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
examples
1+
static/sw.js

docs/.vuepress/config.js

-244
This file was deleted.

docs/.vuepress/styles/index.styl

-5
This file was deleted.

docs/.vuepress/styles/palette.styl

-5
This file was deleted.

docs/assets/custom.css

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
li a[href="/"],
2+
li a[href="/es"],
3+
li a[href="/ja"],
4+
li a[href="/pt"],
5+
li a[href="/zh-Hant"],
6+
li a[href="/zh-Hans"] {
7+
@apply -ml-2 mb-2 text-gray-500 uppercase tracking-wider font-bold text-sm;
8+
9+
@screen lg {
10+
@apply text-xs;
11+
}
12+
}
13+
14+
aside > div > ul {
15+
@screen lg {
16+
padding-left: 0.5rem !important;
17+
}
18+
}
19+
20+
.prose pre code::after {
21+
@apply absolute;
22+
}
23+
24+
.prose img[src*="img.shields.io"] {
25+
display: inline !important;
26+
}
27+
.tabs-component {
28+
margin: 4em 0;
29+
}
30+
31+
.tabs-component-tabs {
32+
z-index: 10;
33+
border: solid 1px #ddd;
34+
border-radius: 6px;
35+
margin-bottom: 0 !important;
36+
margin-top: 0;
37+
}
38+
39+
@media (min-width: 700px) {
40+
.tabs-component-tabs {
41+
border: 0;
42+
align-items: stretch;
43+
display: flex;
44+
justify-content: flex-start;
45+
margin-bottom: -1px;
46+
}
47+
}
48+
49+
.tabs-component-tab {
50+
color: #999 !important;
51+
font-size: 14px;
52+
font-weight: 600;
53+
padding-left: 0 !important;
54+
margin-right: 0;
55+
margin-top: 0 !important;
56+
margin-bottom: 0 !important;
57+
list-style: none;
58+
59+
}
60+
.tabs-component-tab::before {
61+
display: none;
62+
}
63+
64+
.tabs-component-tab:not(:last-child) {
65+
border-bottom: dotted 1px #ddd;
66+
}
67+
68+
.tabs-component-tab:hover {
69+
color: #666 !important;
70+
}
71+
72+
.tabs-component-tab.is-active {
73+
color: #000 !important;
74+
}
75+
76+
.tabs-component-tab.is-disabled * {
77+
color: #cdcdcd !important;
78+
cursor: not-allowed !important;
79+
}
80+
81+
@media (min-width: 700px) {
82+
.tabs-component-tab {
83+
background-color: #fff;
84+
border: solid 1px #ddd;
85+
border-radius: 3px 3px 0 0;
86+
margin-right: .5em;
87+
transform: translateY(-3px);
88+
transition: transform .3s ease;
89+
}
90+
91+
.tabs-component-tab.is-active {
92+
border-bottom: solid 1px #fff;
93+
z-index: 2;
94+
transform: translateY(0);
95+
}
96+
}
97+
98+
.tabs-component-tab-a {
99+
align-items: center;
100+
color: inherit !important;
101+
text-decoration: none !important;
102+
display: flex;
103+
padding: .75em 1em;
104+
text-decoration: none;
105+
}
106+
107+
.tabs-component-panels {
108+
margin-top: -3px;
109+
padding: 4em 0;
110+
z-index: 1
111+
}
112+
113+
@media (min-width: 700px) {
114+
.tabs-component-panels {
115+
border-top-left-radius: 0;
116+
background-color: #fff;
117+
border: solid 1px #ddd;
118+
border-radius: 0 6px 6px 6px;
119+
box-shadow: 0 0 10px rgba(0, 0, 0, .05);
120+
padding: 4em 2em;
121+
}
122+
}
File renamed without changes.

0 commit comments

Comments
 (0)