Skip to content

Commit 7b6d24e

Browse files
committed
docs: reorganize docs files
1 parent b388c0e commit 7b6d24e

File tree

18 files changed

+38
-44
lines changed

18 files changed

+38
-44
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ jobs:
4848
4949
- name: Build book
5050
run: |
51-
cd backend
52-
chmod u+x example/assets/bin/* && cp example/assets/bin/* /usr/local/bin
53-
cargo build --release && mdbook build example
51+
cargo build --release --manifest-path backend/Cargo.toml
52+
chmod u+x docs/assets/bin/* && cp docs/assets/bin/* /usr/local/bin && mdbook build docs
5453
5554
- name: Merge build assets
5655
run: |
57-
mv backend/example/book build
56+
mv docs/book build
5857
mv frontend/dist build/embed
5958
6059
- name: Deploy to github pages

backend/Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ version = "0.2.3"
44
edition = "2021"
55
license = "MIT"
66
readme = "../README.md"
7-
exclude = ["example/*"]
87
keywords = ["mdbook", "repl", "plugin", "preprocessor"]
98
authors = ["MR-Addict <MR-Addict@qq.com>"]
109
repository = "https://github.com/MR-Addict/mdbook-repl"
1110
documentation = "https://mr-addict.github.io/mdbook-repl"
12-
description = "A rust based mdbook preprocessor plugin that allows you to live code in your markdown book."
11+
description = "A rust based mdbook preprocessor that allows you to execute code in your mdbook without any server. Python, Typescript, Javascript etc."
1312

1413
[dependencies]
1514
clap = "4.5.0"
File renamed without changes.
File renamed without changes.

backend/example/book.toml renamed to docs/book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ heading-split-level = 3
4747
copy-js = true
4848

4949
[preprocessor.repl]
50-
command = "target/release/mdbook-repl"
50+
command = "backend/target/release/mdbook-repl"
5151

5252
# iframe url
5353
src = "https://mr-addict.github.io/mdbook-repl/embed/"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

backend/example/src/usage.md renamed to docs/src/usage.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Usage
22

3-
This preprocessor is designed to be used with [mdbook](https://rust-lang.github.io/mdBook). If you want to use this repl in your own web project other thatn mdbook, you can have a look at [For Developers](for-developers.md) section.
3+
This preprocessor is designed to be used with [mdbook](https://rust-lang.github.io/mdBook). If you want to use this repl in your own web project other than mdbook, you can have a look at [For Developers](for-developers.md) section.
44

55
## Installation
66

@@ -82,13 +82,11 @@ Here is the full list of extensions:
8282

8383
You can also specific some options for the each codeblock. For example, you can specify the **readonly** for the codeblock:
8484

85-
<pre><code>
86-
&#96;&#96;&#96;javascript,readonly
85+
<pre><code class="language-markdown">&#96;&#96;&#96;javascript,readonly
8786
// javascript codeblock
8887

8988
console.log("Hello, world!");
90-
&#96;&#96;&#96;
91-
</code></pre>
89+
&#96;&#96;&#96;</code></pre>
9290

9391
And the codeblock will not be eidtable:
9492

@@ -100,13 +98,11 @@ console.log("Hello, world!");
10098

10199
If you put **norepl** option in the codeblock:
102100

103-
<pre><code>
104-
&#96;&#96;&#96;javascript,norepl
101+
<pre><code class="language-markdown">&#96;&#96;&#96;javascript,norepl
105102
// javascript codeblock
106103

107104
console.log("Hello, world!");
108-
&#96;&#96;&#96;
109-
</code></pre>
105+
&#96;&#96;&#96;</code></pre>
110106

111107
And it will not be rendered by this preprocessor:
112108

0 commit comments

Comments
 (0)