feat: 添加页面最后更新信息 (#66)

* test

* fix?

* fix??

* clean pnpm lock

---------

Co-authored-by: KirisameVanilla <118162831+kirisamevanilla@users.noreply.github.com>
This commit is contained in:
千代有希= 2025-11-30 14:50:51 +08:00 committed by GitHub
parent 2f8444ab0b
commit 5368cb8fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 38 additions and 30 deletions

2
.gitignore vendored
View File

@ -18,3 +18,5 @@
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
pnpm-lock.yaml

View File

@ -4,7 +4,7 @@
// There are various equivalent ways to declare your Docusaurus config. // There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config // See: https://docusaurus.io/docs/api/docusaurus-config
import {themes as prismThemes} from 'prism-react-renderer'; import { themes as prismThemes } from 'prism-react-renderer';
import remarkMath from 'remark-math'; import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex'; import rehypeKatex from 'rehype-katex';
@ -65,6 +65,8 @@ const config = {
sidebarPath: './sidebars.js', sidebarPath: './sidebars.js',
remarkPlugins: [remarkMath], remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex], rehypePlugins: [rehypeKatex],
showLastUpdateAuthor: true,
showLastUpdateTime: true,
// Please change this to your repo. // Please change this to your repo.
// Remove this to remove the "edit this page" links. // Remove this to remove the "edit this page" links.
editUrl: editUrl:
@ -104,10 +106,10 @@ const config = {
src: 'img/logo.svg', src: 'img/logo.svg',
}, },
items: [ items: [
{to: '/docs/', label: '课栈', position: 'left'}, { to: '/docs/', label: '课栈', position: 'left' },
{to: '/docs/undergraduate/', label: '本科生院', position: 'left'}, { to: '/docs/undergraduate/', label: '本科生院', position: 'left' },
{to: '/docs/postgraduate/', label: '研究生院', position: 'left'}, { to: '/docs/postgraduate/', label: '研究生院', position: 'left' },
{to: 'blog', label: '博客', position: 'right'}, { to: 'blog', label: '博客', position: 'right' },
{ {
href: 'https://github.com/BetterECNU/SharedCourses', href: 'https://github.com/BetterECNU/SharedCourses',
label: 'GitHub', label: 'GitHub',
@ -116,7 +118,7 @@ const config = {
], ],
}, },
metadata: [ metadata: [
{name: 'keywords', content: 'ECNU, 华师大, 华东师范大学, 课程共享, 复习资料'}, { name: 'keywords', content: 'ECNU, 华师大, 华东师范大学, 课程共享, 复习资料' },
], ],
footer: { footer: {
style: 'dark', style: 'dark',

36
package-lock.json generated
View File

@ -9,15 +9,17 @@
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"@docusaurus/core": "3.8.1", "@docusaurus/core": "3.8.1",
"@docusaurus/plugin-content-docs": "3.8.1",
"@docusaurus/preset-classic": "3.8.1", "@docusaurus/preset-classic": "3.8.1",
"@docusaurus/theme-mermaid": "^3.8.1", "@docusaurus/theme-common": "3.8.1",
"@docusaurus/theme-mermaid": "3.8.1",
"@easyops-cn/docusaurus-search-local": "^0.52.1", "@easyops-cn/docusaurus-search-local": "^0.52.1",
"@giscus/react": "^3.1.0", "@giscus/react": "^3.1.0",
"@mdx-js/react": "^3.0.0", "@mdx-js/react": "^3.1.1",
"clsx": "^2.0.0", "clsx": "^2.1.1",
"prism-react-renderer": "^2.3.0", "prism-react-renderer": "^2.4.1",
"react": "^19.0.0", "react": "^19.2.0",
"react-dom": "^19.0.0", "react-dom": "^19.2.0",
"rehype-katex": "^7.0.1", "rehype-katex": "^7.0.1",
"remark-math": "^6.0.0" "remark-math": "^6.0.0"
}, },
@ -16552,24 +16554,24 @@
} }
}, },
"node_modules/react": { "node_modules/react": {
"version": "19.1.1", "version": "19.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", "resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
"integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", "integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/react-dom": { "node_modules/react-dom": {
"version": "19.1.1", "version": "19.2.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
"integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==", "integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"scheduler": "^0.26.0" "scheduler": "^0.27.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "^19.1.1" "react": "^19.2.0"
} }
}, },
"node_modules/react-fast-compare": { "node_modules/react-fast-compare": {
@ -17402,9 +17404,9 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/scheduler": { "node_modules/scheduler": {
"version": "0.26.0", "version": "0.27.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
"integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/schema-dts": { "node_modules/schema-dts": {

View File

@ -15,15 +15,17 @@
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "3.8.1", "@docusaurus/core": "3.8.1",
"@docusaurus/plugin-content-docs": "3.8.1",
"@docusaurus/preset-classic": "3.8.1", "@docusaurus/preset-classic": "3.8.1",
"@docusaurus/theme-mermaid": "^3.8.1", "@docusaurus/theme-common": "3.8.1",
"@docusaurus/theme-mermaid": "3.8.1",
"@easyops-cn/docusaurus-search-local": "^0.52.1", "@easyops-cn/docusaurus-search-local": "^0.52.1",
"@giscus/react": "^3.1.0", "@giscus/react": "^3.1.0",
"@mdx-js/react": "^3.0.0", "@mdx-js/react": "^3.1.1",
"clsx": "^2.0.0", "clsx": "^2.1.1",
"prism-react-renderer": "^2.3.0", "prism-react-renderer": "^2.4.1",
"react": "^19.0.0", "react": "^19.2.0",
"react-dom": "^19.0.0", "react-dom": "^19.2.0",
"rehype-katex": "^7.0.1", "rehype-katex": "^7.0.1",
"remark-math": "^6.0.0" "remark-math": "^6.0.0"
}, },