Skip to content

Commit 966f897

Browse files
committed
icon aliases file working on all pages, sized properly
1 parent 639794c commit 966f897

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

docs/_static/css/civic.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ figcaption {
7373
.image-table td {
7474
vertical-align: top !important;
7575
}
76+
/* TEST */
77+
.cvc-icon {
78+
display: inline-block;
79+
width: 1em;
80+
height: 1em;
81+
}

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
project = u'CIViC'
23-
copyright = u'2022, The McDonnell Genome Institute at Washington University School of Medicine'
23+
copyright = u'2023, The McDonnell Genome Institute at Washington University School of Medicine'
2424
author = u'The McDonnell Genome Institute at Washington University School of Medicine'
2525

2626
# The short X.Y version
@@ -184,10 +184,15 @@
184184
'override_image_directive': False
185185
}
186186

187+
# -- Global Prolog RST --------------------------------------------------
188+
# Currently used to make CIViC Icon SVG aliases available globally
189+
rst_epilog = """
190+
.. include:: /cvc-icon-aliases.rst
191+
"""
192+
187193
# A list of files that should not be packed into the epub file.
188194
epub_exclude_files = ['search.html']
189195

190-
191196
def setup(app):
192197
app.add_css_file("css/civic.css")
193198
app.add_css_file("css/theme_overrides.css")

docs/cvc-icon-aliases.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. |adverseresponse| image:: /images/icons/attribute/adverseresponse-outline.svg
2+
:class: 'cvc-icon'
3+
4+
.. |benign| image:: /images/icons/attribute/benign-outline.svg
5+
:class: 'cvc-icon'
6+
7+
.. |betteroutcome| image:: /images/icons/attribute/betteroutcome-outline.svg
8+
:class: 'cvc-icon'

docs/model/evidence/significance.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ The available options for Significance depend on the Evidence Type selected for
1111
.. rubric:: Significance for Predictive Evidence
1212
.. list-table::
1313
:widths: 25 5 70
14-
:header-rows: 1
14+
:header-rows: 0
1515

1616
* - Significance
1717
- Symbol
1818
- Definition
1919
* - Sensitivity/Response
20-
- |heart|
20+
- |benign|
2121
- Associated with a clinical or preclinical response to treatment
2222
* - Reduced Sensitivity
23-
- |heart-o|
23+
- |betteroutcome|
2424
- Response to treatment is lower than seen in other treatment contexts
2525
* - Resistance
2626
- |ban|

0 commit comments

Comments
 (0)