mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-06-08 09:52:11 +08:00
Update vuepress
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
This commit is contained in:
parent
0ac24829e1
commit
a601a83c0e
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -19,7 +19,9 @@ jobs:
|
||||
- name: vuepress
|
||||
run: |
|
||||
sudo rm -rf _book
|
||||
npx vuepress build
|
||||
npm i vuepress --save-dev
|
||||
npm i
|
||||
npm run vuepress:build
|
||||
echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
|
||||
- name: Upload Vuepress dist
|
||||
uses: docker://pcit/pages
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,5 +6,8 @@ _book/
|
||||
*.swp
|
||||
*.edx
|
||||
.DS_Store
|
||||
|
||||
node_modules/
|
||||
package-lock.json
|
||||
|
||||
.vuepress/dist
|
||||
|
@ -1,6 +1,37 @@
|
||||
module.exports = {
|
||||
title: 'Docker 从入门到实践',
|
||||
base: '/',
|
||||
head: [['script', {}, `
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "//hm.baidu.com/hm.js?81a3490c9cd141dbcf6d00bc18b6edae";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
`],
|
||||
[
|
||||
'script', {}, `
|
||||
(function(){
|
||||
var bp = document.createElement('script');
|
||||
var curProtocol = window.location.protocol.split(':')[0];
|
||||
if (curProtocol === 'https') {
|
||||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
||||
}
|
||||
else {
|
||||
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
||||
}
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(bp, s);
|
||||
})();
|
||||
`
|
||||
]
|
||||
],
|
||||
plugins: {
|
||||
sitemap: {
|
||||
hostname: 'https://vuepress.mirror.docker-practice.com'
|
||||
},
|
||||
},
|
||||
themeConfig: {
|
||||
docsRepo: 'yeasy/docker_practice',
|
||||
docsDir: '/',
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
Kubernetes 依赖 Etcd 服务来维护所有主节点的状态。
|
||||
|
||||
## 启动 Etcd 服务。
|
||||
## 启动 Etcd 服务
|
||||
|
||||
```bash
|
||||
docker run --net=host -d gcr.io/google_containers/etcd:2.0.9 /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data
|
||||
|
28
package.json
Normal file
28
package.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "docker_practice",
|
||||
"version": "1.0.0",
|
||||
"description": "docker_practice",
|
||||
"main": "index.js",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"chalk": "^3.0.0",
|
||||
"commander": "^4.0.1",
|
||||
"esm": "^3.2.25",
|
||||
"vuepress-plugin-container": "^2.1.2",
|
||||
"vuepress-plugin-sitemap": "^2.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"vuepress:build": "npx vuepress build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/yeasy/docker_practice.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/yeasy/docker_practice/issues"
|
||||
},
|
||||
"homepage": "https://github.com/yeasy/docker_practice#readme"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user