Fix API method metadata layout and remove spacer paragraph hacks
Some API method definitions include repeated <p> </p> blocks to prevent the right-side metadata badges/SDK references from overlapping nearby content such as tables and code blocks.
This works as a layout workaround, but it puts presentation concerns into API YAML content and creates large blank gaps, especially now that obsolete methods include “Replacement / Successor” guidance.
Suggested fix:
- Replace the inline floated metadata list in
_includes/api-template.htmlwith a named CSS class. - Update the API method layout CSS so badges/SDK references do not overlap method content.
- Make the layout responsive: keep metadata to the right on wide screens, stack it cleanly on smaller screens.
- Remove the
<p> </p>spacer paragraphs from API definition YAML once the CSS handles the layout.
Acceptance criteria:
- API badges and SDK references remain readable.
- Tables, code blocks, and successor guidance do not overlap with right-side metadata.
- Obsolete API entries no longer need blank spacer paragraphs.
-
rake test:proof:fullstill passes.