Skip to content

Commit af9127e

Browse files
GiggleLiuclaude
andcommitted
docs: remove JSON viewer, fix arch.md text
- Remove JSON tree viewer JS/CSS (not working well) - Simplify reduction_graph.json description - Keep collapsible details for JSON examples 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4d7f26f commit af9127e

5 files changed

Lines changed: 6 additions & 168 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ mdbook:
6060
mdbook build
6161
rm -rf book/api
6262
cp -r target/doc book/api
63-
@-fuser -k 3001/tcp 2>/dev/null || true
63+
@-lsof -ti:3001 | xargs kill 2>/dev/null || true
6464
@echo "Serving at http://localhost:3001"
6565
python3 -m http.server 3001 -d book &
66-
@sleep 1 && xdg-open http://localhost:3001
66+
@sleep 1 && (command -v xdg-open >/dev/null && xdg-open http://localhost:3001 || open http://localhost:3001)
6767

6868
# Generate all example JSON files for the paper
6969
REDUCTION_EXAMPLES := $(patsubst examples/%.rs,%,$(wildcard examples/reduction_*.rs))

book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ src = "docs/src"
99
default-theme = "navy"
1010
git-repository-url = "https://github.com/CodingThrust/problem-reductions"
1111
edit-url-template = "https://github.com/CodingThrust/problem-reductions/edit/main/{path}"
12-
additional-css = ["docs/src/static/theme-images.css", "docs/src/static/json-viewer.css"]
13-
additional-js = ["docs/src/static/json-viewer.js"]
12+
additional-css = ["docs/src/static/theme-images.css"]
13+
additional-js = []
1414
no-section-label = false
1515

1616
[output.html.fold]

docs/src/arch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ MaximumIndependentSet/Weighted # weighted objective
3333

3434
Evaluating a configuration returns both validity and objective value:
3535

36-
```rust
36+
```rust,ignore
3737
let config = vec![1, 0, 1, 0]; // Variable assignments
3838
let result = problem.solution_size(&config);
3939
// result.is_valid: bool
@@ -150,7 +150,7 @@ Variant IDs follow the pattern `ProblemName[/GraphType][/Weighted]`:
150150
| `MaximumIndependentSet/Weighted` | Weighted objective |
151151
| `MaximumIndependentSet/GridGraph/Weighted` | Both |
152152

153-
The graph is exported to [`reduction_graph.json`](reductions/reduction_graph.json) for visualization and documentation:
153+
The graph data is stored in [`reduction_graph.json`](reductions/reduction_graph.json):
154154

155155
<details>
156156
<summary>Schema</summary>

docs/src/static/json-viewer.css

Lines changed: 0 additions & 76 deletions
This file was deleted.

docs/src/static/json-viewer.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)