Skip to content

Commit c2c800c

Browse files
author
Niko Matsakis
committed
experimentally add a dev-container
it needs the github CLI though
1 parent 48672e7 commit c2c800c

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
3+
{
4+
"name": "Rust",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
7+
"features": {
8+
"ghcr.io/eitsupi/devcontainer-features/mdbook:1": {},
9+
"ghcr.io/guiyomh/features/just:0": {}
10+
}
11+
12+
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
13+
// "mounts": [
14+
// {
15+
// "source": "devcontainer-cargo-cache-${devcontainerId}",
16+
// "target": "/usr/local/cargo",
17+
// "type": "volume"
18+
// }
19+
// ]
20+
21+
// Features to add to the dev container. More info: https://containers.dev/features.
22+
// "features": {},
23+
24+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
25+
// "forwardPorts": [],
26+
27+
// Use 'postCreateCommand' to run commands after the container is created.
28+
// "postCreateCommand": "rustc --version",
29+
30+
// Configure tool-specific properties.
31+
// "customizations": {},
32+
33+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34+
// "remoteUser": "root"
35+
}

mdbook-goals/src/re.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ lazy_static! {
3737
pub static ref TRACKED_ISSUES_QUERY: Regex =
3838
Regex::new(r"^\| *Tracked +issues *\| *\[([^ ]*) ([^]]*)\]\(.*\) *\| *$").unwrap();
3939
}
40+
41+
lazy_static! {
42+
pub static ref SEE_ALSO_QUERY: Regex =
43+
Regex::new(r"^\| *See also *\| ([^, ]+,|[^, ] )+ *\| *$").unwrap();
44+
}

0 commit comments

Comments
 (0)