diff --git a/.gitignore b/.gitignore index 5d437ef..54c0e4a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ overrides/ site/ codes/ -docs/ \ No newline at end of file +docs/chapter_* \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index 0be2f7e..f41a0e7 100644 --- a/deploy.sh +++ b/deploy.sh @@ -3,6 +3,5 @@ cd site git init git add -A git commit -m 'deploy' -git branch -M main -git push -f git@github.com:krahets/dsa-021.git main:gh-pages +git push -f git@github.com:krahets/dsa-021.git master:gh-pages cd - diff --git a/docs/assets/images/favicon.png b/docs/assets/images/favicon.png new file mode 100644 index 0000000..4102992 Binary files /dev/null and b/docs/assets/images/favicon.png differ diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..d05ab30 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,17 @@ +--- +hide: + - footer +--- + +# Data Structure And Algorithm: From 0 to 1 + +## Update Log + +To be updated... + +| Chapter | Date | +| ------------ | ---------- | +| 数组与链表 | 2022-10-15 | +| 数据结构简介 | 2022-10-20 | +| 前言 | 2022-10-23 | +| 计算复杂度 | 2022-11-03 | diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 0000000..19a1b72 --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,22 @@ +/* https://github.com/squidfunk/mkdocs-material/blob/6b5035f5580f97532d664e3d1babf5f320e88ee9/src/assets/stylesheets/main/_colors.scss */ +/* https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-colors */ + +:root > * { + --md-primary-fg-color: #FFFFFF; + --md-primary-bg-color: #1D1D20; + + --md-accent-fg-color: #999; + + --md-typeset-color: #1D1D20; + --md-typeset-a-color: #2CA44F; +} + +[data-md-color-scheme="slate"] { + --md-primary-fg-color: #2E303E; + --md-primary-bg-color: #FEFEFE; + + --md-accent-fg-color: #999; + + --md-typeset-color: #FEFEFE; + --md-typeset-a-color: #31BC5A; +} \ No newline at end of file