mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2025-12-31 20:55:58 -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')
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Ref:https://v1.vuepress.vuejs.org/config/#title
|
||||
*/
|
||||
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: [
|
||||
['meta', {
|
||||
name: 'theme-color',
|
||||
@@ -37,6 +24,22 @@ 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));
|
||||
|
||||
if (element && element.scrollIntoView) {
|
||||
element.scrollIntoView();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
markdown: {
|
||||
extendMarkdown: md => {
|
||||
md.use(require('markdown-it-multimd-table'), {
|
||||
@@ -58,10 +61,9 @@ module.exports = {
|
||||
themeConfig: {
|
||||
lastUpdated: true,
|
||||
repo: 'https://github.com/dortania/Getting-Started-With-ACPI',
|
||||
editLinks: false,
|
||||
docsDir: '',
|
||||
editLinkText: '',
|
||||
logo: '/homepage.png',
|
||||
editLinks: true,
|
||||
editLinkText: 'Help us improve this page!',
|
||||
logo: 'homepage.png',
|
||||
nav: [{
|
||||
text: 'Dortania Guides',
|
||||
ariaLabel: 'Language Menu',
|
||||
@@ -91,12 +93,6 @@ module.exports = {
|
||||
},
|
||||
]
|
||||
},
|
||||
/*
|
||||
{
|
||||
text: 'Github',
|
||||
link: 'https://github.com/dortania/OpenCore-Install-Guide'
|
||||
}
|
||||
*/
|
||||
],
|
||||
sidebar: [{
|
||||
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']
|
||||
--sideBgColor $sideBgColorDark
|
||||
--bgColor $bgColor
|
||||
--dropShadowColor $dropShadowColor
|
||||
|
||||
.home .hero img
|
||||
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
|
||||
.links
|
||||
background-color var(--navBgColorDark)!important
|
||||
|
||||
.navbar
|
||||
filter: drop-shadow(0px 1px 1px var(--bgColor));
|
||||
|
||||
*/
|
||||
|
||||
.navbar
|
||||
filter: drop-shadow(0px 1px 1px var(--bgColor));
|
||||
filter drop-shadow(0px 1px 1px var(--dropShadowColor))
|
||||
|
||||
.sidebar
|
||||
background-color var(--sideBgColor)
|
||||
@@ -51,8 +28,8 @@ html {
|
||||
overflow: scroll;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
background: transparent; /* make scrollbar transparent */
|
||||
width 0px
|
||||
background transparent /* make scrollbar transparent */
|
||||
}
|
||||
|
||||
tr
|
||||
@@ -64,7 +41,7 @@ tr
|
||||
|
||||
|
||||
.dropdown-wrapper .nav-dropdown
|
||||
border: 1px solid var(--sideBgColor)!important
|
||||
border 1px solid var(--sideBgColor)!important
|
||||
background-color var(--sideBgColor)!important
|
||||
box-shadow: 0px 0px 2px var(--bodyBgColor)
|
||||
right: -12%!important
|
||||
box-shadow 0px 0px 2px var(--bodyBgColor)
|
||||
right -12%!important
|
||||
|
||||
@@ -6,35 +6,18 @@
|
||||
|
||||
$bodyFontSize = 16px
|
||||
$fallbackTheme = 'dark'
|
||||
$dropShadowColor = #111112
|
||||
|
||||
// Light Theme
|
||||
$accentColor = #00bfff
|
||||
$accentColor = #19b3e7
|
||||
$textColor = #2c3e50
|
||||
$bodyBgColor = #fff
|
||||
$sideBgColor = #fff
|
||||
$badgeTipColor = #e3f8ff
|
||||
$badgeTipColor = #caf2ff
|
||||
|
||||
// Dark Theme
|
||||
|
||||
$accentColorDark = #30BCD5
|
||||
$textColorDark = #ccc
|
||||
$bodyBgColorDark = #2d3033
|
||||
$sideBgColorDark = #363b40
|
||||
$badgeTipColorDark = #023e52
|
||||
|
||||
/**
|
||||
|
||||
//$textColor = #2c3e50
|
||||
$borderColor = #363b40
|
||||
//$borderColor = #eaecef
|
||||
$codeBgColor = #282c34
|
||||
|
||||
$bgColor = #2d3033
|
||||
$navBgColor = #363b40
|
||||
|
||||
$bgColorDark = #2d3033
|
||||
$navBgColorDark = #363b40
|
||||
$sideBgColorDark = #363b40
|
||||
*/
|
||||
|
||||
$bgColor = #111112
|
||||
$badgeTipColorDark = #023e52
|
||||
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
|
||||
}
|
||||
}
|
||||
4920
package-lock.json
generated
4920
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
76
package.json
76
package.json
@@ -1,29 +1,51 @@
|
||||
{
|
||||
"name": "OpenCore-Desktop-Guide",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"authors": {
|
||||
"name": "",
|
||||
"email": ""
|
||||
},
|
||||
"repository": "/OpenCore-Desktop-Guide",
|
||||
"scripts": {
|
||||
"dev": "vuepress dev",
|
||||
"build": "vuepress build"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@vuepress/plugin-back-to-top": "^1.5.2",
|
||||
"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",
|
||||
"vuepress-theme-yuu": "^2.3.0"
|
||||
}
|
||||
"name": "Getting-Started-With-ACPI",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"main": "",
|
||||
"author": {
|
||||
"name": "Dortania",
|
||||
"url": "https://github.com/dortania"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dortania/Getting-Started-With-ACPI.git"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vuepress dev",
|
||||
"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": "CC-BY-NC-SA-4.0",
|
||||
"devDependencies": {
|
||||
"@vuepress/plugin-back-to-top": "^1.7.1",
|
||||
"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"
|
||||
},
|
||||
"homepage": "https://dortania.github.io/Getting-Started-With-ACPI/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user