Skip to content

[Bug]: docs: overhaul docs/README.md layout for flat-file automation #78

@Yuvraj-Sarathe

Description

@Yuvraj-Sarathe

Bug Description

Problem Statement

The current docs/README.md file contains outdated markdown table structures and relative links pointing to nested folders (e.g., ./show/README.md) that have been deleted. If the new changelog.yml automated workflow triggers with this layout intact, appending new bulleted release entries directly under the existing static table will corrupt the file formatting and break markdown rendering on GitHub.

Proposed Solution

Overwrite the current docs/README.md with a clean, normalized baseline that removes the static table and establishes a pure unordered list (*) syntax under the ## Version History header. This will allow the automated shell script's compilation engine to append incoming tags seamlessly.

To-Do Checklist

  • Remove the core **Version:** v1.2.1 static header to allow for dynamic automation titles.
  • Strip out the broken subfolder navigation links in the Command Index and format them as standard code strings (show, health, etc.).
  • Remove the markdown table element under ## Version History.
  • Populate a clean, flat unordered list structure for existing legacy versions (v1.2.1 and v1.1.0) as a tracking baseline.

Steps to Reproduce

  1. Leave the current docs/README.md file as-is with its static markdown table under the ## Version History header.
  2. Ensure the newly updated changelog.yml workflow file is pushed to the repository branch.
  3. Push a new semantic release tag (e.g., v1.2.2-test) to the remote repository to trigger the event-driven GitHub Actions runner.
  4. Observe the runner execute the automated compilation step where it tries to append the newly generated flat markdown version files directly into docs/README.md.

Expected Behavior

The automated script should cleanly append the newly discovered flat markdown version files as a structured, bulleted list under the ## Version History section. The overall docs/README.md layout should remain completely valid, properly aligned, and highly readable on GitHub.

Actual Behavior

Because the current docs/README.md layout hardcodes a static markdown table layout (| Version | Release Date | Notes |), the automated script's loop will blindly inject raw bulleted strings (* [v1.2.2-test](v1.2.2-test.md)) directly into the bottom of the raw table formatting blocks. This breaks the Markdown interpreter syntax engine completely, resulting in a shredded, corrupted, and entirely unreadable wall of text at the bottom of the landing page.

Additionally, on a brand-new repository initialization where zero version files exist yet, the ls docs/v*.md glob will instantly crash with a non-zero exit status under GitHub Actions' strict set -e execution shell context, failing the pipeline completely before it can finish.

Environment

OS: GitHub Actions Runner (Ubuntu-Latest), Workflow Engine: GitHub Actions Core CI/CD Pipeline, Scripting Shell: GNU Bash (with set -e error-trapping enabled)

Metadata

Metadata

Labels

bugSomething isn't workingcicdtype of workdocumentationImprovements or additions to documentation

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions