Skip to content

Commit c64a78d

Browse files
authored
Merge pull request #145 from griffithlab/v2-icons
attribute list-tables now up-to-date w/ client
2 parents 40e6c0e + ba6661f commit c64a78d

File tree

135 files changed

+2751
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+2751
-127
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We welcome contributions to the documentation. If you wish to contribute a clari
1111
After you've forked and cloned the repository, install [Sphinx](https://www.sphinx-doc.org/en/master/), a [reStructuredText](http://docutils.sourceforge.net/rst.html) documentation generator, and [sphinx-autobuild](https://pypi.org/project/sphinx-autobuild/), a utility that will host and update the documentation as you work:
1212

1313
```
14-
pip install sphinx sphinx-autobuild sphinx-fontawesome sphinxcontrib-images
14+
pip install sphinx sphinx-autobuild sphinx-fontawesome sphinxcontrib-images sphinx-rtd-theme
1515
```
1616

1717
These docs also depend on a custom fork of the `sphinxcontrib-programoutput` extension. It can be installed by running:
@@ -60,8 +60,8 @@ git push origin doc-update
6060

6161
Then visit the [civic-docs pull requests page](https://github.com/griffithlab/civic-docs/pulls). Github should display a message asking you if you'd like to create a pull request from the new branch you just pushed. Create the pull request with a short description of your contribution. A CIViC maintainer will evaluate your contribution and will likely merge it with the master branch, which will then be published. Thanks for your contributions!
6262

63-
6463
## Setting up Sphinx to work in Docker
64+
6565
If you wind up in Python dependency hell getting Sphinx to work, you may want to try working in a Docker image by doing something like the following:
6666

6767
```
@@ -74,4 +74,3 @@ sphinx-autobuild --host 0.0.0.0 --port 8000 ./ ./_build/html
7474
```
7575

7676
To view the updated docs site in your web browser go to: http://0.0.0.0:8000/. Once you are satisfied, submit a pull request as described above.
77-

docs/_static/css/civic.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,36 @@ figcaption {
7373
.image-table td {
7474
vertical-align: top !important;
7575
}
76+
77+
/* class applied to aliases defined in generated/civic.docs-aliases.rst */
78+
.cvc-icon {
79+
display: inline-block;
80+
width: 1em;
81+
height: 1em;
82+
}
83+
84+
/* custom styles for entity-icon-description tables */
85+
.cvc-icon-table tr td {
86+
vertical-align: top !important;
87+
}
88+
89+
/* display icons in a tag-like box */
90+
.cvc-icon-table tr td:nth-child(2) p {
91+
background-color: #404040 !important;
92+
display: block;
93+
text-align: center;
94+
padding: 1px 3px 3px 3px;
95+
border-radius: 2px;
96+
}
97+
98+
/* default icon color is a light grey, use css filter to brighten them */
99+
.cvc-icon-table tr td:nth-child(2) img.cvc-icon {
100+
filter: brightness(5) !important;
101+
vertical-align: middle !important;
102+
margin-top: -2px !important;
103+
}
104+
105+
/* align icon names to the right */
106+
.cvc-icon-table tr td:nth-child(1) p {
107+
text-align: right !important;
108+
}
Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
11
/* override table width restrictions */
22
@media screen and (min-width: 767px) {
3-
.wy-table-responsive table td {
4-
/* !important prevents the common CSS stylesheets from overriding
3+
.wy-table-responsive table td {
4+
/* !important prevents the common CSS stylesheets from overriding
55
this as on RTD they are loaded after this stylesheet */
6-
white-space: normal !important;
7-
}
6+
white-space: normal !important;
7+
}
88

9-
.wy-table-responsive {
10-
overflow: visible !important;
11-
}
9+
.wy-table-responsive {
10+
overflow: visible !important;
11+
}
12+
}
13+
14+
/* improvements to theme's odd table defaults */
15+
table.docutils th {
16+
padding: 6px 8px !important;
17+
min-height: unset !important;
18+
}
19+
20+
table.docutils th p {
21+
line-height: 1.2em !important;
22+
font-weight: normal !important;
23+
font-size: 1em !important;
24+
font-style: oblique;
25+
margin: 0 !important;
26+
color: #404040 !important;
27+
}
28+
table.docutils td {
29+
padding: 6px 8px !important;
30+
}
31+
table.docutils td p {
32+
line-height: 1.2em !important;
1233
}

docs/about/meetings.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Upcoming Meetings & Events
1313
:Sign Up: Via `CGC Registration page <https://www.cancergenomics.org/meetings/registration.php>`_
1414
:Topics: Propose topics on `GitHub <https://github.com/genome/civic-meeting/issues>`_
1515
:Agenda: `Hackathon Program (PDF) <https://www.cancergenomics.org/docs/cgc-hackathon-handout_2023.pdf>`_
16+
1617
.. rubric:: Description
1718

1819
The Jamboree/Hackathon will focus on promoting the standardization and dissemination of knowledge of the clinical significance of cancer variants. The hackathon and curation jamboree will be held as a pre-meeting of the 2023 Cancer Genomics Consortium (CGC) Annual Conference and co-hosted by the `Variant Interpretation for Cancer Consortium (VICC) <https://cancervariants.org/>`_, `CIViC <https://civicdb.org/>`_ and `ClinGen Somatic <https://www.clinicalgenome.org/working-groups/clinical-domain/somatic-cancer-cdwg/>`_.
@@ -102,6 +103,3 @@ The 2016 CIViC hackathon and jamboree took the form of an unconference with some
102103

103104
:Hackathon: Software developers, engineers and computational biologists interested in learning and applying back-end and front-end web development skills. Prerequisites: Familiarity with either Ruby/Rails (back-end) or Javascript/Angular (front-end) would be beneficial.
104105
:Jamboree: Pathologists and oncologists (certified or in training), genome scientists, and other researchers interested in the problem of sequence variant interpretation for cancer precision medicine. Prerequisites: Basic understanding of the genetic basis of cancer.
105-
106-
----
107-

docs/conf.py

Lines changed: 2 additions & 3 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
@@ -63,7 +63,7 @@
6363
#
6464
# This is also used if you do content translation via gettext catalogs.
6565
# Usually you set "language" from the command line for these cases.
66-
language = None
66+
language = 'en'
6767

6868
# List of patterns, relative to source directory, that match files and
6969
# directories to ignore when looking for source files.
@@ -187,7 +187,6 @@
187187
# A list of files that should not be packed into the epub file.
188188
epub_exclude_files = ['search.html']
189189

190-
191190
def setup(app):
192191
app.add_css_file("css/civic.css")
193192
app.add_css_file("css/theme_overrides.css")

0 commit comments

Comments
 (0)