Commit c729553
committed
docs(style): Strip badges from sidebar via SphinxContentsFilter
Monkeypatch SphinxContentsFilter to raise SkipNode for all badge node
types (_safety_badge_node, _resource_badge_node, _model_badge_node).
This is the same pattern Sphinx uses for visit_image in titles.
Badges stay inside nodes.title for proper heading rendering, but are
stripped during toctree text extraction so the sidebar shows clean
tool names without badge text or emoji leakage.
Add CSS to size badges at 0.5em within h1/h2 headings for medium
button appearance rather than full-scale heading text.1 parent 84c2cfd commit c729553
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1997 | 1997 | | |
1998 | 1998 | | |
1999 | 1999 | | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
2000 | 2013 | | |
2001 | 2014 | | |
2002 | 2015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
| |||
0 commit comments