diff --git a/CHANGELOG.md b/CHANGELOG.md index 89d941ab..4703be6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.4.3](https://github.com/motoish/jb-notes/compare/v1.4.2...v1.4.3) (2026-05-15) + + +### Bug Fixes + +* optimize site ([6f9ff9c](https://github.com/motoish/jb-notes/commit/6f9ff9cc12e7dfb4efc174dca77a2c3f605c9709)) +* optimize site ([75e1b75](https://github.com/motoish/jb-notes/commit/75e1b7559c243bfffd2b6909e42a13262df78471)) + ## [1.4.2](https://github.com/motoish/jb-notes/compare/v1.4.1...v1.4.2) (2026-05-14) diff --git a/myst.yml b/myst.yml index 4009946f..da7ee077 100644 --- a/myst.yml +++ b/myst.yml @@ -3,7 +3,7 @@ project: title: Yuan's notes authors: - name: 'Yuan Zhang' - github: https://github.com/motoish/jb-notes/ + github: motoish/jb-notes toc: - file: src/index.md - title: Math @@ -67,7 +67,13 @@ project: - file: src/appendix/inde.md site: template: book-theme + parts: + primary_sidebar_footer: parts/sidebar-footer.md + navbar_end: parts/navbar-end.md options: logo: src/public/icon.png + favicon: src/public/icon.png + logo_text: "Yuan's notes" + logo_alt: Yuan's notes folders: true - base_url: /jb-notes + style: src/public/site-nav.css diff --git a/parts/navbar-end.md b/parts/navbar-end.md new file mode 100644 index 00000000..4b3c7b54 --- /dev/null +++ b/parts/navbar-end.md @@ -0,0 +1,2 @@ + +[![](../src/public/social/github.svg)](https://github.com/motoish) diff --git a/parts/sidebar-footer.md b/parts/sidebar-footer.md new file mode 100644 index 00000000..6b9fcd41 --- /dev/null +++ b/parts/sidebar-footer.md @@ -0,0 +1 @@ +© Yuan Zhang diff --git a/src/dict/cn.md b/src/dict/cn.md index 260357f6..9b129dd4 100644 --- a/src/dict/cn.md +++ b/src/dict/cn.md @@ -1,6 +1,5 @@ --- title: 専門用語集-cn -author: motoish -slide: false -tags: Terminology +tags: + - Terminology --- \ No newline at end of file diff --git a/src/public/site-nav.css b/src/public/site-nav.css new file mode 100644 index 00000000..705d5fa7 --- /dev/null +++ b/src/public/site-nav.css @@ -0,0 +1,36 @@ +.myst-navbar-end .link-icon, +.myst-primary-sidebar-navbar-end .link-icon { + display: none; +} + +.myst-navbar-end img, +.myst-primary-sidebar-navbar-end img { + height: 1.5rem; + width: auto; + vertical-align: middle; +} + +.myst-primary-sidebar-toc { + min-height: 0; + overflow-y: auto; +} + +.myst-primary-sidebar-toc .myst-toc { + padding-top: 1rem; +} + +.myst-primary-sidebar-toc .myst-toc > a:first-of-type { + margin-top: 0.25rem; + line-height: 2; +} + +@media (min-width: 1280px) { + .myst-primary-sidebar .myst-primary-sidebar-pointer.flex-col.overflow-hidden { + overflow-x: visible; + overflow-y: visible; + } + + .myst-primary-sidebar-nav.flex-grow { + padding-top: calc(2rem + 0.5rem); + } +} diff --git a/src/public/social/github.svg b/src/public/social/github.svg new file mode 100644 index 00000000..d152bb24 --- /dev/null +++ b/src/public/social/github.svg @@ -0,0 +1 @@ + diff --git a/src/public/social/instagram.svg b/src/public/social/instagram.svg new file mode 100644 index 00000000..c1acdd50 --- /dev/null +++ b/src/public/social/instagram.svg @@ -0,0 +1 @@ + diff --git a/src/public/social/x.svg b/src/public/social/x.svg new file mode 100644 index 00000000..58a670c1 --- /dev/null +++ b/src/public/social/x.svg @@ -0,0 +1 @@ +