mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-11 16:27:19 +10:00
Sync docs config with other guides
This commit is contained in:
48
.github/workflows/build-site.yml
vendored
48
.github/workflows/build-site.yml
vendored
@@ -11,26 +11,34 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository_owner == 'dortania'
|
if: github.repository_owner == 'dortania'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-node@v4
|
- name: Checkout
|
||||||
with:
|
|
||||||
node-version: '12'
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
submodules: "recursive"
|
||||||
persist-credentials: false
|
- name: Setup Node
|
||||||
submodules: 'recursive'
|
uses: actions/setup-node@v4
|
||||||
- name: Install
|
|
||||||
run: npm install -d
|
|
||||||
working-directory: 'docs'
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
working-directory: 'docs'
|
|
||||||
- name: Deploy
|
|
||||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main'}}
|
|
||||||
with:
|
with:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
node-version: "22"
|
||||||
BRANCH: gh-pages
|
cache: "yarn"
|
||||||
FOLDER: docs/.vuepress/dist/
|
cache-dependency-path: ./yarn.lock
|
||||||
CLEAN: true
|
- name: Install Dependencies
|
||||||
|
run: yarn install --frozen-lockfile
|
||||||
|
working-directory: docs
|
||||||
|
- name: Build
|
||||||
|
run: yarn run build
|
||||||
|
working-directory: docs
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: docs/.vuepress/dist/
|
||||||
|
deploy:
|
||||||
|
if: ${{ github.repository_owner == 'dortania' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,7 +17,6 @@ __pycache__/
|
|||||||
*$py.class
|
*$py.class
|
||||||
/docs/.vuepress/dist
|
/docs/.vuepress/dist
|
||||||
/docs/.vuepress/.config.js.swp
|
/docs/.vuepress/.config.js.swp
|
||||||
/docs/yarn.lock
|
|
||||||
/docs/yarn-error.log
|
/docs/yarn-error.log
|
||||||
/docs/node_modules/
|
/docs/node_modules/
|
||||||
/payloads/List.txt
|
/payloads/List.txt
|
||||||
|
|||||||
@@ -10,5 +10,6 @@
|
|||||||
"single-title": false,
|
"single-title": false,
|
||||||
"ul-style": {
|
"ul-style": {
|
||||||
"style": "asterisk"
|
"style": "asterisk"
|
||||||
}
|
},
|
||||||
|
"link-fragments": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,29 +24,29 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
base: '/OpenCore-Legacy-Patcher/',
|
base: '/OpenCore-Legacy-Patcher/',
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
$page(newPage, oldPage) {
|
$page(newPage, oldPage) {
|
||||||
if (newPage.key !== oldPage.key) {
|
if (newPage.key !== oldPage.key) {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
if (this.$route.hash) {
|
if (this.$route.hash) {
|
||||||
const element = document.getElementById(this.$route.hash.slice(1));
|
const element = document.getElementById(this.$route.hash.slice(1));
|
||||||
|
|
||||||
if (element && element.scrollIntoView) {
|
if (element && element.scrollIntoView) {
|
||||||
element.scrollIntoView();
|
element.scrollIntoView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
markdown: {
|
markdown: {
|
||||||
extendMarkdown: md => {
|
extendMarkdown: md => {
|
||||||
md.use(require('markdown-it-multimd-table'), {
|
md.use(require('markdown-it-multimd-table'), {
|
||||||
rowspan: true,
|
rowspan: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
theme: 'vuepress-theme-succinct',
|
theme: 'vuepress-theme-succinct',
|
||||||
globalUIComponents: [
|
globalUIComponents: [
|
||||||
@@ -56,10 +56,10 @@ module.exports = {
|
|||||||
themeConfig: {
|
themeConfig: {
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
repo: 'https://github.com/dortania/OpenCore-Legacy-Patcher/',
|
repo: 'https://github.com/dortania/OpenCore-Legacy-Patcher/',
|
||||||
docsDir: 'docs',
|
docsDir: 'docs',
|
||||||
docsBranch: 'main',
|
docsBranch: 'main',
|
||||||
editLinks: true,
|
editLinks: true,
|
||||||
editLinkText: 'Help us improve this page!',
|
editLinkText: 'Help us improve this page!',
|
||||||
logo: 'homepage.png',
|
logo: 'homepage.png',
|
||||||
|
|
||||||
sidebar: [{
|
sidebar: [{
|
||||||
@@ -67,8 +67,8 @@ module.exports = {
|
|||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
'START',
|
'START',
|
||||||
'MODELS',
|
'MODELS',
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -78,7 +78,7 @@ module.exports = {
|
|||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
'INSTALLER',
|
'INSTALLER',
|
||||||
'BUILD',
|
'BUILD',
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -87,17 +87,17 @@ module.exports = {
|
|||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
'BOOT',
|
'BOOT',
|
||||||
'POST-INSTALL',
|
'POST-INSTALL',
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'macOS Sequoia',
|
title: 'macOS Sequoia',
|
||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
['SEQUOIA-DROP', 'macOS Sequoia Support'],
|
['SEQUOIA-DROP', 'macOS Sequoia Support'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -105,25 +105,25 @@ module.exports = {
|
|||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
['SONOMA-DROP', 'macOS Sonoma Support'],
|
['SONOMA-DROP', 'macOS Sonoma Support'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: 'macOS Ventura',
|
title: 'macOS Ventura',
|
||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
['VENTURA-DROP', 'macOS Ventura Support'],
|
['VENTURA-DROP', 'macOS Ventura Support'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: 'macOS Monterey',
|
title: 'macOS Monterey',
|
||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
['MONTEREY-DROP', 'macOS Monterey Support'],
|
['MONTEREY-DROP', 'macOS Monterey Support'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -131,15 +131,15 @@ module.exports = {
|
|||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
'ACCEL',
|
'ACCEL',
|
||||||
'TROUBLESHOOTING',
|
'TROUBLESHOOTING',
|
||||||
'DEBUG',
|
'DEBUG',
|
||||||
'UPDATE',
|
'UPDATE',
|
||||||
'UNINSTALL',
|
'UNINSTALL',
|
||||||
'ICNS',
|
'ICNS',
|
||||||
'WINDOWS',
|
'WINDOWS',
|
||||||
'UNIVERSALCONTROL',
|
'UNIVERSALCONTROL',
|
||||||
'PROCESS',
|
'PROCESS',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -147,8 +147,8 @@ module.exports = {
|
|||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
'DONATE',
|
'DONATE',
|
||||||
'LICENSE',
|
'LICENSE',
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -157,23 +157,22 @@ module.exports = {
|
|||||||
collapsable: false,
|
collapsable: false,
|
||||||
sidebarDepth: 1,
|
sidebarDepth: 1,
|
||||||
children: [
|
children: [
|
||||||
'ISSUES-HOLD',
|
'ISSUES-HOLD',
|
||||||
'TERMS',
|
'TERMS',
|
||||||
'HOW',
|
'HOW',
|
||||||
'PATCHEXPLAIN',
|
'PATCHEXPLAIN',
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'@vuepress/plugin-back-to-top',
|
'@vuepress/back-to-top',
|
||||||
'vuepress-plugin-smooth-scroll',
|
'vuepress-plugin-smooth-scroll',
|
||||||
'vuepress-plugin-fulltext-search',
|
'vuepress-plugin-fulltext-search',
|
||||||
['flexsearch'],
|
['@vuepress/medium-zoom',
|
||||||
['vuepress-plugin-medium-zoom',
|
|
||||||
{
|
{
|
||||||
selector: "img",
|
selector: ".theme-succinct-content :not(a) > img",
|
||||||
options: {
|
options: {
|
||||||
background: 'var(--bodyBgColor)'
|
background: 'var(--bodyBgColor)'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,3 +47,22 @@ tr
|
|||||||
background-color var(--sideBgColor)!important
|
background-color var(--sideBgColor)!important
|
||||||
box-shadow 0px 0px 2px var(--bodyBgColor)
|
box-shadow 0px 0px 2px var(--bodyBgColor)
|
||||||
right -12%!important
|
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
|
||||||
@@ -22,4 +22,4 @@ $bodyBgColorDark = #2d3033
|
|||||||
$sideBgColorDark = #363b40
|
$sideBgColorDark = #363b40
|
||||||
$badgeTipColorDark = #023e52
|
$badgeTipColorDark = #023e52
|
||||||
|
|
||||||
$contentWidth = 900px
|
$contentWidth = 900px
|
||||||
34543
docs/package-lock.json
generated
34543
docs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -33,19 +33,17 @@
|
|||||||
},
|
},
|
||||||
"license": "CC-BY-NC-SA-4.0",
|
"license": "CC-BY-NC-SA-4.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/plugin-back-to-top": "^1.9.10",
|
"@vuepress/plugin-back-to-top": "^1.9.8",
|
||||||
"markdown-it-multimd-table": "^4.2.3",
|
"@vuepress/plugin-medium-zoom": "^1.9.8",
|
||||||
"markdown-link-check": "^3.11.2",
|
"markdown-it-multimd-table": "^4.2.0",
|
||||||
"markdownlint-cli": "^0.37.0",
|
"markdown-link-check": "^3.10.3",
|
||||||
|
"markdownlint-cli": "^0.33.0",
|
||||||
"run-script-os": "^1.1.6",
|
"run-script-os": "^1.1.6",
|
||||||
"spellchecker-cli": "^6.1.1",
|
"spellchecker-cli": "^6.1.1",
|
||||||
"vuepress": "^1.9.10",
|
"vuepress": "^1.9.8",
|
||||||
"vuepress-plugin-medium-zoom": "^1.1.9",
|
"vuepress-plugin-fulltext-search": "^2.2.1",
|
||||||
"vuepress-plugin-zooming": "^1.1.8",
|
"vuepress-theme-succinct": "^1.7.2"
|
||||||
"vuepress-theme-book": "0.0.9",
|
|
||||||
"vuepress-theme-dark-new": "^0.1.2",
|
|
||||||
"vuepress-theme-succinct": "^1.7.2",
|
|
||||||
"vuepress-theme-yuu": "^3.1.1"
|
|
||||||
},
|
},
|
||||||
"homepage": "https://dortania.github.io/OpenCore-Legacy-Patcher/"
|
"homepage": "https://dortania.github.io/OpenCore-Legacy-Patcher/",
|
||||||
|
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
|
||||||
}
|
}
|
||||||
|
|||||||
10692
docs/yarn.lock
Normal file
10692
docs/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user