diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-03-21 01:11:03 +0200 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-03-21 01:11:03 +0200 |
| commit | 647ce9fa84dae54555afcf669239950e4f53bc8f (patch) | |
| tree | de0de36365eebc4ce7d92cf07ab0eb1fcffaeaaf | |
| parent | cc5f2e5db89617d82ece6688e9f79d51384ff4c9 (diff) | |
| download | vyos-documentation-647ce9fa84dae54555afcf669239950e4f53bc8f.tar.gz vyos-documentation-647ce9fa84dae54555afcf669239950e4f53bc8f.zip | |
Add design spec for documentation improvements
Covers 4 work streams: mechanical fixes (headings, indentation, typos),
content quality (TODO flags, TBD fills, stub markers), structural
reorganization (troubleshooting split, contributing index, VPN cleanup),
and RTD platform cleanup (hide versions, delete stale redirects).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| -rw-r--r-- | docs/superpowers/specs/2026-03-21-docs-improvements-design.md | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/docs/superpowers/specs/2026-03-21-docs-improvements-design.md b/docs/superpowers/specs/2026-03-21-docs-improvements-design.md new file mode 100644 index 00000000..77a15a9c --- /dev/null +++ b/docs/superpowers/specs/2026-03-21-docs-improvements-design.md @@ -0,0 +1,209 @@ +# VyOS Documentation Improvements — Design Spec + +**Date:** 2026-03-21 +**Scope:** Documentation quality, consistency, structure, and RTD platform cleanup +**Delivery:** 4 separate PRs + direct RTD API actions + +--- + +## PR 1: Mechanical Fixes (`fix/docs-mechanical-cleanup`) + +### Heading Hierarchy (37 files) + +Every RST file must start with `#####` as its first heading. Fix 37 files that use `=`, `*`, or `^` instead. + +**Affected files:** + +Using `=` as first heading: +- `automation/command-scripting.rst` +- `automation/terraform/terraformAWS.rst` +- `automation/terraform/terraformAZ.rst` +- `automation/terraform/terraformGoogle.rst` +- `automation/terraform/terraformvSphere.rst` +- `automation/terraform/terraformvyos.rst` +- `automation/vyos-ansible.rst` +- `automation/vyos-govyos.rst` +- `automation/vyos-napalm.rst` +- `automation/vyos-netmiko.rst` +- `automation/vyos-pyvyos.rst` +- `automation/vyos-salt.rst` +- `configexamples/firewall.rst` +- `configexamples/index.rst` +- `configexamples/wan-load-balancing.rst` +- `configuration/highavailability/index.rst` +- `configuration/interfaces/openvpn-examples.rst` +- `configuration/interfaces/tunnel.rst` +- `configuration/loadbalancing/wan.rst` +- `configuration/service/mdns.rst` +- `configuration/vpn/ipsec/remoteaccess_ipsec.rst` +- `installation/update.rst` +- `vpp/configuration/ipfix.rst` + +Using `^` as first heading: +- `configexamples/azure-vpn-bgp.rst` +- `configexamples/azure-vpn-dual-bgp.rst` +- `configexamples/fwall-and-bridge.rst` +- `configexamples/fwall-and-vrf.rst` +- `configexamples/policy-based-ipsec-and-firewall.rst` +- `configexamples/site-2-site-cisco.rst` +- `configexamples/zone-policy.rst` +- `configuration/system/ip.rst` + +Using `*` as first heading: +- `configuration/system/lcd.rst` +- `installation/virtual/docker.rst` +- `installation/virtual/libvirt.rst` +- `installation/virtual/proxmox.rst` +- `operation/information.rst` + +**Approach:** For each file, replace the first heading underline/overline character with `#`, keeping the same length. Adjust subsequent heading levels downward if needed to maintain proper hierarchy. + +### Indentation (205 lines) + +Replace tab characters with 2-space indentation in RST files. Primary offender: `configuration/trafficpolicy/index.rst` (14+ lines). + +### Typos (2 files) + +- `configuration/index.rst`: "respresent" → "represent" +- `configuration/system/sysctl.rst` line 7: "chapeter" → "chapter" + +### Metadata Formatting (1 file) + +- `configuration/policy/index.rst` line 1: `:lastproofread:2021-07-12` → `:lastproofread: 2021-07-12` (add missing space) + +--- + +## PR 2: Content Quality (`fix/docs-content-quality`) + +### TODO Comments for Raw Command Blocks (12 files) + +Add `.. TODO:: Convert raw command blocks to cfgcmd/opcmd directives` near the top of these files: + +- `configuration/vpn/ipsec/remoteaccess_ipsec.rst` +- `configuration/vpn/ipsec/troubleshooting_ipsec.rst` +- `configuration/vpn/rsa-keys.rst` +- `configuration/vpn/openconnect.rst` +- `configuration/nat/nat64.rst` +- `configuration/nat/nat66.rst` +- `configuration/loadbalancing/wan.rst` +- `configuration/firewall/index.rst` +- `configuration/service/snmp.rst` +- `configuration/policy/examples.rst` +- `configuration/interfaces/vti.rst` +- `configuration/interfaces/openvpn-examples.rst` + +### Fill TBD Placeholders (2 files) + +- `configuration/system/flow-accounting.rst` line 87: Replace `TBD` with description of the `syslog-facility` parameter (controls which syslog facility flow-accounting messages are sent to). +- `configuration/protocols/static.rst` line 274: Replace `TBD` with brief content about alternate routing tables (VRF-based routing table selection for static routes). + +### Stub Page Admonitions (3 files) + +Add `.. note:: This page is a stub and needs expansion. Contributions welcome.` to: + +- `installation/virtual/eve-ng.rst` +- `installation/cloud/oracle.rst` +- `configuration/system/sysctl.rst` + +--- + +## PR 3: Structural Reorganization (`fix/docs-structural-reorg`) + +### Split `troubleshooting/index.rst` + +Current file: 461 lines covering 5 distinct topics. Split into: + +| New File | Content | Source Lines | +|---|---|---| +| `troubleshooting/index.rst` | Intro + toctree only | Lines 1–9 (rewritten) | +| `troubleshooting/connectivity.rst` | Ping, traceroute, mtr, IPv6 discovery | Lines 12–158 | +| `troubleshooting/interfaces.rst` | Interface names, MAC address issues | Lines 160–199 | +| `troubleshooting/monitoring.rst` | Traffic dumps, bandwidth, iperf, monitor command | Lines 201–358 | +| `troubleshooting/terminal.rst` | Console clearing, counter resets | Lines 360–401 | +| `troubleshooting/system.rst` | Boot steps, system information | Lines 404–461 | + +New `troubleshooting/index.rst` content: + +```rst +.. _troubleshooting: + +############### +Troubleshooting +############### + +Sometimes things break or don't work as expected. This section describes +several troubleshooting tools provided by VyOS that can help when something +goes wrong. + +.. toctree:: + :maxdepth: 1 + + connectivity + interfaces + monitoring + terminal + system +``` + +Each sub-page gets a proper `#####` title heading. + +### Create `contributing/index.rst` + +Create `contributing/index.rst` with title and toctree listing the 7 existing pages. Update root `index.rst` "Development" toctree to reference `contributing/index` instead of individual pages. + +### Clean up VPN "pages to sort" + +- `configuration/vpn/index.rst`: Remove "pages to sort" text, integrate `dmvpn` into the main toctree +- `configuration/vpn/ipsec/index.rst`: Remove empty second toctree + +--- + +## RTD Platform Cleanup (Direct API Actions) + +### Hide Inactive Versions (17 versions) + +Set `hidden: true` via PATCH on these inactive version slugs: + +- `revert-1544-t6652-current` +- `mergify-bp-sagitta-pr-1533` +- `vpp-next` +- `1.4.3`, `1.4.0` +- `1.3.8`, `1.3.7`, `1.3.6`, `1.3.5`, `1.3.4`, `1.3.3-epa1`, `1.3.3`, `1.3.2` +- `1.2.9-s1` +- `vyos_1.2-2019q4` +- `stable` +- `current` + +### Delete Disabled Redirects (2 redirects) + +Delete redirect IDs for: +- `changelog.html` → `changelog/$(version).html` (disabled, broken) +- `installation/vyos-on-baremetal.html` → `installation/bare-metal.html` (disabled, obsolete) + +### No Action Items + +- **Translations:** Locale directories kept as-is for future use +- **PDF for 1.2:** Left as-is (EOL version) + +--- + +## Execution Order + +1. **PR 1** (mechanical fixes) — no dependencies, merge first +2. **PR 2** (content quality) — no dependencies on PR 1, can be parallel +3. **PR 3** (structural reorg) — should go after PR 1 to avoid merge conflicts on shared files +4. **RTD cleanup** — independent, can run anytime + +## Success Criteria + +- All 37 heading hierarchy violations fixed +- Zero tab characters in RST files +- Zero typos in the identified files +- 12 files flagged with TODO for directive conversion +- Zero TBD placeholders remaining +- 3 stub pages clearly marked +- `troubleshooting/` split into 5 focused sub-pages +- `contributing/` has proper index page +- VPN section has no "pages to sort" placeholders +- RTD version list shows only 4 active, relevant versions +- No disabled redirects remain |
