@@ -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+ }
0 commit comments