From 5f84e1fe1db4fae4659379f2e89391fe35f55b0d Mon Sep 17 00:00:00 2001
From: Abby <78209557+abby-cyber@users.noreply.github.com>
Date: Sun, 24 Apr 2022 18:15:22 +0800
Subject: [PATCH 1/2] Update deploy.yaml
---
.github/workflows/deploy.yaml | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index d81bfc3ad7a..fe62d8cf84f 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -2,7 +2,7 @@ name: Publish docs via GitHub Pages
on:
push:
branches:
- - master
+ - v3.1.0
jobs:
deploy:
@@ -35,9 +35,11 @@ jobs:
- name: mike list delete
run: |
mike list
- - name: Mike Deploy master
+ - name: Mike Deploy 3.1.0
run: |
- mike deploy master -p --rebase
+ #mike delete v3.1.0 -p
+ mike deploy 3.1.0 -p --rebase
+ # mike set-default 3.1.0 -p --rebase
mike list
- name: show git branch
run: |
@@ -45,7 +47,7 @@ jobs:
git checkout gh-pages
- name: Compress
run: |
- tar -vczf nebula-docs.tar.gz master versions.json *.html
+ tar -vczf nebula-docs.tar.gz 3.1.0 versions.json *.html
- name: Transfer
# uses: garygrossgarten/github-action-scp@release
@@ -68,6 +70,9 @@ jobs:
script: |
mkdir -p /usr/web/nebula-docs/
tar -xzf /usr/web/nebula-docs.tar.gz -C /usr/web/nebula-docs/
+ mkdir -p /usr/web/nebula-docs/site/pdf/
+ cp -f /usr/web/nebula-docs/3.1.0/pdf/NebulaGraph-CN.pdf /usr/web/nebula-docs/site/pdf/NebulaGraph-book.pdf
+
# pip3 install --upgrade pip
# pip3 install -r /usr/web/nebula-docs/requirement.txt
# - name: Deploy
From 7814b4b76725ca5bcaeb1a4edc03cfcc6748378b Mon Sep 17 00:00:00 2001
From: Abby <78209557+abby-cyber@users.noreply.github.com>
Date: Sun, 24 Apr 2022 18:42:09 +0800
Subject: [PATCH 2/2] customize color
---
docs-2.0/stylesheets/extra.css | 4 +-
mkdocs.yml | 8 +--
overrides/partials/header.html | 100 ---------------------------------
3 files changed, 3 insertions(+), 109 deletions(-)
delete mode 100644 overrides/partials/header.html
diff --git a/docs-2.0/stylesheets/extra.css b/docs-2.0/stylesheets/extra.css
index e4dd0fc7977..c819f699e19 100644
--- a/docs-2.0/stylesheets/extra.css
+++ b/docs-2.0/stylesheets/extra.css
@@ -10,8 +10,8 @@
/* nebula 白天主题色 */
[data-md-color-scheme="nebula"]{
- --md-primary-fg-color: #002FA7; /* 导航栏页面颜色 */
- --md-accent-fg-color: #00FFFF; /* 选中/悬浮颜色 */
+ --md-primary-fg-color: #A3D49C; /* 导航栏页面颜色 */
+ --md-accent-fg-color: #EA618E; /* 选中/悬浮颜色 */
--md-code-fg-color: rgb(12, 21, 26); /* 代码段字体色 */
--md-code-bg-color: #eaebec;/* 代码段背景色 */
diff --git a/mkdocs.yml b/mkdocs.yml
index deedecab59f..98545d42929 100755
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -20,15 +20,11 @@ theme:
favicon: 'assets/images/favicon.ico'
# Change color in `stylesheets > extra.css`
palette:
- - scheme: default
- primary: teal
- accent: light green
+ - scheme: nebula
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
- scheme: slate
- primary: deep orange
- accent: red
toggle:
icon: material/toggle-switch
name: Switch to light mode
@@ -93,8 +89,6 @@ extra:
dockercompose:
release: 3.1.0
branch: release-3.1
- common:
- release: 2.5.0
dashboard:
release: 3.0.0
base100: 1.0.0
diff --git a/overrides/partials/header.html b/overrides/partials/header.html
deleted file mode 100644
index 023ed66359f..00000000000
--- a/overrides/partials/header.html
+++ /dev/null
@@ -1,100 +0,0 @@
-{#-
- This file was automatically generated - do not edit
- -#}
-
-
\ No newline at end of file