Skip to content

Commit 13fc54b

Browse files
committed
Updated index page style
1 parent 7df5201 commit 13fc54b

File tree

6 files changed

+137
-11
lines changed

6 files changed

+137
-11
lines changed

docs/_static/custom.css

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,54 @@ body[data-theme="dark"] .sidebar-brand-text {
1414
color: #58a6ff !important;
1515
}
1616

17+
/* Make all heading levels match sidebar title blue color */
18+
.content h1,
19+
.content h2,
20+
.content h3,
21+
.content h4,
22+
.content h5,
23+
.content h6,
24+
article h1,
25+
article h2,
26+
article h3,
27+
article h4,
28+
article h5,
29+
article h6 {
30+
color: #0969da !important;
31+
}
32+
33+
body[data-theme="dark"] .content h1,
34+
body[data-theme="dark"] .content h2,
35+
body[data-theme="dark"] .content h3,
36+
body[data-theme="dark"] .content h4,
37+
body[data-theme="dark"] .content h5,
38+
body[data-theme="dark"] .content h6,
39+
body[data-theme="dark"] article h1,
40+
body[data-theme="dark"] article h2,
41+
body[data-theme="dark"] article h3,
42+
body[data-theme="dark"] article h4,
43+
body[data-theme="dark"] article h5,
44+
body[data-theme="dark"] article h6 {
45+
color: #58a6ff !important;
46+
}
47+
48+
@media (prefers-color-scheme: dark) {
49+
body:not([data-theme="light"]) .content h1,
50+
body:not([data-theme="light"]) .content h2,
51+
body:not([data-theme="light"]) .content h3,
52+
body:not([data-theme="light"]) .content h4,
53+
body:not([data-theme="light"]) .content h5,
54+
body:not([data-theme="light"]) .content h6,
55+
body:not([data-theme="light"]) article h1,
56+
body:not([data-theme="light"]) article h2,
57+
body:not([data-theme="light"]) article h3,
58+
body:not([data-theme="light"]) article h4,
59+
body:not([data-theme="light"]) article h5,
60+
body:not([data-theme="light"]) article h6 {
61+
color: #58a6ff !important;
62+
}
63+
}
64+
1765
/* Quick Links sidebar styling - darker gray box with proper padding */
1866
.sidebar-quicklinks {
1967
margin: 1rem 0.75rem 1rem 0.75rem;
@@ -23,6 +71,35 @@ body[data-theme="dark"] .sidebar-brand-text {
2371
border: 1px solid #d0d0d0;
2472
}
2573

74+
/* Style RST sidebar directive boxes to match left sidebar styling */
75+
.sidebar,
76+
aside.sidebar {
77+
background-color: #e8e8e8 !important;
78+
border: 1px solid #d0d0d0 !important;
79+
border-radius: 0.25rem !important;
80+
padding: 0.75rem 1rem !important;
81+
}
82+
83+
body[data-theme="dark"] .sidebar,
84+
body[data-theme="dark"] aside.sidebar {
85+
background-color: #0d0d0d !important;
86+
border-color: #1a1a1a !important;
87+
}
88+
89+
@media (prefers-color-scheme: dark) {
90+
body:not([data-theme="light"]) .sidebar,
91+
body:not([data-theme="light"]) aside.sidebar {
92+
background-color: #0d0d0d !important;
93+
border-color: #1a1a1a !important;
94+
}
95+
}
96+
97+
.sidebar p.sidebar-title,
98+
aside.sidebar p.sidebar-title {
99+
font-weight: 600 !important;
100+
margin-bottom: 0.5rem !important;
101+
}
102+
26103
/* Dark mode styling for quick links - much darker background */
27104
body[data-theme="dark"] .sidebar-quicklinks {
28105
background-color: #0d0d0d;

docs/index.rst

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,65 @@
1-
HED Python tools
2-
================
1+
Python HEDTools
2+
===============
33

4-
Welcome to the HED Python tools documentation. This package provides comprehensive tools for working with Hierarchical Event Descriptors (HED) in Python.
4+
5+
.. sidebar:: Quick links
6+
7+
* `HED homepage <https://www.hedtags.org/>`_
8+
9+
* `HED vocabularies <https://www.hedtags.org/hed-schema-browser>`_
10+
11+
* `HED online tools <https://hedtools.org/hed/>`_
12+
13+
* `HED browser tools <https://www.hedtags.org/hed-javascript>`_
14+
15+
* `HED organization <https://github.com/hed-standard/>`_
16+
17+
* `HED specification <https://www.hedtags.org/hed-specification>`_
18+
19+
Welcome to the Python HEDTools documentation! This package provides comprehensive tools for working with **Hierarchical Event Descriptors (HED)** - a standardized framework for annotating events and experimental metadata in neuroscience and beyond.
20+
21+
What is HED?
22+
------------
23+
24+
HED is a standardized vocabulary and annotation framework designed to systematically describe events experimental data, particularly neuroimaging and behavioral data. It's integrated into major neuroimaging standards:
25+
26+
* `BIDS <https://bids.neuroimaging.io/>`_ (Brain Imaging Data Structure)
27+
* `NWB <https://www.nwb.org/>`_ (Neurodata Without Borders)
28+
29+
Key features
30+
------------
31+
32+
* **Validation**: Verify HED annotations against official schemas
33+
* **Analysis**: Search, filter, and summarize HED-annotated data
34+
* **BIDS integration**: Full support for BIDS dataset validation and processing
35+
* **NWB support**: Read and write HED annotations in NWB files using `ndx-hed <https://www.hedtags.org/ndx-hed>`_
36+
* **Multiple formats**: Work with JSON sidecars, TSV files, Excel spreadsheets
37+
38+
Getting started
39+
---------------
540

641
.. toctree::
742
:maxdepth: 2
8-
:caption: Contents:
943

1044
Introduction <introduction>
45+
46+
Programming with HEDTools
47+
-------------------------
48+
49+
.. toctree::
50+
:maxdepth: 2
51+
1152
User guide <user_guide>
53+
54+
API documentation
55+
-----------------
56+
57+
.. toctree::
58+
:maxdepth: 2
59+
1260
API reference <api/index>
1361

62+
1463
Indices and tables
1564
==================
1665

examples/extract_json_template.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"General strategy for machine-actionable annotation using HED in BIDS is to create a single `events.json` sidecar file in the BIDS dataset root directory.\n",
1212
"Ideally, this sidecar will contain all the annotations needed for users to understand and analyze the data.\n",
1313
"\n",
14-
"(See the [**BIDS annotation quickstart**](https://www.hed-resources.org/en/latest/BidsAnnotationQuickstart.html) for additional information on this strategy.)\n",
14+
"(See the [**BIDS annotation quickstart**](https://www.hedtags.org/hed-resources) for additional information on this strategy.)\n",
1515
"\n",
1616
"This notebook shows how to create a JSON sidecar template from the information in all the event files in a BIDS dataset. To use this notebook, substitute the specifics of your BIDS dataset for the following variables:\n",
1717
"\n",
@@ -27,9 +27,9 @@
2727
"\n",
2828
"Typical `skip_columns` include the `onset`, `duration`, and `sample` columns, which have well-defined meanings according to BIDS. The `value_columns` just require a single annotation, applicable to each value in the column.\n",
2929
"\n",
30-
"For additional information see the tutorial [**Create a JSON template**](https://www.hed-resources.org/en/latest/BidsAnnotationQuickstart.html#create-a-json-template) which illustrates the creation of a template from a single event file using the online tools.\n",
30+
"For additional information see the tutorial [**Create a JSON template**](https://hedtags.org/hed-resources/BidsAnnotationQuickstart.html#create-a-json-template) which illustrates the creation of a template from a single event file using the online tools.\n",
3131
"\n",
32-
"Additional information about this notebook can be found in [**Extract JSON template**](https://www.hed-resources.org/en/latest/HedPythonTools.html#extract-json-template) in the Python HEDTools user guide."
32+
"See [**Sidecar template extraction**](https://www.hedtags.org/hed-python/user_guide.html#sidecar-template-extraction) in the HEDTools documentation for an example of how to directly extract a template using command line tools."
3333
]
3434
},
3535
{

hed/errors/error_reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def create_doc_link(error_code):
628628
"""
629629
if error_code in known_error_codes["hed_validation_errors"] or error_code in known_error_codes["schema_validation_errors"]:
630630
modified_error_code = error_code.replace("_", "-").lower()
631-
return f"https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#{modified_error_code}"
631+
return f"https://www.hedtags.org/hed-specification/Appendix_B.html#{modified_error_code}"
632632
return None
633633

634634

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dependencies = [
6363
"Repository" = "https://github.com/hed-standard/hed-python/"
6464
"Bug Tracker" = "https://github.com/hed-standard/hed-python/issues"
6565
"Changelog" = "https://github.com/hed-standard/hed-python/blob/main/CHANGELOG.md"
66-
"HED Resources" = "https://www.hed-resources.org"
66+
"HED Resources" = "https://www.hedtags.org/hed-resources/"
6767

6868
[project.optional-dependencies]
6969
dev = [

tests/data/bids_tests/eeg_ds003645s_hed_demo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,5 @@ are inserted into the template, rather than concatenated:
131131
"(Experiment-participant, ID/sub-001),Age/3,Male,Healthy,Rested,Novide-level"
132132
```
133133

134-
See [Assembly and curly braces](https://www.hed-resources.org/en/latest/HedAnnotationQuickstart.html#assembly-and-curly-braces)
135-
in the [HED annotation quickstart](https://www.hed-resources.org/en/latest/HedAnnotationQuickstart.html#) for more information.
134+
See [Assembly and curly braces](https:/www.hedtags.org/hed-resources/HedAnnotationQuickstart.html#assembly-and-curly-braces)
135+
in the [HED annotation quickstart](https:/www.hedtags.org/hed-resources/HedAnnotationQuickstart.html) for more information.

0 commit comments

Comments
 (0)