Repository navigation
Getting Started/Configuration/Global options: Excape '|' in table row for sd_fontawesome_latex - #297
Conversation
"bool \| str" is an invalid escape sequence, so Python 3.12+ emits a SyntaxWarning when the package is compiled. Keep doc_type as "bool | str" and escape '|' in the docs table generator instead, which covers any future type containing a pipe.
|
Merged in bd77e8b, thanks @yvonnefroehlich, good catch! One snag: |
Sounds good! Thanks (: |
The table for the "Global options" contains a small error in the row for
sd_fontawesome_latex(please see https://sphinx-design.readthedocs.io/en/rtd-theme/get_started.html#global-options):This is because the
|in thedoc_typeis not escaped and thus considered for the table in markdown:sphinx-design/sphinx_design/config.py
Lines 245 to 252 in 4f66f32
doc_typeis used for setting up the table via:sphinx-design/docs/conf.py
Lines 142 to 161 in 4f66f32
Without escaping the
|the resulting table looks like:
With escaping the
|as\|the resulting table looks like:
yyy | zzz