Skip to content

Commit

Permalink
Update dependencies and add new files
Browse files Browse the repository at this point in the history
  • Loading branch information
Musicminion committed Dec 28, 2023
1 parent 2d61e42 commit ba5d757
Show file tree
Hide file tree
Showing 8 changed files with 10,180 additions and 15,446 deletions.
File renamed without changes.
29 changes: 28 additions & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,37 @@
sidebar_position: 1
---

import OfficePreview from '@site/src/components/OfficePreview/index';

<OfficePreview place = "/ppt/CSE-03inode-fs.pptx"/>

# Readme

欢迎来到我的笔记!

## 公式
## 公式测试
$1+1=2$

$$
\int_0^{+\infty} e^{-x} dx = 1
$$

## 流程图测试
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```

## List测试

- 第一行
- 第二行

1. 第一行
2. 第二行

## PPT测试

22 changes: 14 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import {themes as prismThemes} from 'prism-react-renderer';


const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

const math = require('remark-math');
const katex = require('rehype-katex');

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -46,8 +46,8 @@ const config = {
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/ayaka-notes/template-notes/tree/main/',
remarkPlugins: [math],
rehypePlugins: [katex],
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
blog: {
showReadingTime: true,
Expand All @@ -73,6 +73,12 @@ const config = {
},
],

markdown: {
mermaid: true,
},

themes: ['@docusaurus/theme-mermaid'],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down Expand Up @@ -161,8 +167,8 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Musicminon, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.github,
darkTheme: prismThemes.dracula
},
}),
};
Expand Down
Loading

0 comments on commit ba5d757

Please sign in to comment.