Skip to content

Commit 4beabe8

Browse files
Copilotnetwormix
andauthored
Fix documentation formatting issues (#94)
* Initial plan * Fix all documentation formatting issues Co-authored-by: networmix <8641344+networmix@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: networmix <8641344+networmix@users.noreply.github.com>
1 parent b2451ba commit 4beabe8

9 files changed

Lines changed: 25 additions & 24 deletions

File tree

.markdownlint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"MD007": false,
33
"MD013": false,
4+
"MD024": false,
45
"MD033": false,
56
"MD036": false,
67
"MD041": false,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ workflow:
153153
154154
## Repository Structure
155155
156-
```
156+
```text
157157
ngraph/ # Python package source
158158
dsl/ # Scenario parsing and blueprint expansion
159159
model/ # Network and flow domain models

dev/dev.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ make docs-serve # Serve docs locally
2020

2121
## Key Development Files
2222

23-
```
23+
```text
2424
pyproject.toml # Package config, dependencies, tool settings
2525
Makefile # Development commands
2626
.pre-commit-config.yaml # Code quality hooks
@@ -29,7 +29,7 @@ dev/run-checks.sh # Manual code quality checks
2929

3030
## Git Workflows
3131

32-
```
32+
```text
3333
.github/workflows/
3434
├── python-test.yml # CI: tests, linting, type checking
3535
├── docs.yml # Auto-deploy documentation

docs/examples/clos-fabric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ print("Uneven WCMP:", wcmp)
206206

207207
Example output:
208208

209-
```
209+
```text
210210
Baseline ECMP: {('b1|b2', 'b1|b2'): 256.0}
211211
Baseline WCMP: {('b1|b2', 'b1|b2'): 256.0}
212212
Uneven ECMP: {('b1|b2', 'b1|b2'): 64.0}

docs/reference/api-full.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Typical usage example:
262262
- `workflow` (List[WorkflowStep])
263263
- `failure_policy_set` (FailurePolicySet) = FailurePolicySet(policies={})
264264
- `traffic_matrix_set` (TrafficMatrixSet) = TrafficMatrixSet(matrices={})
265-
- `results` (Results) = Results(_store={}, _metadata={}, _active_step=None, _scenario={})
265+
- `results` (Results) = Results(\_store={}, \_metadata={}, \_active_step=None, \_scenario={})
266266
- `components_library` (ComponentsLibrary) = ComponentsLibrary(components={})
267267
- `seed` (Optional[int])
268268

docs/reference/design.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ These configurations enable realistic modeling of diverse forwarding behaviors:
546546
For traffic matrix placement, NetGraph provides `FlowPolicyPreset` values that bundle the routing semantics described above into convenient configurations. These presets map to real-world network behaviors:
547547

548548
| Preset | Behavior | Use Case |
549-
|--------|----------|----------|
549+
| -------- | ---------- | ---------- |
550550
| `SHORTEST_PATHS_ECMP` | IP/IGP with hash-based ECMP | Traditional routers (OSPF/IS-IS), equal splits across equal-cost paths |
551551
| `SHORTEST_PATHS_WCMP` | IP/IGP with weighted ECMP | Routers with WCMP support, proportional splits based on link capacity |
552552
| `TE_WCMP_UNLIM` | MPLS-TE / SDN with WCMP | Capacity-aware TE with unlimited tunnels, iterative placement |
@@ -556,7 +556,7 @@ For traffic matrix placement, NetGraph provides `FlowPolicyPreset` values that b
556556
**Detailed Configuration Mapping (preset internals):**
557557

558558
| Preset | `require_capacity` | `multi_edge` | `max_flow_count` | `flow_placement` |
559-
|--------|--------------------|--------------|------------------|------------------|
559+
| -------- | -------------------- | -------------- | ------------------ | ------------------ |
560560
| `SHORTEST_PATHS_ECMP` | `false` | `true` | `1` | `EQUAL_BALANCED` |
561561
| `SHORTEST_PATHS_WCMP` | `false` | `true` | `1` | `PROPORTIONAL` |
562562
| `TE_WCMP_UNLIM` | `true` | `true` | unlimited | `PROPORTIONAL` |

docs/reference/dsl.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ network:
7373
links:
7474
- source: SEA
7575
target: SFO
76-
link_params:
77-
capacity: 200
78-
cost: 6846
79-
risk_groups: ["RiskGroup1", "RiskGroup2"]
80-
attrs:
81-
distance_km: 1369.13
82-
media_type: "fiber"
83-
hardware:
84-
source: {component: "800G-ZR+", count: 1}
85-
target: {component: "1600G-2xDR4", count: 1}
76+
link_params:
77+
capacity: 200
78+
cost: 6846
79+
risk_groups: ["RiskGroup1", "RiskGroup2"]
80+
attrs:
81+
distance_km: 1369.13
82+
media_type: "fiber"
83+
hardware:
84+
source: {component: "800G-ZR+", count: 1}
85+
target: {component: "1600G-2xDR4", count: 1}
8686
```
8787

8888
Recognized keys for each link entry:

docs/reference/workflow.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ workflow:
2121
- step_type: MaximumSupportedDemand
2222
name: msd_baseline
2323
matrix_name: baseline_traffic_matrix
24-
- step_type: TrafficMatrixPlacement
25-
name: tm_placement
26-
matrix_name: baseline_traffic_matrix
27-
failure_policy: random_failures
28-
iterations: 1000
29-
baseline: true
24+
- step_type: TrafficMatrixPlacement
25+
name: tm_placement
26+
matrix_name: baseline_traffic_matrix
27+
failure_policy: random_failures
28+
iterations: 1000
29+
baseline: true
3030
```
3131
3232
## Execution Model

tests/integration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ The integration tests framework follows a **hybrid approach** for template usage
314314
### Template Selection Guide
315315

316316
| Test Type | Recommended Approach | Example |
317-
|-----------|---------------------|---------|
317+
| ----------- | --------------------- | --------- |
318318
| Basic Integration | YAML files + template variants | `test_scenario_1.py` |
319319
| Error Cases | Template builders | `ErrorInjectionTemplates.missing_nodes_builder()` |
320320
| Edge Cases | Template builders | `EdgeCaseTemplates.empty_network_builder()` |

0 commit comments

Comments
 (0)