-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/learner-pm/new_blog_docs in…
…to main
- Loading branch information
Showing
73 changed files
with
9,616 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: deploy-docs-website | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: [ "main" ] | ||
# pull_request: | ||
# branches: [ "main" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: install nodejs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "16.X" | ||
- name: install deps | ||
run: npm install | ||
- name: build app | ||
run: npm run docs:build | ||
- name: copy dist file with scp | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.REMOTE_HOST }} | ||
username: ${{ secrets.REMOTE_USER }} | ||
key: ${{ secrets.REMOTE_SSH }} | ||
port: 22 | ||
source: "docs/.vuepress/dist/" | ||
target: ${{ secrets.REMOTE_TARGET_FILE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: docs-pr | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
lint: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: install nodejs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "16.X" | ||
- name: install deps | ||
run: npm install | ||
- name: build app | ||
run: npm run docs:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.temp | ||
.cache | ||
dist | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 learner_pm | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<<<<<<< HEAD | ||
# pengm.github.io | ||
|
||
ds | ||
======= | ||
# new_blog_docs | ||
|
||
个人博客。 | ||
|
||
- 前端内容 | ||
- 其他 | ||
- 项目 | ||
>>>>>>> 217bfe7ad1764a212b6b76eff481c6317fea37a8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script setup> | ||
import { onMounted } from 'vue' | ||
const footer = document.getElementsByClassName("footer"); | ||
const home = document.getElementsByClassName("home"); | ||
const url = () => { | ||
const a = document.createElement("A"); | ||
a.href = "https://beian.miit.gov.cn/#/Integrated/index"; | ||
a.textContent = " 蜀ICP备20004855号-1"; | ||
a.target = "_black"; | ||
footer[0].appendChild(a); | ||
} | ||
const setText = () =>{ | ||
const p = document.createElement("P") | ||
p.textContent = "山不在高,有仙则灵 水不在深,有龙则灵" | ||
p.setAttribute('class','home-add-text') | ||
home[0].insertBefore(p,footer[0]) | ||
} | ||
const setFooter = ()=>{ | ||
footer[0].style=' border-top:0px' | ||
} | ||
onMounted(() => { | ||
setFooter() | ||
url() | ||
setText() | ||
}) | ||
</script> | ||
|
||
<style> | ||
.home-add-text{ | ||
text-align:center; | ||
font-size:18px; | ||
padding:20px 0px; | ||
border-top:1px solid var(--c-border); | ||
border-bottom:1px solid var(--c-border); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
const { path } = require("@vuepress/utils"); | ||
|
||
module.exports = { | ||
host: "localhost", | ||
port: "8888", | ||
title: "网站学习", | ||
base: "/", | ||
description: "PM的个人学习博客", | ||
lang: "zh-CN", | ||
head: [ | ||
["link", { rel: "icon", href: "/images/logo.png" }], | ||
["link", { rel: "icon", href: "/images/favicon.ico" }], | ||
["link", { rel: "stylesheet", href: "/css/index.css" }], | ||
], | ||
theme: "@vuepress/theme-default", | ||
themeConfig: { | ||
navbar: [ | ||
{ | ||
text: "前端", | ||
children: [ | ||
{ | ||
text: "基础", | ||
link: "/frontEnd/basic/", | ||
}, | ||
{ | ||
text: "提升", | ||
link: "/frontEnd/frame/vueReact/", | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "数据结构和算法", | ||
link: "/dataStructure/algorithm/", | ||
}, | ||
{ | ||
text: "项目", | ||
link: "/project/", | ||
}, | ||
{ | ||
text: "CICD", | ||
link: "/cicd/", | ||
}, | ||
{ | ||
text: "记录", | ||
link: "/learn/", | ||
}, | ||
{ text: "GitHub", link: "https://github.com/learner-pm" }, | ||
], | ||
sidebar: { | ||
"/frontEnd/basic/": [ | ||
{ | ||
text: "ECMAScript", | ||
children: [ | ||
"/frontEnd/basic/ecmaScript/type", | ||
"/frontEnd/basic/ecmaScript/function", | ||
"/frontEnd/basic/ecmaScript/proto", | ||
"/frontEnd/basic/ecmaScript/this", | ||
"/frontEnd/basic/ecmaScript/async", | ||
"/frontEnd/basic/ecmaScript/module", | ||
], | ||
}, | ||
{ | ||
text: "浏览器", | ||
children: [ | ||
"/frontEnd/basic/borwser/draw", | ||
"/frontEnd/basic/borwser/storage", | ||
"/frontEnd/basic/borwser/network", | ||
"/frontEnd/basic/borwser/across", | ||
"/frontEnd/basic/borwser/security", | ||
"/frontEnd/basic/borwser/performance", | ||
], | ||
}, | ||
], | ||
"/frontEnd/frame/": [ | ||
{ | ||
text: "Frame", | ||
children: [ | ||
"/frontEnd/frame/vueReact/", | ||
"/frontEnd/frame/vueReact/one", | ||
"/frontEnd/frame/vueReact/react", | ||
], | ||
}, | ||
{ | ||
text: "Mvvm", | ||
children: ["/frontEnd/frame/mvvm/"], | ||
}, | ||
], | ||
"/learn/": [ | ||
{ | ||
children: ["/learn/result.md"], | ||
}, | ||
], | ||
"/dataStructure/algorithm/": [ | ||
{ | ||
text: "算法", | ||
children: [ | ||
"/dataStructure/algorithm/", | ||
"/dataStructure/algorithm/commonType.md", | ||
"/dataStructure/algorithm/tree.md", | ||
"/dataStructure/algorithm/designPatterns.md", | ||
], | ||
}, | ||
// { | ||
// text: "设计模式", | ||
// children: [ | ||
// "/dataStructure/algorithm/designPatterns/factory.md", | ||
// "/dataStructure/algorithm/designPatterns/singleton.md", | ||
// "/dataStructure/algorithm/designPatterns/observer.md", | ||
// "/dataStructure/algorithm/designPatterns/strategy.md", | ||
// "/dataStructure/algorithm/designPatterns/decorate.md", | ||
// "/dataStructure/algorithm/designPatterns/proxy.md", | ||
// "/dataStructure/algorithm/designPatterns/adaptation.md", | ||
// ], | ||
// }, | ||
], | ||
"/project/": [ | ||
{ | ||
text: "项目", | ||
children: [ | ||
"/project/", | ||
"/project/one.md", | ||
"/project/thesis.md", | ||
"/project/vaios.md", | ||
], | ||
}, | ||
], | ||
"/cicd/": [ | ||
{ | ||
text: "自动构建", | ||
children: [ | ||
"/cicd/" | ||
] | ||
} | ||
] | ||
}, | ||
}, | ||
plugins: [ | ||
[ | ||
"@vuepress/register-components", | ||
{ | ||
componentsDir: path.resolve(__dirname, "./components"), | ||
}, | ||
], | ||
[ | ||
"@vuepress/docsearch", | ||
{ | ||
appId: "UWD3TP0HJ3", | ||
apiKey: "648fdc4c61e72866f6f638b7dacfd0bf", | ||
indexName: "pmthank", | ||
locales: { | ||
"/": { | ||
placeholder: "Search", | ||
translations: { | ||
button: { | ||
buttonText: "Search", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.sidebar::-webkit-scrollbar { | ||
width: 8px; | ||
} | ||
.sidebar::-webkit-scrollbar-thumb { | ||
background: #c1c1c1b0; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
home: true | ||
heroImage: /images/hero.jpg | ||
heroAlt: 风景 | ||
heroText: 网站学习 | ||
tagline: 学习 & 记录 | ||
actions: | ||
- text: 开始浏览 | ||
link: /frontEnd/basic/ | ||
type: secondary | ||
# type: primary | ||
# - text: Project | ||
# link: /project/ | ||
# type: secondary | ||
features: | ||
- title: 基础性内容 | ||
details: 计算机系统的基础性内容,以及前端和浏览器等方面知识。 | ||
- title: 框架和轮子 | ||
details: 学习框架内核,深入理解其核心。学习现代前端开发工程化过程。 | ||
- title: 记录和学习 | ||
details: 记录个人学习进度,记录造轮子过程,搜集面试题。 | ||
footer: Copyright © 2021-now • Wrote and built by PengMao | ||
--- | ||
|
||
<Home/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CICD | ||
|
||
其目的是通过`CICD`的手段来搭建一个自动发布代码的平台 - 尝试搭建 | ||
|
||
## 搭建流程 | ||
|
||
我也是从 0 开始,以下记录构建过程。 | ||
|
||
目标:本地推送代码到 GitHub,自动 build、自动发布。 | ||
|
||
### ci |
Oops, something went wrong.