-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 265a117
Showing
18 changed files
with
1,097 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,2 @@ | ||
.DS_Store | ||
site/ |
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,17 @@ | ||
# 图灵 2022 级学长组资料汇总网站 | ||
|
||
## 本地构建 | ||
|
||
- 安装 mkdocs 及 material 主题 | ||
```sh | ||
pip install mkdocs | ||
pip install mkdocs-material | ||
``` | ||
- 开启本地预览服务 | ||
```sh | ||
$ mkdocs serve # serve at localhost:8000 | ||
``` | ||
|
||
## 修改发布 | ||
|
||
不需要 build 之类的,修改好直接通过 git 更新到这个 repo 里,我来手动拉取构建再丢到服务器上 |
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,99 @@ | ||
.card { | ||
position: relative; | ||
display: -ms-flexbox; | ||
display: flex; | ||
-ms-flex-direction: column; | ||
flex-direction: column; | ||
min-width: 0; | ||
word-wrap: break-word; | ||
background-color: #FEFEFE; | ||
background-clip: border-box; | ||
border: 0.5px solid #606060; | ||
border-radius: .25rem; | ||
margin-bottom: 1em; | ||
} | ||
|
||
[data-md-color-scheme="slate"] .card { | ||
background-color: #181818; | ||
border: 0.5px solid #606060; | ||
} | ||
|
||
.card-body { | ||
-ms-flex: 1 1 auto; | ||
flex: 1 1 auto; | ||
min-height: 1px; | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
padding-bottom: 1rem; | ||
padding-top: 0.5rem; | ||
} | ||
|
||
.card-header { | ||
padding-left: 1.5rem; | ||
padding-right: 1.5rem; | ||
padding-top: 0.7rem; | ||
padding-bottom: 0.25rem; | ||
margin-bottom: 0; | ||
font-size: 1.5em; | ||
text-transform: uppercase; | ||
font-weight: 600; | ||
} | ||
|
||
.card-body ul { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.md-typeset :is(.card-body details) { | ||
margin-top: 0.25rem; | ||
margin-bottom: 0; | ||
} | ||
|
||
.file-block { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
padding: 0.2em 1em; | ||
transition: background-color .3s cubic-bezier(.4,0,.2,1); | ||
} | ||
|
||
.file-block:hover { | ||
background-color: #eeeeee; | ||
} | ||
[data-md-color-scheme="slate"] .file-block:hover { | ||
background-color: #606060; | ||
} | ||
|
||
.file-title { | ||
padding-left: 0rem; | ||
margin-bottom: 0; | ||
font-size: 1.1em; | ||
font-weight: 600; | ||
} | ||
|
||
.file-meta { | ||
-ms-flex: 1 1 auto; | ||
flex: 1 1 auto; | ||
min-height: 1px; | ||
} | ||
|
||
.file-body { | ||
padding-left: 1em; | ||
margin-right: auto; | ||
} | ||
|
||
.down-button { | ||
border: 0.05rem solid; | ||
border-radius: 0.1rem; | ||
cursor: pointer; | ||
display: inline-block; | ||
font-weight: 700; | ||
padding: 0.25em 0.5em; | ||
transition: color .3s,background-color .3s,border-color .3s !important; | ||
} | ||
|
||
.down-button:is(:focus,:hover) { | ||
background-color: var(--md-accent-fg-color); | ||
border-color: var(--md-accent-fg-color); | ||
color: var(--md-accent-bg-color) !important; | ||
} |
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,40 @@ | ||
h1 { | ||
counter-reset: h2; | ||
} | ||
h2 { | ||
counter-reset: h3; | ||
} | ||
h3 { | ||
counter-reset: h4; | ||
} | ||
h4 { | ||
counter-reset: h5; | ||
} | ||
h5 { | ||
counter-reset: h6; | ||
} | ||
h2:before { | ||
counter-increment: h2; | ||
content: counter(h2); | ||
margin-right: 0.8rem; | ||
} | ||
h3:before { | ||
counter-increment: h3; | ||
content: counter(h2) "." counter(h3); | ||
margin-right: 0.8rem; | ||
} | ||
h4:before { | ||
counter-increment: h4; | ||
content: counter(h2) "." counter(h3) "." counter(h4); | ||
margin-right: 0.8rem; | ||
} | ||
h5:before { | ||
counter-increment: h5; | ||
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5); | ||
margin-right: 0.8rem; | ||
} | ||
h6:before { | ||
counter-increment: h6; | ||
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6); | ||
margin-right: 0.8rem; | ||
} |
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,215 @@ | ||
:root { | ||
--md-text-font: "JetBrains Mono", "LXGW WenKai Screen"; | ||
} | ||
|
||
.md-typeset h1, .md-typeset h2 { | ||
font-weight: 600; | ||
} | ||
|
||
.md-typeset h3 { | ||
font-weight: 500; | ||
} | ||
|
||
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 { | ||
letter-spacing: 0; | ||
} | ||
|
||
.md-typeset { | ||
font-size: .75rem; | ||
} | ||
|
||
.md-typeset h3 { | ||
font-weight: 600; | ||
} | ||
|
||
[data-md-color-scheme="default"] { | ||
--md-primary-fg-color: #efefef; | ||
--md-primary-bg-color: #000000; | ||
--md-typeset-a-color: #555555; | ||
--md-footer-fg-color: #000000; | ||
--md-footer-bg-color: #efefef; | ||
--md-footer-bg-color--dark: #efefef; | ||
--md-footer-fg-color--light: #000000; | ||
--md-footer-fg-color--lighter: #000000; | ||
--md-code-bg-color: #fafafa; | ||
} | ||
|
||
[data-md-color-scheme="slate"] { | ||
--md-default-bg-color: #161616; | ||
--md-default-bg-color--light: #161616; | ||
--md-default-bg-color--lighter: #161616; | ||
--md-default-bg-color--lightest: #161616; | ||
--md-default-fg-color: rgba(255,255,255,0.9); | ||
--md-default-fg-color--light: rgba(255,255,255,0.85); | ||
--md-default-fg-color--lighter: rgba(255,255,255,0.8); | ||
--md-default-fg-color--lightest: rgba(255,255,255,0.6); | ||
--md-primary-fg-color: #0d0d0d; | ||
--md-typeset-a-color: #d3d3d3; | ||
--md-footer-fg-color: #fff; | ||
--md-footer-bg-color: #0d0d0d; | ||
--md-footer-bg-color--dark: #0d0d0d; | ||
--md-footer-fg-color--light: #fff; | ||
--md-footer-fg-color--lighter: #fff; | ||
--md-code-bg-color: #1d1d1d; | ||
} | ||
|
||
input.md-search__input { | ||
background-color: #fff; | ||
} | ||
|
||
[data-md-color-scheme="slate"] input.md-search__input { | ||
background-color: #000; | ||
} | ||
|
||
[data-md-color-scheme="slate"] .md-typeset .md-content__button { | ||
color: #555555; | ||
} | ||
|
||
.md-copyright { | ||
font-size: .55rem; | ||
} | ||
|
||
body:not([data-md-prefers-color-scheme=true])[data-md-color-scheme=slate] .md-icon .light-mode, | ||
body:not([data-md-prefers-color-scheme=true])[data-md-color-scheme=slate] .md-icon .system-mode, | ||
body:not([data-md-prefers-color-scheme=true])[data-md-color-scheme=slate] .md-icon .unknown-mode { | ||
display: none; | ||
} | ||
body:not([data-md-prefers-color-scheme=true])[data-md-color-scheme=default] .md-icon .dark-mode, | ||
body:not([data-md-prefers-color-scheme=true])[data-md-color-scheme=default] .md-icon .system-mode, | ||
body:not([data-md-prefers-color-scheme=true])[data-md-color-scheme=default] .md-icon .unknown-mode { | ||
display: none; | ||
} | ||
body:not([data-md-prefers-color-scheme=true]):not([data-md-color-scheme=default]):not([data-md-color-scheme=slate]) .md-icon .dark-mode, | ||
body:not([data-md-prefers-color-scheme=true]):not([data-md-color-scheme=default]):not([data-md-color-scheme=slate]) .md-icon .light-mode, | ||
body:not([data-md-prefers-color-scheme=true]):not([data-md-color-scheme=default]):not([data-md-color-scheme=slate]) .md-icon .system-mode { | ||
display: none; | ||
} | ||
body[data-md-prefers-color-scheme=true] .md-icon .dark-mode, | ||
body[data-md-prefers-color-scheme=true] .md-icon .light-mode, | ||
body[data-md-prefers-color-scheme=true] .md-icon .unknown-mode { | ||
display: none; | ||
} | ||
|
||
@media screen and (max-width: 59.9375em) { | ||
.md-nav__source { | ||
background-color: var(--md-primary-fg-color); | ||
} | ||
} | ||
|
||
@media screen and (max-width: 76.1875em) { | ||
.md-nav--primary .md-nav__title { | ||
background-color: var(--md-primary-fg-color); | ||
} | ||
} | ||
|
||
[data-md-color-scheme="slate"] .md-annotation__index:after { | ||
background-color: #4c4c4c; | ||
} | ||
|
||
input#mkdocs-content-password { | ||
width: 6rem; | ||
} | ||
|
||
[data-md-color-scheme="slate"] input#mkdocs-content-password { | ||
background-color: #161616; | ||
} | ||
|
||
.katex { | ||
-webkit-text-stroke-width: 0.3px; | ||
} | ||
|
||
.reference ol { | ||
counter-reset: li; | ||
} | ||
.reference li { | ||
padding-left: 0.7em; | ||
counter-increment: li; | ||
word-break: break-all; | ||
} | ||
.reference li::marker { | ||
content: "[" counter(li) "]"; | ||
font-size: 0.8em; | ||
} | ||
|
||
.riscv-table, .fl-table { | ||
width: 100%; | ||
display: inline-table; | ||
table-layout: fixed; | ||
/* border-collapse: collapse; */ | ||
} | ||
.riscv-table-node { | ||
text-align: center; | ||
padding: 0.2em; | ||
border: 0.04rem solid var(--md-default-fg-color); | ||
} | ||
.riscv-table-node-little, .fl-table-node { | ||
text-align: center; | ||
padding: 0.1em; | ||
border: 0.04rem solid var(--md-default-fg-color); | ||
} | ||
.riscv-table-numnode { | ||
font-size: .4rem; | ||
} | ||
.riscv-table-undernode { | ||
font-size: .6rem; | ||
text-align: center; | ||
} | ||
.riscv-table-numnodel { | ||
font-size: .4rem; | ||
text-align: left; | ||
} | ||
.riscv-table-numnoder { | ||
font-size: .4rem; | ||
text-align: right; | ||
} | ||
@media (max-width: 700px) { | ||
.riscv-table-node, .riscv-table-node-little, .fl-table-node { | ||
font-size: .6rem; | ||
} | ||
} | ||
@media (max-width: 610px) { | ||
.riscv-table-node, .riscv-table-node-little, .fl-table-node { | ||
font-size: .5rem; | ||
} | ||
} | ||
@media (max-width: 602px) { | ||
.riscv-table-node, .riscv-table-node-little { | ||
overflow-x: scroll; | ||
word-wrap: normal; | ||
} | ||
.riscv-table-numnoder { | ||
font-size: 0px; | ||
} | ||
.riscv-table-numnodel { | ||
word-wrap: normal; | ||
} | ||
} | ||
|
||
[data-md-color-scheme="slate"] .fl-affected { | ||
background: linear-gradient( | ||
45deg, | ||
rgb(255 255 255 / 30%) 0, rgb(255 255 255 / 30%) 25%, transparent 25%, transparent 50%, | ||
rgb(255 255 255 / 30%) 50%, rgb(255 255 255 / 30%) 75%, transparent 75%, transparent | ||
); | ||
background-size: 10px 10px; | ||
} | ||
[data-md-color-scheme="default"] .fl-affected { | ||
background: linear-gradient( | ||
45deg, | ||
rgb(0 0 0 / 30%) 0, rgb(0 0 0 / 30%) 25%, transparent 25%, transparent 50%, | ||
rgb(0 0 0 / 30%) 50%, rgb(0 0 0 / 30%) 75%, transparent 75%, transparent | ||
); | ||
background-size: 10px 10px; | ||
} | ||
[data-md-color-scheme="slate"] .fl-special { | ||
background: rgb(255 255 255 / 30%); | ||
} | ||
[data-md-color-scheme="default"] .fl-special { | ||
background: rgb(0 0 0 / 30%); | ||
} | ||
[data-md-color-scheme="slate"] .fl-undefined { | ||
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g><line x1="0" y1="0" x2="100%" y2="100%" stroke="rgba(255,255,255,0.9)" stroke-width="1"/></g><g><line x1="0" y1="100%" x2="100%" y2="0" stroke="rgba(255,255,255,0.9)" stroke-width="1"/></g></svg>'); | ||
} | ||
[data-md-color-scheme="default"] .fl-undefined { | ||
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g><line x1="0" y1="0" x2="100%" y2="100%" stroke="rgba(0, 0, 0, 0.85)" stroke-width="1"/></g><g><line x1="0" y1="100%" x2="100%" y2="0" stroke="rgba(0, 0, 0, 0.85)" stroke-width="1"/></g></svg>'); | ||
} |
Oops, something went wrong.