Skip to content

Commit 4cfbf1f

Browse files
committed
Update tooling/styles, clean up files
1 parent f84fbe4 commit 4cfbf1f

File tree

9 files changed

+35143
-31329
lines changed

9 files changed

+35143
-31329
lines changed

.vuepress/config.js

Lines changed: 137 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,30 @@ module.exports = {
2424
],
2525
base: '/Getting-Started-With-ACPI/',
2626

27-
watch: {
28-
$page(newPage, oldPage) {
29-
if (newPage.key !== oldPage.key) {
30-
requestAnimationFrame(() => {
31-
if (this.$route.hash) {
32-
const element = document.getElementById(this.$route.hash.slice(1));
27+
watch: {
28+
$page(newPage, oldPage) {
29+
if (newPage.key !== oldPage.key) {
30+
requestAnimationFrame(() => {
31+
if (this.$route.hash) {
32+
const element = document.getElementById(this.$route.hash.slice(1));
3333

34-
if (element && element.scrollIntoView) {
35-
element.scrollIntoView();
36-
}
37-
}
38-
});
39-
}
40-
}
41-
},
42-
43-
markdown: {
44-
extendMarkdown: md => {
45-
md.use(require('markdown-it-multimd-table'), {
46-
rowspan: true,
47-
});
48-
}
49-
},
34+
if (element && element.scrollIntoView) {
35+
element.scrollIntoView();
36+
}
37+
}
38+
});
39+
}
40+
}
41+
},
42+
43+
markdown: {
44+
extendMarkdown: md => {
45+
md.use(require('markdown-it-multimd-table'), {
46+
rowspan: true,
47+
});
48+
}
49+
},
5050

