Skip to content

Commit 5e7de59

Browse files
committed
deps: update docusaraus to v2.0.0-alpha.50 and add syntax highlighting for Rust and TOML
1 parent 274c15e commit 5e7de59

File tree

4 files changed

+1479
-1223
lines changed

4 files changed

+1479
-1223
lines changed

docs/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ sidebar_label: Quick Start
77
## Quick install guide
88
if you haven't installed [Rust](https://www.rust-lang.org/) yet, here is a quick guide which using rustup:
99
```bash
10-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
10+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
1111
```
1212
After Rust is installed, you can use cargo to generate a new project:
1313
```bash
14-
cargo new my-app
14+
$ cargo new my-app
1515
```
1616
Go to `Cargo.toml` file, add this line:
1717
```toml {10}
@@ -44,5 +44,5 @@ fn main() {
4444

4545
Go to terminal type this to start your server:
4646
```bash
47-
cargo run
47+
$ cargo run
4848
```

docusaurus.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ module.exports = {
88
projectName: 'obsidian-rs.github.io', // Usually your repo name.
99
themeConfig: {
1010
disableDarkMode: true,
11+
prism: {
12+
additionalLanguages: ['rust', 'toml']
13+
},
1114
navbar: {
1215
title: 'Obsidian',
1316
// logo: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"deploy": "docusaurus deploy"
1010
},
1111
"dependencies": {
12-
"@docusaurus/core": "^2.0.0-alpha.40",
13-
"@docusaurus/preset-classic": "^2.0.0-alpha.40",
12+
"@docusaurus/core": "^2.0.0-alpha.50",
13+
"@docusaurus/preset-classic": "^2.0.0-alpha.50",
1414
"classnames": "^2.2.6",
1515
"react": "^16.8.4",
1616
"react-dom": "^16.8.4"
@@ -27,4 +27,4 @@
2727
"last 1 safari version"
2828
]
2929
}
30-
}
30+
}

0 commit comments

Comments
 (0)