Skip to content

Commit

Permalink
Update tooling/styles, clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Jan 10, 2023
1 parent f84fbe4 commit 4cfbf1f
Show file tree
Hide file tree
Showing 9 changed files with 35,143 additions and 31,329 deletions.
282 changes: 137 additions & 145 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,30 @@ module.exports = {
],
base: '/Getting-Started-With-ACPI/',

watch: {
$page(newPage, oldPage) {
if (newPage.key !== oldPage.key) {
requestAnimationFrame(() => {
if (this.$route.hash) {
const element = document.getElementById(this.$route.hash.slice(1));
watch: {
$page(newPage, oldPage) {
if (newPage.key !== oldPage.key) {
requestAnimationFrame(() => {
if (this.$route.hash) {
const element = document.getElementById(this.$route.hash.slice(1));

if (element && element.scrollIntoView) {
element.scrollIntoView();
}
}
});
}
}
},
markdown: {
extendMarkdown: md => {
md.use(require('markdown-it-multimd-table'), {
rowspan: true,
});
}
},
if (element && element.scrollIntoView) {
element.scrollIntoView();
}
}
});
}
}
},

markdown: {
extendMarkdown: md => {
md.use(require('markdown-it-multimd-table'), {
rowspan: true,
});
}
},

/**
* Theme configuration, here is the default theme configuration for VuePress.
*
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
theme: 'vuepress-theme-succinct',
globalUIComponents: [
'ThemeManager'
Expand All @@ -63,10 +58,9 @@ module.exports = {
repo: 'https://github.com/dortania/Getting-Started-With-ACPI',
editLinks: true,
editLinkText: 'Help us improve this page!',
logo: 'homepage.png',
logo: '/homepage.png',
nav: [{
text: 'Dortania Guides',
ariaLabel: 'Language Menu',
items: [{
text: 'Home Site',
link: 'https://dortania.github.io/'
Expand Down Expand Up @@ -100,7 +94,7 @@ module.exports = {
sidebarDepth: 1,
children: [
['', 'Getting Started With ACPI'],
['ssdt-platform', 'Choosing the SSDTs'],
['ssdt-platform', 'Choosing the SSDTs'],
]

},
Expand All @@ -110,16 +104,16 @@ module.exports = {
sidebarDepth: 2,
children: [
'/ssdt-methods/ssdt-methods',
{
title: 'Methods',
collapsable: false,
sidebarDepth: 2,
children: [
'/ssdt-methods/ssdt-prebuilt',
'/ssdt-methods/ssdt-easy',
'/ssdt-methods/ssdt-long',
]
},
{
title: 'Methods',
collapsable: false,
sidebarDepth: 2,
children: [
'/ssdt-methods/ssdt-prebuilt',
'/ssdt-methods/ssdt-easy',
'/ssdt-methods/ssdt-long',
]
},
]
},
{
Expand All @@ -145,25 +139,25 @@ module.exports = {
sidebarDepth: 0,
children: [
['/Laptops/backlight', 'Fixing Backlight'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Laptops/backlight-methods/prebuilt', 'Prebuilt'],
['/Laptops/backlight-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Laptops/backlight-methods/prebuilt', 'Prebuilt'],
['/Laptops/backlight-methods/manual', 'Manual'],
]
},
['/Laptops/trackpad', 'Fixing Trackpad'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Laptops/trackpad-methods/manual', 'Manual'],
]
},
['/Laptops/laptop-disable', 'Disabling laptop dGPUs'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Laptops/trackpad-methods/manual', 'Manual'],
]
},
['/Laptops/laptop-disable', 'Disabling laptop dGPUs'],
]
},
{
Expand All @@ -172,92 +166,92 @@ module.exports = {
sidebarDepth: 0,
children: [
['/Universal/ec-fix', 'Embedded Controller'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/ec-methods/prebuilt', 'Prebuilt'],
['/Universal/ec-methods/ssdttime', 'SSDTTime'],
['/Universal/ec-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/ec-methods/prebuilt', 'Prebuilt'],
['/Universal/ec-methods/ssdttime', 'SSDTTime'],
['/Universal/ec-methods/manual', 'Manual'],
]
},
['/Universal/plug', 'CPU Power Management'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/plug-methods/prebuilt', 'Prebuilt'],
['/Universal/plug-methods/ssdttime', 'SSDTTime'],
['/Universal/plug-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/plug-methods/prebuilt', 'Prebuilt'],
['/Universal/plug-methods/ssdttime', 'SSDTTime'],
['/Universal/plug-methods/manual', 'Manual'],
]
},
['/Universal/awac', 'AWAC vs RTC'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/awac-methods/prebuilt', 'Prebuilt'],
['/Universal/awac-methods/ssdttime', 'SSDTTime'],
['/Universal/awac-methods/manual', 'Manual'],
['/Universal/awac-methods/manual-hedt', 'Manual HEDT'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/awac-methods/prebuilt', 'Prebuilt'],
['/Universal/awac-methods/ssdttime', 'SSDTTime'],
['/Universal/awac-methods/manual', 'Manual'],
['/Universal/awac-methods/manual-hedt', 'Manual HEDT'],
]
},
['/Universal/nvram', 'NVRAM PMC'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/nvram-methods/prebuilt', 'Prebuilt'],
['/Universal/nvram-methods/ssdttime', 'SSDTTime'],
['/Universal/nvram-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/nvram-methods/prebuilt', 'Prebuilt'],
['/Universal/nvram-methods/ssdttime', 'SSDTTime'],
['/Universal/nvram-methods/manual', 'Manual'],
]
},
['/Universal/rhub', 'USB RHUB'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/rhub-methods/prebuilt', 'Prebuilt'],
['/Universal/rhub-methods/ssdttime', 'SSDTTime'],
['/Universal/rhub-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/rhub-methods/prebuilt', 'Prebuilt'],
['/Universal/rhub-methods/ssdttime', 'SSDTTime'],
['/Universal/rhub-methods/manual', 'Manual'],
]
},
['/Universal/imei', 'IMEI'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/imei-methods/prebuilt', 'Prebuilt'],
['/Universal/imei-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/imei-methods/prebuilt', 'Prebuilt'],
['/Universal/imei-methods/manual', 'Manual'],
]
},
['/Universal/unc0', 'Fixing Uncore Bridge'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/unc0-methods/prebuilt', 'Prebuilt'],
['/Universal/unc0-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/unc0-methods/prebuilt', 'Prebuilt'],
['/Universal/unc0-methods/manual', 'Manual'],
]
},
['/Universal/smbus', 'Fixing SMBus Support'],
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/smbus-methods/manual', 'Manual'],
]
},
{
title: 'Methods',
collapsable: true,
sidebarDepth: 2,
children: [
['/Universal/smbus-methods/manual', 'Manual'],
]
},
['/Universal/irq', 'IRQ Fix'],
['/Universal/spoof', 'GPU Spoof'],
['/Universal/spoof', 'GPU Spoof'],
]
},
{
Expand All @@ -274,23 +268,21 @@ module.exports = {
sidebarDepth: 1,
children: [
['troubleshooting', 'Troubleshooting'],
['CONTRIBUTING', 'Contributing'],
['CONTRIBUTING', 'Contributing'],
]
},
],
],
},
/**
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/back-to-top',
'vuepress-plugin-smooth-scroll',
['vuepress-plugin-medium-zoom',
'vuepress-plugin-fulltext-search',
['@vuepress/medium-zoom',
{
selector: "img",
selector: ".theme-succinct-content :not(a) > img",
options: {
background: 'var(--bodyBgColor)'
}
}],
]
}
}
Binary file not shown.
Binary file not shown.
23 changes: 22 additions & 1 deletion .vuepress/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ div[class*="language-"]
margin-top 0

html {
overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;
background-color: unset;
}
::-webkit-scrollbar {
width 0px
Expand All @@ -45,3 +47,22 @@ tr
background-color var(--sideBgColor)!important
box-shadow 0px 0px 2px var(--bodyBgColor)
right -12%!important


@media (min-width: 1000px)
.theme-succinct-content:not(.custom)
max-width 70%

.search-box .suggestion a .suggestion-row .page-title
border-color var(--borderColor) !important
background-color: var(--sideBgColor) !important

.search-box .suggestion a .suggestion-row .suggestion-content
border-color var(--borderColor) !important

.search-box .suggestion a .parent-page-title
background-color: var(--bodyBgColor) !important
color: var(--accentColor) !important

.search-box .suggestion.focused a
color: var(--navItemHoverColor) !important
4 changes: 3 additions & 1 deletion .vuepress/styles/palette.styl
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ $accentColorDark = #30BCD5
$textColorDark = #ccc
$bodyBgColorDark = #2d3033
$sideBgColorDark = #363b40
$badgeTipColorDark = #023e52
$badgeTipColorDark = #023e52

$contentWidth = 900px
Loading

0 comments on commit 4cfbf1f

Please sign in to comment.