mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
Compare commits
No commits in common. "2c6c8c655930b9395a0e852d7861e912acab471f" and "25805d6718cbf601bdc90b4bfcf858fb65c64301" have entirely different histories.
2c6c8c6559
...
25805d6718
@ -6,7 +6,7 @@ import { head } from './config/head'
|
|||||||
import { themeConfig } from './config/theme'
|
import { themeConfig } from './config/theme'
|
||||||
import { withTwoslash } from '@andatoshiki/vitepress-plugin-shiki-twoslash'
|
import { withTwoslash } from '@andatoshiki/vitepress-plugin-shiki-twoslash'
|
||||||
|
|
||||||
// import { generateSitemap as sitemap } from 'sitemap-ts'
|
import { generateSitemap as sitemap } from 'sitemap-ts'
|
||||||
import { genFeed } from './plugins/genFeed'
|
import { genFeed } from './plugins/genFeed'
|
||||||
import { createWriteStream } from 'node:fs'
|
import { createWriteStream } from 'node:fs'
|
||||||
import { resolve } from 'node:path'
|
import { resolve } from 'node:path'
|
||||||
@ -47,12 +47,9 @@ export default withTwoslash(
|
|||||||
},
|
},
|
||||||
ignoreDeadLinks: true,
|
ignoreDeadLinks: true,
|
||||||
async buildEnd(siteConfig) {
|
async buildEnd(siteConfig) {
|
||||||
// await sitemap({ hostname: 'https://note.toshiki.dev/' })
|
await sitemap({ hostname: 'https://chodocs.cn/' })
|
||||||
await genFeed(siteConfig)
|
await genFeed(siteConfig)
|
||||||
},
|
},
|
||||||
sitemap: {
|
|
||||||
hostname: 'https://note.toshiki.dev'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
customElements // custom element tags of markdown-it-katex in vitepress
|
customElements // custom element tags of markdown-it-katex in vitepress
|
||||||
|
|||||||
@ -430,68 +430,3 @@ html.dark {
|
|||||||
align-items: end;
|
align-items: end;
|
||||||
}
|
}
|
||||||
// vitepress homepage styles end
|
// vitepress homepage styles end
|
||||||
// macos styled pre tag code block styles with three colored dots
|
|
||||||
.vp-doc div[class*=language-] {
|
|
||||||
position: relative;
|
|
||||||
border-radius: 8px;
|
|
||||||
overflow: hidden;
|
|
||||||
// box-shadow: 0 10px 30px 0 rgb(0 0 0 / 40%);
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* No line number: add macOS-style small dot */
|
|
||||||
.vp-doc div[class*=language-]::before {
|
|
||||||
content: "";
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
top: 12px;
|
|
||||||
left: 12px;
|
|
||||||
width: 12px;
|
|
||||||
height: 12px;
|
|
||||||
background-color: #ff5f56;
|
|
||||||
border-radius: 50%;
|
|
||||||
box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* With line number: add background shadow */
|
|
||||||
div[class*="language-"].vp-adaptive-theme.line-numbers-mode {
|
|
||||||
position: relative;
|
|
||||||
border-radius: 8px;
|
|
||||||
overflow: hidden;
|
|
||||||
// box-shadow: 0 10px 30px 0 rgb(0 0 0 / 40%);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* With line number: add macOS-style small dot */
|
|
||||||
.vp-doc div[class*="language-"].line-numbers-mode::before {
|
|
||||||
content: "";
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
top: 12px;
|
|
||||||
left: -22px;
|
|
||||||
width: 12px;
|
|
||||||
height: 12px;
|
|
||||||
background-color: #ff5f56;
|
|
||||||
border-radius: 50%;
|
|
||||||
box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Move line number down to align with code; hide right vertical line */
|
|
||||||
.vp-doc .line-numbers-wrapper {
|
|
||||||
padding-top: 32px;
|
|
||||||
border-right: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Rebuild the right vertical line for line numbers */
|
|
||||||
.vp-doc .line-numbers-wrapper::after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 38px;
|
|
||||||
right: 0;
|
|
||||||
border-right: 1px solid var(--vp-code-block-divider-color);
|
|
||||||
height: calc(100% - 66px);
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user