From 4c0c6ee42417c42226e68e6cb3aeabcfd0f99cf6 Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Tue, 10 Jan 2023 16:49:48 -0500 Subject: [PATCH] Copy styling from install guide, clean up files --- .vuepress/.config.js.swp | Bin 20480 -> 0 bytes .vuepress/components/Foo/Bar.vue | 15 - .vuepress/components/OtherComponent.vue | 3 - .vuepress/components/demo-component.vue | 15 - .vuepress/config.js | 372 ++++++++++++------------ .vuepress/styles/index.styl | 23 +- .vuepress/styles/palette.styl | 4 +- universal/iservices.md | 4 +- 8 files changed, 213 insertions(+), 223 deletions(-) delete mode 100644 .vuepress/.config.js.swp delete mode 100755 .vuepress/components/Foo/Bar.vue delete mode 100755 .vuepress/components/OtherComponent.vue delete mode 100755 .vuepress/components/demo-component.vue diff --git a/.vuepress/.config.js.swp b/.vuepress/.config.js.swp deleted file mode 100644 index 13d3148b4cd542081b40fa11fb17ef2462cf5580..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20480 zcmeI3eT*Ds9mfYz>QV~YCN!xr8LyC)OJ|3+36j%N+Pm5w_S&X*2b$8fv$N0cPIq=^ zn3=toUapNHz#kGogC;6U1Qik>F)9)T(P;gHMnwOp(fE(3iQ*rYTHl&T>gSo4-PxDB z9=%3QI+Od{?94nbzvufr^UVI9`EBv$J4eUVTMHW%w)ZGX?Y^rI9ePeEtFBj+s!GGRe5%pDR4O}&OAoWmrG(0d>vl z$;(-htnHZsnF5&tnF5&tnF5&tnF5&tmz@HEd!=%mR=*=|dEyaV5g#Y}cgDwC7f5$y ze10(AKOFCq{PAJ7%M{2I$P~yF$P~yF$P~yF$P~yF$P~yF$P~yF_#Y@>loaL3s}yC; zyQ!S_|B3(q+I5QZGk6i6hhs1Uldu<7!!_{cwTf~Y-hgkwGtdMF1PsFORw>HEuov!t zQ5c4^*C@(g;A`+WJOndPgGm^H0$dNPVFjFDsVIMhQ}9zb0nfoha6cS}Ik2G!+h9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tO6@4z$g1bhh|gU`W!*bQ6Zeeh3gJsaEnrnEcTG6gaPG6gaPG6gaPG6gaP zG6gaP`YRw886rP3e|zh9wXWT)SPiX?)84FWM;)ggyY;eUCi*m~k z@7*)8e{}og#OR)#9oNzeKT%rwzhfnA!3C)?>PrSatHP6Vu{Ak~LgD)ymSsG{*L~M<%9xlw z$B(paPb*t;?LK|J;x;vw2+bq2}OSZfoS73{ZVP3lTYoSlyUd>XY#hx*X%7QXQ`^ zJCph79o-AHGf@UV#@u`v2dAr{MvxU>pYF{qSD63jU4H|10<&d=&z? z3qA}w+yLv~9PjSsyZ)cRQ}9K21n!4>U>vrqDuZd40_mKmU4yH?@U&5E?|Gmh%9PS{|1JN2rVxe5s zNVZ((CDJYwY1g{c6>OL5zci5RSQ|(p7FyLN0Wyok+sU-;wE}t6;oJ7JJbKH#c!|!^M_K(0@o&pyR!nrL4|GOssX|KPmdbPL4i UU5b8)21cX?9>0`6+2)l006a7+0RR91 diff --git a/.vuepress/components/Foo/Bar.vue b/.vuepress/components/Foo/Bar.vue deleted file mode 100755 index 7ee8286a..00000000 --- a/.vuepress/components/Foo/Bar.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/.vuepress/components/OtherComponent.vue b/.vuepress/components/OtherComponent.vue deleted file mode 100755 index 1d97c7ca..00000000 --- a/.vuepress/components/OtherComponent.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/.vuepress/components/demo-component.vue b/.vuepress/components/demo-component.vue deleted file mode 100755 index 7d49de79..00000000 --- a/.vuepress/components/demo-component.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/.vuepress/config.js b/.vuepress/config.js index b626a206..08c0a582 100755 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -3,20 +3,7 @@ const { } = require('../package') module.exports = { - /** - * Ref:https://v1.vuepress.vuejs.org/config/#title - */ title: 'OpenCore Post-Install', - /** - * Ref:https://v1.vuepress.vuejs.org/config/#description - */ - description: description, - - /** - * Extra tags to be injected to the page HTML `` - * - * ref:https://v1.vuepress.vuejs.org/config/#head - */ head: [ ['meta', { name: 'theme-color', @@ -33,16 +20,34 @@ module.exports = { ["link", { rel: "'stylesheet", href: "/styles/website.css" - }, ] + },] ], base: '/OpenCore-Post-Install/', + 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, + }); + } + }, - /** - * 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' @@ -51,198 +56,193 @@ module.exports = { themeConfig: { lastUpdated: true, repo: 'https://github.com/dortania/OpenCore-Post-Install', - editLinks: false, - docsDir: 'OpenCore-Post-Install', - editLinkText: '', + editLinks: true, + editLinkText: 'Help us improve this page!', logo: '/homepage.png', nav: [{ text: 'Dortania Guides', items: [{ - text: 'Home Site', - link: 'https://dortania.github.io/' - }, - { - text: 'OpenCore Install Guide', - link: 'https://dortania.github.io/OpenCore-Install-Guide/' - }, - { - text: 'OpenCore Multiboot', - link: 'https://dortania.github.io/OpenCore-Multiboot/' - }, - { - text: 'Getting Started With ACPI', - link: 'https://dortania.github.io/Getting-Started-With-ACPI/' - }, - { - text: 'GPU Buyers Guide', - link: 'https://dortania.github.io/GPU-Buyers-Guide/' - }, - { - text: 'Wireless Buyers Guide', - link: 'https://dortania.github.io/Wireless-Buyers-Guide/' - }, - { - text: 'Anti Buyers Guide', - link: 'https://dortania.github.io/Anti-Hackintosh-Buyers-Guide/' - }, - ] - }, ], - sidebar: [{ - title: 'Introduction', - collapsable: false, - sidebarDepth: 1, - children: [ - '', - ] - - }, - { - title: 'Universal', - collapsable: false, - sidebarDepth: 2, - children: [ - - ['/universal/audio', 'Fixing Audio'], - ['/universal/oc2hdd', 'Booting without USB'], - ['/universal/update', 'Updating OpenCore, kexts and macOS'], - ['/universal/drm', 'Fixing DRM'], - ['/universal/iservices', 'Fixing iServices'], - ['/universal/pm', 'Fixing Power Management'], - ['/universal/sleep', 'Fixing Sleep'], - ] + text: 'Home Site', + link: 'https://dortania.github.io/' }, { - title: 'USB Fixes', - collapsable: false, - sidebarDepth: 1, - children: [ - ['/usb/', 'USB Mapping: Introduction'], - ['/usb/system-preparation', 'System Preparation'], - { - title: 'USB Mapping', - collapsable: true, - sidebarDepth: 2, - children: [ - ['/usb/intel-mapping/intel', 'Intel USB mapping'], - ['/usb/manual/manual', 'Manual Mapping'], - ] - }, - { - title: 'Miscellaneous Fixes', - collapsable: true, - sidebarDepth: 1, - children: [ - ['/usb/misc/power', 'Fixing USB Power'], - ['/usb/misc/shutdown', 'Fixing Shutdown/Restart'], - ['/usb/misc/instant-wake', 'Fixing Instant Wake'], - ['/usb/misc/keyboard', 'Fixing Keyboard Wake Issues'], - ] - }, - ] + text: 'OpenCore Install Guide', + link: 'https://dortania.github.io/OpenCore-Install-Guide/' }, { - title: 'Security', - collapsable: false, - sidebarDepth: 2, - children: [ - ['/universal/security', 'Security and FileVault'], - { - title: '', - collapsable: false, - sidebarDepth: 2, - children: [ - ['/universal/security/filevault', 'FileVault'], - ['/universal/security/vault', 'Vault'], - ['/universal/security/scanpolicy', 'ScanPolicy'], - ['/universal/security/password', 'OpenCore Menu Password'], - ['/universal/security/applesecureboot', 'Apple Secure Boot'], - ] - }, - ] + text: 'OpenCore Multiboot', + link: 'https://dortania.github.io/OpenCore-Multiboot/' }, { - title: 'Laptop Specifics', - collapsable: false, - children: [ - ['/laptop-specific/battery', 'Fixing Battery Read-outs'], - - ] + text: 'Getting Started With ACPI', + link: 'https://dortania.github.io/Getting-Started-With-ACPI/' }, { - title: 'Cosmetics', - collapsable: false, - children: [ - ['/cosmetic/verbose', 'Fixing Resolution and Verbose'], - ['/cosmetic/gui', 'Add GUI and Boot-chime'], - ['/universal/memory', 'Fixing MacPro7,1 Memory Errors'], - ] + text: 'GPU Buyers Guide', + link: 'https://dortania.github.io/GPU-Buyers-Guide/' }, { - title: 'Multiboot', - collapsable: false, - children: [ - ['https://dortania.github.io/OpenCore-Multiboot/', 'OpenCore Multiboot'], - ['/multiboot/bootstrap', 'Setting up LauncherOption'], - ['/multiboot/bootcamp', 'Installing BootCamp'], - ] + text: 'Wireless Buyers Guide', + link: 'https://dortania.github.io/Wireless-Buyers-Guide/' }, { - title: 'Miscellaneous', - collapsable: false, - children: [ - ['/misc/rtc', 'Fixing RTC'], - ['/misc/msr-lock', 'Fixing CFG Lock'], - ['/misc/nvram', 'Emulated NVRAM'], - ] - }, - { - title: 'GPU Patching', - collapsable: false, - children: [ - ['/gpu-patching/', 'In-depth GPU patching'], - { - title: 'Modern Intel iGPU', - collapsable: false, - children: [ - ['/gpu-patching/intel-patching/', 'Intro to iGPU patching'], - ['/gpu-patching/intel-patching/vram', 'VRAM patching'], - ['/gpu-patching/intel-patching/connector', 'Connector-type patching'], - ['/gpu-patching/intel-patching/busid', 'BusID patching'], - ] - }, - { - title: 'Legacy Intel iGPU', - collapsable: false, - children: [ - ['/gpu-patching/legacy-intel/', 'GMA Patching'], - ] - }, - { - title: 'Legacy Nvidia', - collapsable: false, - children: [ - ['/gpu-patching/nvidia-patching/', 'Nvidia Patching'], - ] - }, - ] + text: 'Anti Buyers Guide', + link: 'https://dortania.github.io/Anti-Hackintosh-Buyers-Guide/' }, + ] + },], + sidebar: [{ + title: 'Introduction', + collapsable: false, + sidebarDepth: 1, + children: [ + '', + ] + + }, + { + title: 'Universal', + collapsable: false, + sidebarDepth: 2, + children: [ + + ['/universal/audio', 'Fixing Audio'], + ['/universal/oc2hdd', 'Booting without USB'], + ['/universal/update', 'Updating OpenCore, kexts and macOS'], + ['/universal/drm', 'Fixing DRM'], + ['/universal/iservices', 'Fixing iServices'], + ['/universal/pm', 'Fixing Power Management'], + ['/universal/sleep', 'Fixing Sleep'], + ] + }, + { + title: 'USB Fixes', + collapsable: false, + sidebarDepth: 1, + children: [ + ['/usb/', 'USB Mapping: Introduction'], + ['/usb/system-preparation', 'System Preparation'], + { + title: 'USB Mapping', + collapsable: true, + sidebarDepth: 2, + children: [ + ['/usb/intel-mapping/intel', 'Intel USB mapping'], + ['/usb/manual/manual', 'Manual Mapping'], + ] + }, + { + title: 'Miscellaneous Fixes', + collapsable: true, + sidebarDepth: 1, + children: [ + ['/usb/misc/power', 'Fixing USB Power'], + ['/usb/misc/shutdown', 'Fixing Shutdown/Restart'], + ['/usb/misc/instant-wake', 'Fixing Instant Wake'], + ['/usb/misc/keyboard', 'Fixing Keyboard Wake Issues'], + ] + }, + ] + }, + { + title: 'Security', + collapsable: false, + sidebarDepth: 2, + children: [ + ['/universal/security', 'Security and FileVault'], + { + title: '', + collapsable: false, + sidebarDepth: 2, + children: [ + ['/universal/security/filevault', 'FileVault'], + ['/universal/security/vault', 'Vault'], + ['/universal/security/scanpolicy', 'ScanPolicy'], + ['/universal/security/password', 'OpenCore Menu Password'], + ['/universal/security/applesecureboot', 'Apple Secure Boot'], + ] + }, + ] + }, + { + title: 'Laptop Specifics', + collapsable: false, + children: [ + ['/laptop-specific/battery', 'Fixing Battery Read-outs'], + + ] + }, + { + title: 'Cosmetics', + collapsable: false, + children: [ + ['/cosmetic/verbose', 'Fixing Resolution and Verbose'], + ['/cosmetic/gui', 'Add GUI and Boot-chime'], + ['/universal/memory', 'Fixing MacPro7,1 Memory Errors'], + ] + }, + { + title: 'Multiboot', + collapsable: false, + children: [ + ['https://dortania.github.io/OpenCore-Multiboot/', 'OpenCore Multiboot'], + ['/multiboot/bootstrap', 'Setting up LauncherOption'], + ['/multiboot/bootcamp', 'Installing BootCamp'], + ] + }, + { + title: 'Miscellaneous', + collapsable: false, + children: [ + ['/misc/rtc', 'Fixing RTC'], + ['/misc/msr-lock', 'Fixing CFG Lock'], + ['/misc/nvram', 'Emulated NVRAM'], + ] + }, + { + title: 'GPU Patching', + collapsable: false, + children: [ + ['/gpu-patching/', 'In-depth GPU patching'], + { + title: 'Modern Intel iGPU', + collapsable: false, + children: [ + ['/gpu-patching/intel-patching/', 'Intro to iGPU patching'], + ['/gpu-patching/intel-patching/vram', 'VRAM patching'], + ['/gpu-patching/intel-patching/connector', 'Connector-type patching'], + ['/gpu-patching/intel-patching/busid', 'BusID patching'], + ] + }, + { + title: 'Legacy Intel iGPU', + collapsable: false, + children: [ + ['/gpu-patching/legacy-intel/', 'GMA Patching'], + ] + }, + { + title: 'Legacy Nvidia', + collapsable: false, + children: [ + ['/gpu-patching/nvidia-patching/', 'Nvidia Patching'], + ] + }, + ] + }, ], }, - - /** - * 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)' } - } - ], + }], ] } \ No newline at end of file diff --git a/.vuepress/styles/index.styl b/.vuepress/styles/index.styl index 15b8acd8..ec68275e 100755 --- a/.vuepress/styles/index.styl +++ b/.vuepress/styles/index.styl @@ -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 @@ -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 \ No newline at end of file diff --git a/.vuepress/styles/palette.styl b/.vuepress/styles/palette.styl index 999b1ed0..41d7ebf1 100755 --- a/.vuepress/styles/palette.styl +++ b/.vuepress/styles/palette.styl @@ -20,4 +20,6 @@ $accentColorDark = #30BCD5 $textColorDark = #ccc $bodyBgColorDark = #2d3033 $sideBgColorDark = #363b40 -$badgeTipColorDark = #023e52 \ No newline at end of file +$badgeTipColorDark = #023e52 + +$contentWidth = 900px \ No newline at end of file diff --git a/universal/iservices.md b/universal/iservices.md index 299d2921..62485534 100644 --- a/universal/iservices.md +++ b/universal/iservices.md @@ -59,7 +59,7 @@ Replace `"iMacPro1,1"` below with SystemProductName in your config.plist. Example output: -```console +```bash $ ./macserial \ --model "iMacPro1,1" Warning: arc4random is not available! @@ -107,7 +107,7 @@ For example: Type `uuidgen` in Terminal -```console +```bash $ uuidgen 976AA603-75FC-456B-BC6D-9011BFB4968E ```