mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
Switch to GitHub Actions and update dependencies
This commit is contained in:
62
.github/workflows/build_test_deploy.yml
vendored
Normal file
62
.github/workflows/build_test_deploy.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
name: Build/Test/Deploy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- gh-pages
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v2-beta
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: '0'
|
||||||
|
persist-credentials: false
|
||||||
|
- name: Install
|
||||||
|
run: npm install
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
- name: Deploy
|
||||||
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master'}}
|
||||||
|
with:
|
||||||
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
BRANCH: gh-pages
|
||||||
|
FOLDER: .vuepress/dist/
|
||||||
|
CLEAN: true
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v2-beta
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: '0'
|
||||||
|
- name: Install
|
||||||
|
run: npm install
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint-ci
|
||||||
|
spellcheck:
|
||||||
|
name: Spellcheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v2-beta
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: '0'
|
||||||
|
- name: Install
|
||||||
|
run: npm install
|
||||||
|
- name: Spellcheck
|
||||||
|
run: npm run spellcheck
|
||||||
21
.travis.yml
21
.travis.yml
@@ -1,21 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
node_js: lts/*
|
|
||||||
cache:
|
|
||||||
npm: false
|
|
||||||
before_script:
|
|
||||||
script:
|
|
||||||
- yarn install
|
|
||||||
- yarn build
|
|
||||||
deploy:
|
|
||||||
local_dir: .vuepress/dist/
|
|
||||||
provider: pages
|
|
||||||
skip_cleanup: true
|
|
||||||
name: Travis Build Bot
|
|
||||||
keep_history: true
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
target_branch: gh-pages
|
|
||||||
# committer_from_gh: true
|
|
||||||
# allow_empty_commit: true
|
|
||||||
github_token:
|
|
||||||
secure: ZutxqsWgkleoYtyvMna47NJr1g1NAJPy/HrJ86wQ8XgWfVClSrFt3zHJTiVJWRwgFQBGmkEMtJ2ZVtrQ9p8smLNiJVmt23cJf6KGu7vDs9dBPT4HLnWEQ3WjL3hZD0i4f+avqA1X7q63rWPwdSQUiBMntCwlrF55sGUa0dCGJZynkS4oMjCFLdrft7QrW3FIO5+t6C6YC9cp1JwTqX6gsHPTvDq0TsiGKNyN+tRV82r3ySVdKxZtDA80ifWfObNCS+JB4JF1Oca1rmPmPyKOO/RZrD4jzbShSEN84eN0HxYmkk+nsMVy/0HAGT/zLpQigVOqguWwwhEw1AiP7pMSixceV9yq2qv7tVHOX8dWV1feoDzd6HW4wvtMso3d+XX7U2bnV4VfM8FHCBO7GLoYROG36YnItE/8pd5Vo63GLgnlFa3QUDD0ljc8uPAL8/ju8kWyPU9+oejcdf6K4UoDdomdjKqqXoOPIlBhifJO2CtN09K5WTLsigC9ok4y1nphfS2d8zoyZIkXVaSBqcvSTFGX/KpcTLZV06i4WCjMJHUteSAQr9lSxguY1r1y7n4v4PE2wicfaSdKJA8pzO+rFWwKO5NPdKR7HMPfrwxqgSbW/1/Ro0RZ++h5SXp8H/706qfyQIqh2FnssK8XvMycpJsb/SFhj4MYN8tQ0weB7ys=
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<template>
|
|
||||||
<p class="demo">
|
|
||||||
{{ msg }}
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
msg: 'Hello this is <Foo-Bar>'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<template>
|
|
||||||
<p class="demo">This is another component</p>
|
|
||||||
</template>
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<template>
|
|
||||||
<p class="demo">
|
|
||||||
{{ msg }}
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
msg: 'Hello this is <demo-component>'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
@@ -3,20 +3,7 @@ const {
|
|||||||
} = require('../package')
|
} = require('../package')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/**
|
|
||||||
* Ref:https://v1.vuepress.vuejs.org/config/#title
|
|
||||||
*/
|
|
||||||
title: 'Getting Started With ACPI',
|
title: 'Getting Started With ACPI',
|
||||||
/**
|
|
||||||
* Ref:https://v1.vuepress.vuejs.org/config/#description
|
|
||||||
*/
|
|
||||||
description: description,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Extra tags to be injected to the page HTML `<head>`
|
|
||||||
*
|
|
||||||
* ref:https://v1.vuepress.vuejs.org/config/#head
|
|
||||||
*/
|
|
||||||
head: [
|
head: [
|
||||||
['meta', {
|
['meta', {
|
||||||
name: 'theme-color',
|
name: 'theme-color',
|
||||||
@@ -37,6 +24,22 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
base: '/Getting-Started-With-ACPI/',
|
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));
|
||||||
|
|
||||||
|
if (element && element.scrollIntoView) {
|
||||||
|
element.scrollIntoView();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
markdown: {
|
markdown: {
|
||||||
extendMarkdown: md => {
|
extendMarkdown: md => {
|
||||||
md.use(require('markdown-it-multimd-table'), {
|
md.use(require('markdown-it-multimd-table'), {
|
||||||
@@ -58,10 +61,9 @@ module.exports = {
|
|||||||
themeConfig: {
|
themeConfig: {
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
repo: 'https://github.com/dortania/Getting-Started-With-ACPI',
|
repo: 'https://github.com/dortania/Getting-Started-With-ACPI',
|
||||||
editLinks: false,
|
editLinks: true,
|
||||||
docsDir: '',
|
editLinkText: 'Help us improve this page!',
|
||||||
editLinkText: '',
|
logo: 'homepage.png',
|
||||||
logo: '/homepage.png',
|
|
||||||
nav: [{
|
nav: [{
|
||||||
text: 'Dortania Guides',
|
text: 'Dortania Guides',
|
||||||
ariaLabel: 'Language Menu',
|
ariaLabel: 'Language Menu',
|
||||||
@@ -91,12 +93,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
{
|
|
||||||
text: 'Github',
|
|
||||||
link: 'https://github.com/dortania/OpenCore-Install-Guide'
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
],
|
],
|
||||||
sidebar: [{
|
sidebar: [{
|
||||||
title: 'Introduction',
|
title: 'Introduction',
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Client app enhancement file.
|
|
||||||
*
|
|
||||||
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
|
|
||||||
*/
|
|
||||||
|
|
||||||
export default ({
|
|
||||||
Vue, // the version of Vue being used in the VuePress app
|
|
||||||
options, // the options for the root Vue instance
|
|
||||||
router, // the router instance for the app
|
|
||||||
siteData // site metadata
|
|
||||||
}) => {
|
|
||||||
// ...apply enhancements for the site.
|
|
||||||
}
|
|
||||||
@@ -9,36 +9,13 @@
|
|||||||
|
|
||||||
[data-theme='dark']
|
[data-theme='dark']
|
||||||
--sideBgColor $sideBgColorDark
|
--sideBgColor $sideBgColorDark
|
||||||
--bgColor $bgColor
|
--dropShadowColor $dropShadowColor
|
||||||
|
|
||||||
.home .hero img
|
.home .hero img
|
||||||
max-width 450px!important
|
max-width 450px!important
|
||||||
|
|
||||||
// [data-theme='light']
|
|
||||||
// display none
|
|
||||||
|
|
||||||
|
|
||||||
// .home .hero img
|
|
||||||
// max-width 450px!important
|
|
||||||
/**
|
|
||||||
html
|
|
||||||
body
|
|
||||||
background-color var(--bgColor)
|
|
||||||
|
|
||||||
.theme-default-content:not(.custom)
|
|
||||||
max-width 1000px
|
|
||||||
|
|
||||||
.navbar
|
.navbar
|
||||||
.links
|
filter drop-shadow(0px 1px 1px var(--dropShadowColor))
|
||||||
background-color var(--navBgColorDark)!important
|
|
||||||
|
|
||||||
.navbar
|
|
||||||
filter: drop-shadow(0px 1px 1px var(--bgColor));
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.navbar
|
|
||||||
filter: drop-shadow(0px 1px 1px var(--bgColor));
|
|
||||||
|
|
||||||
.sidebar
|
.sidebar
|
||||||
background-color var(--sideBgColor)
|
background-color var(--sideBgColor)
|
||||||
@@ -51,8 +28,8 @@ html {
|
|||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 0px;
|
width 0px
|
||||||
background: transparent; /* make scrollbar transparent */
|
background transparent /* make scrollbar transparent */
|
||||||
}
|
}
|
||||||
|
|
||||||
tr
|
tr
|
||||||
@@ -64,7 +41,7 @@ tr
|
|||||||
|
|
||||||
|
|
||||||
.dropdown-wrapper .nav-dropdown
|
.dropdown-wrapper .nav-dropdown
|
||||||
border: 1px solid var(--sideBgColor)!important
|
border 1px solid var(--sideBgColor)!important
|
||||||
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
|
||||||
|
|||||||
@@ -6,35 +6,18 @@
|
|||||||
|
|
||||||
$bodyFontSize = 16px
|
$bodyFontSize = 16px
|
||||||
$fallbackTheme = 'dark'
|
$fallbackTheme = 'dark'
|
||||||
|
$dropShadowColor = #111112
|
||||||
|
|
||||||
// Light Theme
|
// Light Theme
|
||||||
$accentColor = #00bfff
|
$accentColor = #19b3e7
|
||||||
$textColor = #2c3e50
|
$textColor = #2c3e50
|
||||||
$bodyBgColor = #fff
|
$bodyBgColor = #fff
|
||||||
$sideBgColor = #fff
|
$sideBgColor = #fff
|
||||||
$badgeTipColor = #e3f8ff
|
$badgeTipColor = #caf2ff
|
||||||
|
|
||||||
// Dark Theme
|
// Dark Theme
|
||||||
|
|
||||||
$accentColorDark = #30BCD5
|
$accentColorDark = #30BCD5
|
||||||
$textColorDark = #ccc
|
$textColorDark = #ccc
|
||||||
$bodyBgColorDark = #2d3033
|
$bodyBgColorDark = #2d3033
|
||||||
$sideBgColorDark = #363b40
|
$sideBgColorDark = #363b40
|
||||||
$badgeTipColorDark = #023e52
|
$badgeTipColorDark = #023e52
|
||||||
|
|
||||||
/**
|
|
||||||
|
|
||||||
//$textColor = #2c3e50
|
|
||||||
$borderColor = #363b40
|
|
||||||
//$borderColor = #eaecef
|
|
||||||
$codeBgColor = #282c34
|
|
||||||
|
|
||||||
$bgColor = #2d3033
|
|
||||||
$navBgColor = #363b40
|
|
||||||
|
|
||||||
$bgColorDark = #2d3033
|
|
||||||
$navBgColorDark = #363b40
|
|
||||||
$sideBgColorDark = #363b40
|
|
||||||
*/
|
|
||||||
|
|
||||||
$bgColor = #111112
|
|
||||||
54
book.json
54
book.json
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
"plugins": ["theme-default", "-lunr", "-search", "search-plus", "addcssjs", "favicon-plus", "anchors", "github-buttons", "last-modified", "medium-zoom", "table-cell-merge"],
|
|
||||||
"pluginsConfig": {
|
|
||||||
"fontsettings": {
|
|
||||||
"theme": "night",
|
|
||||||
"family": "sans"
|
|
||||||
},
|
|
||||||
"github-buttons": {
|
|
||||||
"buttons": [{
|
|
||||||
"user": "dortania",
|
|
||||||
"repo": "Getting-Started-With-ACPI",
|
|
||||||
"type": "star",
|
|
||||||
"size": "large"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"intopic-toc": {
|
|
||||||
"label": "Navigation"
|
|
||||||
},
|
|
||||||
"github-edit": {
|
|
||||||
"repo": "dortania/Getting-Started-With-ACPI",
|
|
||||||
"branch": "master"
|
|
||||||
},
|
|
||||||
"favicon": "/icons/favicon.ico",
|
|
||||||
"appleTouchIconPrecomposed152": "/icons/appleTouchIconPrecomposed152.png",
|
|
||||||
"output": "_book"
|
|
||||||
},
|
|
||||||
"links": {
|
|
||||||
"sharing": {
|
|
||||||
"google": false,
|
|
||||||
"facebook": false,
|
|
||||||
"twitter": false,
|
|
||||||
"weibo": false,
|
|
||||||
"all": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"medium-zoom": {
|
|
||||||
"margin": 24,
|
|
||||||
"background": "#363b40",
|
|
||||||
"scrollOffset": 0
|
|
||||||
},
|
|
||||||
"pdf": {
|
|
||||||
"pageNumbers": false,
|
|
||||||
"fontSize": 12,
|
|
||||||
"paperSize": "a4",
|
|
||||||
"margin": {
|
|
||||||
"right": 62,
|
|
||||||
"left": 62,
|
|
||||||
"top": 36,
|
|
||||||
"bottom": 36
|
|
||||||
},
|
|
||||||
"headerTemplate": null,
|
|
||||||
"footerTemplate": null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
4924
package-lock.json
generated
4924
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
58
package.json
58
package.json
@@ -1,29 +1,51 @@
|
|||||||
{
|
{
|
||||||
"name": "OpenCore-Desktop-Guide",
|
"name": "Getting-Started-With-ACPI",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "",
|
||||||
"authors": {
|
"author": {
|
||||||
"name": "",
|
"name": "Dortania",
|
||||||
"email": ""
|
"url": "https://github.com/dortania"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/dortania/Getting-Started-With-ACPI.git"
|
||||||
},
|
},
|
||||||
"repository": "/OpenCore-Desktop-Guide",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vuepress dev",
|
"dev": "vuepress dev",
|
||||||
"build": "vuepress build"
|
"build": "vuepress build",
|
||||||
|
"fix-lint": "run-script-os",
|
||||||
|
"fix-lint:default": "(echo Attempting to fix lint... && markdownlint '**/*.md' -f && echo Fixed successfully, please commit.) || (echo Fix failed! && exit 1)",
|
||||||
|
"fix-lint:win32": "(echo Attempting to fix lint... && markdownlint **/*.md -f && echo Fixed successfully, please commit.) || (echo Fix failed! && exit 1)",
|
||||||
|
"lint": "run-script-os",
|
||||||
|
"lint:default": "(echo Linting... && markdownlint '**/*.md' && echo Lint passed.) || (echo Lint failed! Please review and fix errors. && exit 1)",
|
||||||
|
"lint:win32": "(echo Linting... && markdownlint **/*.md && echo Lint passed.) || (echo Lint failed! Please review and fix errors. && exit 1)",
|
||||||
|
"lint-ci": "run-script-os",
|
||||||
|
"lint-ci:default": "(echo Linting... && markdownlint '**/*.md' && echo Lint passed.) || ((echo Lint failed, attempting fix... && markdownlint '**/*.md' -f && echo Fix generated successfully. Please apply the following diff using git apply && git diff) || echo Fix failed! && exit 1)",
|
||||||
|
"lint-ci:win32": "(echo Linting... && markdownlint **/*.md && echo Lint passed.) || ((echo Lint failed, attempting fix... && markdownlint **/*.md -f && echo Fix generated successfully. Please apply the following diff using git apply && git diff) || echo Fix failed! && exit 1)",
|
||||||
|
"sort-dict": "node ./scripts/sortDict.js",
|
||||||
|
"spellcheck": "run-script-os",
|
||||||
|
"spellcheck:default": "(spellchecker --plugins spell indefinite-article repeated-words syntax-urls --dictionaries dictionary/dictionary.txt dictionary/opencorekeys.txt --files '**/*.md' && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)",
|
||||||
|
"spellcheck:win32": "(spellchecker --plugins spell indefinite-article repeated-words syntax-urls --dictionaries dictionary/dictionary.txt dictionary/opencorekeys.txt --files **/*.md && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)",
|
||||||
|
"test": "run-script-os",
|
||||||
|
"test:default": "npm run lint --silent; npm run spellcheck --silent",
|
||||||
|
"test:win32": "npm run lint --silent & npm run spellcheck --silent"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "CC-BY-NC-SA-4.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/plugin-back-to-top": "^1.5.2",
|
"@vuepress/plugin-back-to-top": "^1.7.1",
|
||||||
"vuepress": "^1.5.2",
|
|
||||||
"vuepress-plugin-medium-zoom": "^1.1.8",
|
|
||||||
"vuepress-plugin-zooming": "^1.1.7",
|
|
||||||
"vuepress-theme-book": "0.0.3",
|
|
||||||
"vuepress-theme-dark-new": "^0.1.2",
|
|
||||||
"vuepress-theme-succinct": "^1.5.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"markdown-it-multimd-table": "^4.0.3",
|
"markdown-it-multimd-table": "^4.0.3",
|
||||||
|
"markdown-link-check": "^3.8.5",
|
||||||
|
"markdownlint-cli": "^0.26.0",
|
||||||
|
"run-script-os": "^1.1.4",
|
||||||
|
"spellchecker-cli": "^4.4.0",
|
||||||
|
"vuepress": "^1.7.1",
|
||||||
|
"vuepress-plugin-medium-zoom": "^1.1.9",
|
||||||
|
"vuepress-plugin-zooming": "^1.1.8",
|
||||||
|
"vuepress-theme-book": "0.0.5",
|
||||||
|
"vuepress-theme-dark-new": "^0.1.2",
|
||||||
|
"vuepress-theme-succinct": "^1.6.4",
|
||||||
"vuepress-theme-yuu": "^2.3.0"
|
"vuepress-theme-yuu": "^2.3.0"
|
||||||
}
|
},
|
||||||
|
"homepage": "https://dortania.github.io/Getting-Started-With-ACPI/"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user