diff --git a/.vuepress/.config.js.swp b/.vuepress/.config.js.swp deleted file mode 100644 index 13d3148b..00000000 Binary files a/.vuepress/.config.js.swp and /dev/null differ 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 ```