更新博客内容
@@ -1,25 +1,40 @@
|
||||
const head = require('./config/head.js');
|
||||
//const plugins = require('./config/plugins.js');
|
||||
const themeConfig = require('./config/themeConfig.js');
|
||||
import { viteBundler } from '@vuepress/bundler-vite'
|
||||
import { defaultTheme } from '@vuepress/theme-default'
|
||||
import { markdownMathPlugin } from '@vuepress/plugin-markdown-math'
|
||||
import { markdownImagePlugin } from '@vuepress/plugin-markdown-image'
|
||||
import { defineUserConfig } from 'vuepress'
|
||||
|
||||
module.exports = {
|
||||
base: '/',
|
||||
dest: 'dist',
|
||||
locales: {
|
||||
'/': {
|
||||
title: "我的博客",
|
||||
description: '死理性派,喜欢程序,数学,物理',
|
||||
lang: 'zh-CN'
|
||||
}
|
||||
},
|
||||
head,
|
||||
//plugins,
|
||||
themeConfig,
|
||||
const navbar_def = require('./config/nav.js');
|
||||
const sidebar_def = require('./config/sidebar.js');
|
||||
|
||||
export default defineUserConfig({
|
||||
bundler: viteBundler(),
|
||||
theme: defaultTheme({
|
||||
logo: 'favicon.png',
|
||||
navbar: navbar_def,
|
||||
sidebar: sidebar_def,
|
||||
sidebarDepth: 4,
|
||||
}),
|
||||
lang : 'zh-CN',
|
||||
title: '我的博客和笔记',
|
||||
description: '理性派,数学,物理,程序',
|
||||
plugins: [
|
||||
markdownMathPlugin({
|
||||
// options
|
||||
}),
|
||||
|
||||
markdownImagePlugin({
|
||||
// Enable figure
|
||||
figure: true,
|
||||
// Enable image lazyload
|
||||
lazyload: true,
|
||||
// Enable image mark
|
||||
mark: true,
|
||||
// Enable image size
|
||||
size: false,
|
||||
}),
|
||||
],
|
||||
markdown: {
|
||||
lineNumber: false
|
||||
},
|
||||
extendMarkdown: md => {
|
||||
md.set({ breaks: true });
|
||||
md.use(require('markdown-it-mathjax3'), {tex: {tags: 'ams'}});
|
||||
lineNumbers: false
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
module.exports = [
|
||||
['link', { rel: 'icon', href: '/favicon.png' }],
|
||||
// 移动浏览器的主题背景色
|
||||
['meta', { name: 'theme-color', content: '#11a8cd' }],
|
||||
// 站点默认文件编码格式
|
||||
['meta', { charset: 'UTF-8' }],
|
||||
// 移动端缩放优化
|
||||
['meta', {
|
||||
name: 'viewport',
|
||||
content: 'width=device-width, initial-scale=1'
|
||||
}]
|
||||
]
|
||||
@@ -1,5 +1,20 @@
|
||||
// nav
|
||||
module.exports = [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '文章', link: '/blog/' },
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '文章', link: '/blog/' },
|
||||
{
|
||||
text: '开源项目',
|
||||
children: [
|
||||
{ text: "TurboLink", link: "https://github.com/thejinchao/turbolink"}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '个人笔记',
|
||||
children: [
|
||||
{ text: '数学相关', link: '/math/' },
|
||||
{ text: '图形学', link: '/graphics/'},
|
||||
{ text: '密码学', link: '/cryptography/'},
|
||||
{ text: '编程语言', link: '/language/'}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,7 +1,72 @@
|
||||
module.exports = [
|
||||
{
|
||||
title: '博客',
|
||||
path: '/blog/',
|
||||
collapsable: true
|
||||
text: '我的文章',
|
||||
prefix: '/blog/',
|
||||
collapsible: true,
|
||||
children: [
|
||||
{
|
||||
text: '从抛币协议到智能合约',
|
||||
collapsible: true,
|
||||
children: [
|
||||
{ text: "Part1", link: "2025/02/MentalPoker01.md" },
|
||||
{ text: "Part2", link: "2025/02/MentalPoker02.md" }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'JPEG算法解密',
|
||||
collapsible: true,
|
||||
children: [
|
||||
{ text: "Part1", link: "2025/02/JPEG001.md" },
|
||||
{ text: "Part2", link: "2025/02/JPEG002.md" },
|
||||
{ text: "Part3", link: "2025/02/JPEG003.md" },
|
||||
{ text: "Part4", link: "2025/02/JPEG004.md" },
|
||||
{ text: "Part5", link: "2025/02/JPEG005.md" },
|
||||
{ text: "Github", link: "http://github.com/thejinchao/jpeg_encoder" }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'SPH算法简介',
|
||||
collapsible: true,
|
||||
children: [
|
||||
{ text: "Part1", link: "2025/02/SPH001.md" },
|
||||
{ text: "Part2", link: "2025/02/SPH002.md" },
|
||||
{ text: "Part3", link: "2025/02/SPH003.md" },
|
||||
{ text: "Part4", link: "2025/02/SPH004.md" },
|
||||
{ text: "Github", link: "https://github.com/thejinchao/fluid" }
|
||||
]
|
||||
},
|
||||
"2025/02/Martingle.md",
|
||||
"2025/02/RandRound.md",
|
||||
"2025/02/DH.md",
|
||||
"2025/02/SegmentCircle.md",
|
||||
"2025/02/Ellipse.md",
|
||||
"2025/02/Fibonacci.md"
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '开源项目',
|
||||
collapsible: true,
|
||||
children: [
|
||||
{text: "TurboLink", link: 'https://github.com/thejinchao/turbolink' }
|
||||
],
|
||||
},
|
||||
{
|
||||
text: '学习笔记',
|
||||
collapsible: true,
|
||||
children: [
|
||||
{
|
||||
text: '数学相关',
|
||||
|
||||
collapsible: true,
|
||||
children: [
|
||||
{text: '常用数学符号', link: '/math/symbol'},
|
||||
{text: '群', link: '/math/group'},
|
||||
{text: '数论(一)', link: '/math/number_theory_1'},
|
||||
{text: '数论(二)', link: '/math/number_theory_2'},
|
||||
{text: '数论(三)', link: '/math/number_theory_3'},
|
||||
{text: '概率', link: '/math/probability'}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
const nav = require('./nav.js');
|
||||
const sidebar = require('./sidebar.js');
|
||||
|
||||
// 主题配置
|
||||
module.exports = {
|
||||
logo: '/favicon.png',
|
||||
nav,
|
||||
sidebar,
|
||||
sidebarDepth: 2,
|
||||
repo: '',
|
||||
searchMaxSuggestions: 10,
|
||||
docsDir: 'docs',
|
||||
editLinks: false
|
||||
}
|
||||
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 500 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1004 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 504 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 238 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,36 @@
|
||||
:root {
|
||||
--code-c-text: #1f1f1f;
|
||||
--code-c-bg: #f8f8f8;
|
||||
--code-c-highlight-bg: rgb(51.6454545455, 60.5484848485, 78.3545454545);
|
||||
--copy-code-c-hover: #afafaf;
|
||||
}
|
||||
|
||||
table.gridtable {
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #0a0a0a;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.gridtable th {
|
||||
background-color: #cacaca;
|
||||
border: 1px solid #3f3f3f;
|
||||
color: #131313;
|
||||
padding: 0px
|
||||
}
|
||||
|
||||
table.gridtable td {
|
||||
border: 1px solid #3f3f3f;
|
||||
padding: 0px
|
||||
}
|
||||
|
||||
table.invisibletable {
|
||||
border-collapse: collapse;
|
||||
border: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.invisibletable td {
|
||||
border: 0px;
|
||||
padding: 0px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||