51-
/**
52-
* Theme configuration, here is the default theme configuration for VuePress.
53-
*
54-
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
55-
*/
5651
theme: 'vuepress-theme-succinct',
5752
globalUIComponents: [
5853
'ThemeManager'
@@ -63,10 +58,9 @@ module.exports = {
6358
repo: 'https://github.com/dortania/Getting-Started-With-ACPI',
6459
editLinks: true,
6560
editLinkText: 'Help us improve this page!',
66-
logo: 'homepage.png',
61+
logo: '/homepage.png',
6762
nav: [{
6863
text: 'Dortania Guides',
69-
ariaLabel: 'Language Menu',
7064
items: [{
7165
text: 'Home Site',
7266
link: 'https://dortania.github.io/'
@@ -100,7 +94,7 @@ module.exports = {
10094
sidebarDepth: 1,
10195
children: [
10296
['', 'Getting Started With ACPI'],
103-
['ssdt-platform', 'Choosing the SSDTs'],
97+
['ssdt-platform', 'Choosing the SSDTs'],
10498
]
10599

106100
},
@@ -110,16 +104,16 @@ module.exports = {
110104
sidebarDepth: 2,
111105
children: [
112106
'/ssdt-methods/ssdt-methods',
113-
{
114-
title: 'Methods',
115-
collapsable: false,
116-
sidebarDepth: 2,
117-
children: [
118-
'/ssdt-methods/ssdt-prebuilt',
119-
'/ssdt-methods/ssdt-easy',
120-
'/ssdt-methods/ssdt-long',
121-
]
122-
},
107+
{
108+
title: 'Methods',
109+
collapsable: false,
110+
sidebarDepth: 2,
111+
children: [
112+
'/ssdt-methods/ssdt-prebuilt',
113+
'/ssdt-methods/ssdt-easy',
114+
'/ssdt-methods/ssdt-long',
115+
]
116+
},
123117
]
124118
},
125119
{
@@ -145,25 +139,25 @@ module.exports = {
145139
sidebarDepth: 0,
146140
children: [
147141
['/Laptops/backlight', 'Fixing Backlight'],
148-
{
149-
title: 'Methods',
150-
collapsable: true,
151-
sidebarDepth: 2,
152-
children: [
153-
['/Laptops/backlight-methods/prebuilt', 'Prebuilt'],
154-
['/Laptops/backlight-methods/manual', 'Manual'],
155-
]
156-
},
142+
{
143+
title: 'Methods',
144+
collapsable: true,
145+
sidebarDepth: 2,
146+
children: [
147+
['/Laptops/backlight-methods/prebuilt', 'Prebuilt'],
148+
['/Laptops/backlight-methods/manual', 'Manual'],
149+
]
150+
},
157151
['/Laptops/trackpad', 'Fixing Trackpad'],
158-
{
159-
title: 'Methods',
160-
collapsable: true,
161-
sidebarDepth: 2,
162-
children: [
163-
['/Laptops/trackpad-methods/manual', 'Manual'],
164-
]
165-
},
166-
['/Laptops/laptop-disable', 'Disabling laptop dGPUs'],
152+
{
153+
title: 'Methods',
154+
collapsable: true,
155+
sidebarDepth: 2,
156+
children: [
157+
['/Laptops/trackpad-methods/manual', 'Manual'],
158+
]
159+
},
160+
['/Laptops/laptop-disable', 'Disabling laptop dGPUs'],
167161
]
168162
},
169163
{
@@ -172,92 +166,92 @@ module.exports = {
172166
sidebarDepth: 0,
173167
children: [
174168
['/Universal/ec-fix', 'Embedded Controller'],
175-
{
176-
title: 'Methods',
177-
collapsable: true,
178-
sidebarDepth: 2,
179-
children: [
180-
['/Universal/ec-methods/prebuilt', 'Prebuilt'],
181-
['/Universal/ec-methods/ssdttime', 'SSDTTime'],
182-
['/Universal/ec-methods/manual', 'Manual'],
183-
]
184-
},
169+
{
170+
title: 'Methods',
171+
collapsable: true,
172+
sidebarDepth: 2,
173+
children: [
174+
['/Universal/ec-methods/prebuilt', 'Prebuilt'],
175+
['/Universal/ec-methods/ssdttime', 'SSDTTime'],
176+
['/Universal/ec-methods/manual', 'Manual'],
177+
]
178+
},
185179
['/Universal/plug', 'CPU Power Management'],
186-
{
187-
title: 'Methods',
188-
collapsable: true,
189-
sidebarDepth: 2,
190-
children: [
191-
['/Universal/plug-methods/prebuilt', 'Prebuilt'],
192-
['/Universal/plug-methods/ssdttime', 'SSDTTime'],
193-
['/Universal/plug-methods/manual', 'Manual'],
194-
]
195-
},
180+
{
181+
title: 'Methods',
182+
collapsable: true,
183+
sidebarDepth: 2,
184+
children: [
185+
['/Universal/plug-methods/prebuilt', 'Prebuilt'],
186+
['/Universal/plug-methods/ssdttime', 'SSDTTime'],
187+
['/Universal/plug-methods/manual', 'Manual'],
188+
]
189+
},
196190
['/Universal/awac', 'AWAC vs RTC'],
197-
{
198-
title: 'Methods',
199-
collapsable: true,
200-
sidebarDepth: 2,
201-
children: [
202-
['/Universal/awac-methods/prebuilt', 'Prebuilt'],
203-
['/Universal/awac-methods/ssdttime', 'SSDTTime'],
204-
['/Universal/awac-methods/manual', 'Manual'],
205-
['/Universal/awac-methods/manual-hedt', 'Manual HEDT'],
206-
]
207-
},
191+
{
192+
title: 'Methods',
193+
collapsable: true,
194+
sidebarDepth: 2,
195+
children: [
196+
['/Universal/awac-methods/prebuilt', 'Prebuilt'],
197+
['/Universal/awac-methods/ssdttime', 'SSDTTime'],
198+
['/Universal/awac-methods/manual', 'Manual'],
199+
['/Universal/awac-methods/manual-hedt', 'Manual HEDT'],
200+
]
201+
},
208202
['/Universal/nvram', 'NVRAM PMC'],
209-
{
210-
title: 'Methods',
211-
collapsable: true,
212-
sidebarDepth: 2,
213-
children: [
214-
['/Universal/nvram-methods/prebuilt', 'Prebuilt'],
215-
['/Universal/nvram-methods/ssdttime', 'SSDTTime'],
216-
['/Universal/nvram-methods/manual', 'Manual'],
217-
]
218-
},
203+
{
204+
title: 'Methods',
205+
collapsable: true,
206+
sidebarDepth: 2,
207+
children: [
208+
['/Universal/nvram-methods/prebuilt', 'Prebuilt'],
209+
['/Universal/nvram-methods/ssdttime', 'SSDTTime'],
210+
['/Universal/nvram-methods/manual', 'Manual'],
211+
]
212+
},
219213
['/Universal/rhub', 'USB RHUB'],
220-
{
221-
title: 'Methods',
222-
collapsable: true,
223-
sidebarDepth: 2,
224-
children: [
225-
['/Universal/rhub-methods/prebuilt', 'Prebuilt'],
226-
['/Universal/rhub-methods/ssdttime', 'SSDTTime'],
227-
['/Universal/rhub-methods/manual', 'Manual'],
228-
]
229-
},
214+
{
215+
title: 'Methods',
216+
collapsable: true,
217+
sidebarDepth: 2,
218+
children: [
219+
['/Universal/rhub-methods/prebuilt', 'Prebuilt'],
220+
['/Universal/rhub-methods/ssdttime', 'SSDTTime'],
221+
['/Universal/rhub-methods/manual', 'Manual'],
222+
]
223+
},
230224
['/Universal/imei', 'IMEI'],
231-
{
232-
title: 'Methods',
233-
collapsable: true,
234-
sidebarDepth: 2,
235-
children: [
236-
['/Universal/imei-methods/prebuilt', 'Prebuilt'],
237-
['/Universal/imei-methods/manual', 'Manual'],
238-
]
239-
},
225+
{
226+
title: 'Methods',
227+
collapsable: true,
228+
sidebarDepth: 2,
229+
children: [
230+
['/Universal/imei-methods/prebuilt', 'Prebuilt'],
231+
['/Universal/imei-methods/manual', 'Manual'],
232+
]
233+
},
240234
['/Universal/unc0', 'Fixing Uncore Bridge'],
241-
{
242-
title: 'Methods',
243-
collapsable: true,
244-
sidebarDepth: 2,
245-
children: [
246-
['/Universal/unc0-methods/prebuilt', 'Prebuilt'],
247-
['/Universal/unc0-methods/manual', 'Manual'],
248-
]
249-
},
235+
{
236+
title: 'Methods',
237+
collapsable: true,
238+
sidebarDepth: 2,
239+
children: [
240+
['/Universal/unc0-methods/prebuilt', 'Prebuilt'],
241+
['/Universal/unc0-methods/manual', 'Manual'],
242+
]
243+
},
250244
['/Universal/smbus', 'Fixing SMBus Support'],
251-
{
252-
title: 'Methods',
253-
collapsable: true,
254-
sidebarDepth: 2,
255-
children: [
256-
['/Universal/smbus-methods/manual', 'Manual'],
257-
]
258-
},
245+
{
246+
title: 'Methods',
247+
collapsable: true,
248+
sidebarDepth: 2,
249+
children: [
250+
['/Universal/smbus-methods/manual', 'Manual'],
251+
]
252+
},
259253
['/Universal/irq', 'IRQ Fix'],
260-
['/Universal/spoof', 'GPU Spoof'],
254+
['/Universal/spoof', 'GPU Spoof'],
261255
]
262256
},
263257
{
@@ -274,23 +268,21 @@ module.exports = {
274268
sidebarDepth: 1,
275269
children: [
276270
['troubleshooting', 'Troubleshooting'],
277-
['CONTRIBUTING', 'Contributing'],
271+
['CONTRIBUTING', 'Contributing'],
278272
]
279273
},
280-
],
274+
],
281275
},
282-
/**
283-
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
284-
*/
285276
plugins: [
286-
'@vuepress/plugin-back-to-top',
277+
'@vuepress/back-to-top',
287278
'vuepress-plugin-smooth-scroll',
288-
['vuepress-plugin-medium-zoom',
279+
'vuepress-plugin-fulltext-search',
280+
['@vuepress/medium-zoom',
289281
{
290-
selector: "img",
282+
selector: ".theme-succinct-content :not(a) > img",
291283
options: {
292284
background: 'var(--bodyBgColor)'
293285
}
294286
}],
295287
]
296-
}
288+
}
-175 KB
Binary file not shown.
-125 KB
Binary file not shown.

.vuepress/styles/index.styl

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ div[class*="language-"]
2525
margin-top 0
2626

2727
html {
28-
overflow: scroll;
28+
overflow-y: scroll;
29+
overflow-x: hidden;
30+
background-color: unset;
2931
}
3032
::-webkit-scrollbar {
3133
width 0px
@@ -45,3 +47,22 @@ tr
4547
background-color var(--sideBgColor)!important
4648
box-shadow 0px 0px 2px var(--bodyBgColor)
4749
right -12%!important
50+
51+
52+
@media (min-width: 1000px)
53+
.theme-succinct-content:not(.custom)
54+
max-width 70%
55+
56+
.search-box .suggestion a .suggestion-row .page-title
57+
border-color var(--borderColor) !important
58+
background-color: var(--sideBgColor) !important
59+
60+
.search-box .suggestion a .suggestion-row .suggestion-content
61+
border-color var(--borderColor) !important
62+
63+
.search-box .suggestion a .parent-page-title
64+
background-color: var(--bodyBgColor) !important
65+
color: var(--accentColor) !important
66+
67+
.search-box .suggestion.focused a
68+
color: var(--navItemHoverColor) !important

.vuepress/styles/palette.styl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $accentColorDark = #30BCD5
2020
$textColorDark = #ccc
2121
$bodyBgColorDark = #2d3033
2222
$sideBgColorDark = #363b40
23-
$badgeTipColorDark = #023e52
23+
$badgeTipColorDark = #023e52
24+
25+
$contentWidth = 900px

0 commit comments

Comments
 (0)