Skip to content

Commit ed1f826

Browse files
Merge pull request #146 from vados-cosmonic/feat=improve-js-lang-docs
feat: improve JS lang docs
2 parents 8e38718 + b9ed460 commit ed1f826

File tree

4 files changed

+522
-39
lines changed

4 files changed

+522
-39
lines changed

.github/workflows/mdbook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
env:
3232
MDBOOK_VERSION: 0.4.21
3333
SITEMAP_GEN_VERSION: 0.2.0
34+
ALERTS_VERSION: 0.6.7
3435
PUBLISH_DOMAIN: component-model.bytecodealliance.org
3536
steps:
3637
- uses: actions/checkout@v3
@@ -40,6 +41,7 @@ jobs:
4041
rustup update
4142
cargo install --version ${MDBOOK_VERSION} mdbook
4243
cargo install --version ${SITEMAP_GEN_VERSION} mdbook-sitemap-generator
44+
cargo install --version ${ALERTS_VERSION} mdbook-alerts
4345
- name: Setup Pages
4446
id: pages
4547
uses: actions/configure-pages@v3

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ You can run the website locally using the [mdBook](https://rust-lang.github.io/m
1010

1111
To use this repository, you need [mdBook](https://rust-lang.github.io/mdBook/guide/installation.html) installed on your workstation.
1212

13+
This repository also makes use of mdBook plugins. To install mdBook and the plugins for this project, you can use [`cargo`][cargo]:
14+
15+
```console
16+
cargo install --version 0.4.21 mdbook
17+
cargo install --version 0.2.0 mdbook-sitemap-generator
18+
cargo install --version 0.6.7 mdbook-alerts
19+
```
20+
21+
[cargo]: https://doc.rust-lang.org/cargo
22+
1323
### Running the website locally
1424

1525
After installing mdBook, you'll need to clone the code via git and navigate to the directory.

component-model/book.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ title = "The WebAssembly Component Model"
88
[output.html]
99
git-repository-url = "https://github.com/bytecodealliance/component-docs/tree/main/component-model"
1010
edit-url-template = "https://github.com/bytecodealliance/component-docs/tree/main/component-model/{path}"
11-
additional-css = ["theme/head.hbs"]
11+
additional-css = ["theme/head.hbs"]
12+
13+
[preprocessor.alerts]

0 commit comments

Comments
 (0)