main
tag: launch-2026-06-01
tag: magicmirror-v0.1.1
tag: magicmirror-v0.3.0
tag: mnw-cli-v0.1.2
tag: mnw-cli-v0.1.3
tag: mnw-cli-v0.1.4
tag: pom-v0.4.1
tag: pom-v0.4.2
tag: pom-v0.4.3
tag: pom-v0.4.4
tag: pom-v0.4.5
tag: wam-v0.3.0
tag: wam-v0.3.1
Files
Commits
Tags
Notes
Issues
Delete generate-rustdoc.sh and the /rustdoc route
The route never served a byte in production. The script named theme-common,
which no longer exists, and resolved synckit-client and docengine under
MNW/shared/, which both left weeks ago; it wrote to rustdoc-out/ while lib.rs
served ServeDir::new("rustdoc"); and no Sando recipe ever invoked it. g2-05
already removed every link into it.
Also drops the rustdoc step from the archived legacy deploy script, which is
the emergency restore path and would otherwise call a file that is gone.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
4 files changed,
+0 insertions,
-57 deletions
49
49
|| hit(path, "/sso") // delegated "Sign in with Makenotwork" start + callback
50
50
// Static assets + browser chrome (the login page pulls CSS/JS/images).
51
51
|| hit(path, "/static")
52
-
|| hit(path, "/rustdoc")
53
52
|| path == "/favicon.ico"
54
53
|| path == "/robots.txt"
55
54
// Caddy proxies its own 404/500 to these. Gating them would answer a
122
121
"/static/geometry.css",
123
122
"/static/layout.css",
124
123
"/static/images/favicon.ico",
125
-
"/rustdoc/index.html",
126
124
"/favicon.ico",
127
125
"/robots.txt",
128
126
"/health",
567
567
))
568
568
.service(ServeDir::new("static")),
569
569
)
570
-
.nest_service(
571
-
"/rustdoc",
572
-
tower::ServiceBuilder::new()
573
-
.layer(SetResponseHeaderLayer::overriding(
574
-
axum::http::header::CACHE_CONTROL,
575
-
HeaderValue::from_static("public, max-age=86400, stale-while-revalidate=3600"),
576
-
))
577
-
.service(ServeDir::new("rustdoc")),
578
-
)
579
570
.fallback(routes::custom_domain::custom_domain_fallback)
580
571
.with_state(state.clone());
581
572
91
91
# Lives in the private docs store outside the repo (moved 2026-05-20).
92
92
rsync -az docs/business/assumptions.toml $SERVER:$REMOTE_DIR/docs/assumptions.toml
93
93
94
-
# Rustdoc (API reference for library crates)
95
-
echo "[config] Generating rustdoc..."
96
-
"$DEPLOY_DIR/generate-rustdoc.sh"
97
-
echo "[config] Uploading rustdoc..."
98
-
rsync -az --delete rustdoc-out/ $SERVER:$REMOTE_DIR/rustdoc/
99
-
100
94
# Reload systemd and restart Caddy
101
95
ssh $SSH_OPTS $SERVER "systemctl daemon-reload && systemctl restart caddy"
102
96
echo "[config] Done"
1
-
#!/bin/bash
2
-
# Generate rustdoc for shared library crates.
3
-
# Output goes to rustdoc-out/ (relative to MNW/server/).
4
-
# Run from the MNW/server directory.
5
-
6
-
set -euo pipefail
7
-
8
-
if [ ! -f "Cargo.toml" ]; then
9
-
echo "Error: Run this script from the MNW/server directory"
10
-
exit 1
11
-
fi
12
-
13
-
OUT_DIR="$(pwd)/rustdoc-out"
14
-
SHARED_DIR="$(cd ../shared && pwd)"
15
-
16
-
CRATES=("synckit-client" "docengine" "tagtree" "s3-storage" "theme-common")
17
-
18
-
rm -rf "$OUT_DIR"
19
-
mkdir -p "$OUT_DIR"
20
-
21
-
for crate in "${CRATES[@]}"; do
22
-
crate_dir="$SHARED_DIR/$crate"
23
-
if [ ! -d "$crate_dir" ]; then
24
-
echo "Warning: $crate_dir not found, skipping"
25
-
continue
26
-
fi
27
-
28
-
echo "Generating docs for $crate..."
29
-
(cd "$crate_dir" && cargo doc --no-deps --target-dir "$OUT_DIR/.target" 2>&1 | tail -1)
30
-
done
31
-
32
-
# Move generated docs from target/doc/ to output root
33
-
if [ -d "$OUT_DIR/.target/doc" ]; then
34
-
cp -r "$OUT_DIR/.target/doc/"* "$OUT_DIR/"
35
-
rm -rf "$OUT_DIR/.target"
36
-
fi
37
-
38
-
echo ""
39
-
echo "Rustdoc generated in $OUT_DIR/"
40
-
ls -1 "$OUT_DIR/" | head -20