Skip to content

Commit

Permalink
Merge pull request #1802 from mhsmith/support-circles
Browse files Browse the repository at this point in the history
Make API support table circles a more consistent size
  • Loading branch information
freakboy3742 authored Mar 5, 2023
2 parents 94455b5 + 5b406bd commit 26ed94e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build:
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

# Build docs as PDF (other options are epub and htmlzip)
formats:
Expand Down
1 change: 1 addition & 0 deletions changes/1802.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make API support table circles a more consistent size
7 changes: 7 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ table.docutils {
font-size: var(--font-size--normal);
font-weight: bold;
}

span.beta, span.stable {
/* Use fonts where the black and white circles have consistent size and alignment. */
font-family: Arial, "Lucida Grande", sans-serif;
font-size: x-large;
line-height: 1;
}
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@

# API status indicators.
rst_prolog = """
.. |y| replace:: ●
.. |b| replace:: ○
.. role:: stable
.. role:: beta
.. |y| replace:: :stable:`●`
.. |b| replace:: :beta:`○`
"""


Expand Down
2 changes: 1 addition & 1 deletion docs/reference/style/pack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties exist to control color, text alignment and so on.
It is similar in some ways to the CSS Flexbox algorithm; but dramatically
simplified, as there is no allowance for overflowing boxes.

.. admonition::
.. note::

The string values defined here are the string literals that the Pack
algorithm accepts. These values are also pre-defined as Python constants in
Expand Down

0 comments on commit 26ed94e

Please sign in to comment.