ansible-community / sphinx_ansible_theme

A reusable Ansible Sphinx Theme

Home Page:https://sphinx-ansible-theme.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

table overlaps text

samccann opened this issue · comments

Summary

table overlaps text on some pages. See Contributing to Ansible-maintained Collections page, screenshot below.

Screenshot 2023-02-03 at 3 08 33 PM

@felixfontein mentioned the cause as:

it's the section [id] hack, which apparently doesn't work when a list is followed by a table...
that hack is there because of the way the header works, to avoid that if you link to an anchor directly it's hidden by the header

Link to HTML page where this happens: https://docs.ansible.com/ansible/devel/community/contributing_maintained_collections.html#ansible-maintained-collections

Simply changing line 476 to section a[id], section table[id] { should be fine. (It won't help when linking directly to a table, but that's already broken right now.)

#85 fixes this.