Skip to content

Conversation

@dfokina
Copy link
Contributor

@dfokina dfokina commented Nov 4, 2025

The Problem

  • Many of tables in docs pages either had missing header rows, or the header row was preceeded by an empty row
  • The "headerless" tables (in component docs) always had a first empty row due to markdown table limitation

Proposed Changes:

  • Add missing headers to tables
  • Implement a CSS solution for headerless tables in custom.css
  • Update the headerless tables to use className="key-value-table" for headerless rendering, only for 2.19 and 2.20-unstable. V2.18 was left unchanged to limit the review scope.

What is the difference:
OLD with empty header
Screenshot 2025-11-04 at 21 39 50
NEW
Screenshot 2025-11-04 at 21 39 57

How did you test it?

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct
  • I have updated the related issue with new insights and changes
  • I added unit tests and updated the docstrings
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I documented my code
  • I ran pre-commit hooks and fixed any issue

@vercel
Copy link

vercel bot commented Nov 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
haystack-docs Ready Ready Preview Comment Nov 4, 2025 8:40pm

@dfokina dfokina changed the title docs: fix tables formatting chore(docs): fix tables formatting Nov 4, 2025
@dfokina dfokina added the ignore-for-release-notes PRs with this flag won't be included in the release notes. label Nov 4, 2025
@dfokina dfokina marked this pull request as ready for review November 4, 2025 20:51
@dfokina dfokina requested a review from a team as a code owner November 4, 2025 20:51
@dfokina dfokina requested review from davidsbatista and removed request for a team November 4, 2025 20:51
Copy link
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidsbatista davidsbatista merged commit 9371283 into main Nov 5, 2025
14 checks passed
@davidsbatista davidsbatista deleted the headless-tables branch November 5, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release-notes PRs with this flag won't be included in the release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants