Skip to content

Commit 3850bd8

Browse files
docs: rework documentation (#238)
* Rework documentation * Address code review feedback * Add note about installing builtins * Apply suggestions from code review Co-authored-by: Till Schneidereit <till@tillschneidereit.net> * Try using cargo binstall for mdbook * Improve indentation * Fix note rendering * Use alerts for GC note * Remove duplicated section * Quote test filters --------- Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
1 parent 09ab99c commit 3850bd8

File tree

19 files changed

+790
-276
lines changed

19 files changed

+790
-276
lines changed

.github/workflows/docs.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Deploy mdbook documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
changes:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
outputs:
15+
docs-changed: ${{ steps.filter.outputs.docs == 'true' }}
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2
19+
id: filter
20+
with:
21+
filters: |
22+
docs: docs/**
23+
24+
deploy:
25+
needs: [changes]
26+
if: ${{ !contains(needs.changes.outputs.docs-changed, '[]') }}
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 3
29+
concurrency:
30+
group: ${{ github.workflow }}-${{ github.ref }}
31+
32+
steps:
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
35+
- name: Install cargo-binstall
36+
uses: cargo-bins/cargo-binstall@8aac5aa2bf0dfaa2863eccad9f43c68fe40e5ec8 # v1.14.1
37+
38+
- name: Install mdbook tools
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
42+
run: |
43+
cargo binstall --no-confirm mdbook@0.4.48
44+
cargo binstall --no-confirm mdbook-alerts@0.7.0
45+
cargo binstall --no-confirm mdbook-linkcheck@0.7.7
46+
47+
- name: Build mdbook
48+
working-directory: ./docs
49+
run: mdbook build
50+
51+
- name: Deploy
52+
uses: peaceiris/actions-gh-pages@v4
53+
if: ${{ github.ref == 'refs/heads/main' }}
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
publish_dir: ./docs/book/html
57+
keep_files: true

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
paths-ignore:
9+
- '*.md'
10+
- 'docs/**'
811
defaults:
912
run:
1013
shell: bash

ADOPTERS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# StarlingMonkey Adopters
22

3-
_If you are using StarlingMonkey in production at your organization, please add your company name to this list.
4-
The list is in alphabetical order._
3+
_If you are using StarlingMonkey in production at your organization, please add your company name to
4+
this list. The list is in alphabetical order._
55

6-
| Organization | Contact | Status | Description of Use |
7-
| - | - | - | - |
8-
| [Fastly](https://www.fastly.com) | [@guybedford](https://github.com/guybedford) | ![production](https://img.shields.io/badge/-production-blue?style=flat) | Fastly's [JS SDK](https://github.com/fastly/js-compute-runtime) for Compute at edge is powered by StarlingMonkey. |
6+
| Organization | Contact | Status | Description of Use |
7+
| ----------------------------------- | -------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| [Fastly](https://www.fastly.com) | [@guybedford](https://github.com/guybedford) | ![production](https://img.shields.io/badge/-production-blue?style=flat) | Fastly's [JS SDK](https://github.com/fastly/js-compute-runtime) for Compute at edge is powered by StarlingMonkey. |
99
| [Fermyon](https://www.fermyon.com/) | [@tschneidereit](https://github.com/tschneidereit) | ![production](https://img.shields.io/badge/-production-blue?style=flat) | [Fermyon Spin](https://www.fermyon.com/spin) supports serverless Wasm apps, using StarlingMonkey for its [Spin JS SDK](https://github.com/fermyon/spin-js-sdk). |
10-
| [Riza](https://riza.io/) | [@kyleconroy](https://github.com/kyleconroy) | ![production](https://img.shields.io/badge/-production-blue?style=flat) | The [Riza Code Interpreter API](https://docs.riza.io) relies on StarlingMonkey for isolated JavaScript execution. |
10+
| [Riza](https://riza.io/) | [@kyleconroy](https://github.com/kyleconroy) | ![production](https://img.shields.io/badge/-production-blue?style=flat) | The [Riza Code Interpreter API](https://docs.riza.io) relies on StarlingMonkey for isolated JavaScript execution. |

AUTHORS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
The portions of this code found in the initial commit are Copyright © 2021-2023 Fastly Inc. and contributors to Fastly's [js-compute-runtime project](https://github.com/fastly/js-compute-runtime/).
1+
The portions of this code found in the initial commit are Copyright © 2021-2023 Fastly Inc. and
2+
contributors to Fastly's
3+
[js-compute-runtime project](https://github.com/fastly/js-compute-runtime/).
24

35
Changes following that initial commit are Copyright © the respective contributors.

0 commit comments

Comments
 (0)