Skip to content

Commit e5f9326

Browse files
authored
Merge pull request #671 from VisLab/add_instructions
Updating Appendix A for new formats
2 parents 3042d3c + 7d4d86f commit e5f9326

File tree

8 files changed

+607
-215
lines changed

8 files changed

+607
-215
lines changed

.github/workflows/codespell.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v6
2424
with:
25-
python-version: '3.10'
25+
python-version: '3.12'
26+
cache: 'pip'
2627

2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip
30-
pip install codespell tomli
31+
pip install -e ".[dev]"
3132
3233
- name: Run Codespell
3334
run: codespell .

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
pip install --upgrade pip
38-
pip install -e ".[docs]"
38+
pip install -e ".[dev]"
3939
4040
- name: Cache Sphinx build
4141
uses: actions/cache@v4

.github/workflows/links.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
pip install --upgrade pip
31-
pip install -e ".[docs]"
31+
pip install -e ".[dev]"
3232
3333
- name: Build documentation with Sphinx
3434
run: |

.github/workflows/mdformat.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ jobs:
2323
uses: actions/setup-python@v6
2424
with:
2525
python-version: '3.12'
26+
cache: 'pip'
2627

2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip
30-
pip install mdformat==0.7.22 mdformat-myst==0.2.2 mdformat-tables==1.0.0
31+
pip install -e ".[dev]"
3132
3233
- name: Run mdformat (check only)
3334
run: |

docs/source/Appendix_A.md

Lines changed: 565 additions & 75 deletions
Large diffs are not rendered by default.

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"source_repository": "https://github.com/hed-standard/hed-specification/",
6060
"source_branch": "main",
6161
"source_directory": "docs/source/",
62+
"navigation_with_keys": True,
6263
}
6364

6465
# Configure sidebar to show logo, search, navigation, and quick links

docs/source/index.rst

Lines changed: 25 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ HED specification
44
.. sidebar:: Quick links
55

66
* `HED homepage <https://www.hedtags.org/>`_
7-
87
* `HED resources <https://www.hedtags.org/hed-resources/>`_
9-
108
* `HED schema browser <https://www.hedtags.org/hed-schema-browser/>`_
11-
129
* `HED online tools <https://hedtools.org/hed>`_
1310

1411

@@ -21,132 +18,44 @@ vocabularies. The HED ecosystem includes:
2118
- **Analysis tools** - Methods for searching and analyzing HED-annotated data
2219
- **Community schemas** - Domain-specific extensions to the base vocabulary
2320

24-
Specification contents
25-
----------------------
26-
27-
1. Introduction
28-
~~~~~~~~~~~~~~~
29-
:doc:`Introduction to HED <01_Introduction>` - Overview of the HED system and its applications.
30-
31-
.. contents:: Chapter contents
32-
:local:
33-
:depth: 2
34-
35-
- HED system overview
36-
- Integration with neuroimaging standards
37-
- Schema vocabulary
38-
- Getting started
39-
40-
2. Terminology
41-
~~~~~~~~~~~~~~
42-
:doc:`Terminology <02_Terminology>` - Key concepts and definitions used throughout the specification.
43-
44-
.. contents:: Chapter contents
45-
:local:
46-
:depth: 2
47-
48-
- Character sets and restrictions
49-
- HED vocabulary terminology
50-
- Schema version naming
51-
- Tag specification
52-
53-
3. HED formats
54-
~~~~~~~~~~~~~~
55-
:doc:`HED formats <03_HED_formats>` - Schema and annotation format specifications.
56-
57-
.. contents:: Chapter contents
58-
:local:
59-
:depth: 2
60-
61-
- Schema format
62-
- HED string format
63-
- Sidecar format
64-
- Assembly and validation
65-
66-
4. Basic annotation
67-
~~~~~~~~~~~~~~~~~~~
68-
:doc:`Basic annotation <04_Basic_annotation>` - Fundamental annotation techniques and best practices.
69-
70-
.. contents:: Chapter contents
71-
:local:
72-
:depth: 2
73-
74-
- Annotation principles
75-
- Basic event markup
76-
- Event context
77-
- Temporal relationships
78-
79-
5. Advanced annotation
80-
~~~~~~~~~~~~~~~~~~~~~~
81-
:doc:`Advanced annotation <05_Advanced_annotation>` - Complex annotation patterns and advanced features.
82-
83-
.. contents:: Chapter contents
84-
:local:
85-
:depth: 2
86-
87-
- Definitions
88-
- Temporal scope
89-
- Event structure
90-
- Advanced examples
91-
92-
6. Infrastructure and tools
93-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94-
:doc:`Infrastructure and tools <06_Infrastructure_and_tools>` - HED ecosystem tools and services.
95-
96-
.. contents:: Chapter contents
97-
:local:
98-
:depth: 2
99-
100-
- HED tools overview
101-
- Validation services
102-
- Web-based tools
103-
- Programming interfaces
104-
105-
7. Library schemas
106-
~~~~~~~~~~~~~~~~~~
107-
:doc:`Library schemas <07_Library_schemas>` - Domain-specific schema extensions.
108-
109-
.. contents:: Chapter contents
110-
:local:
111-
:depth: 2
112-
113-
- Library schema concept
114-
- Creating library schemas
115-
- Using library schemas
116-
- BIDS integration
117-
118-
8. HED ontology
119-
~~~~~~~~~~~~~~~
120-
:doc:`HED ontology <08_HED_ontology>` - Ontological framework and mappings.
121-
122-
.. contents:: Chapter contents
123-
:local:
124-
:depth: 2
125-
126-
- Ontological foundations
127-
- Semantic relationships
128-
- External ontology mappings
129-
- Interoperability
130-
131-
Appendices
132-
~~~~~~~~~~
133-
* :doc:`Appendix A <Appendix_A>` - Additional schema information
134-
* :doc:`Appendix B <Appendix_B>` - Error codes and validation rules
21+
Core specification
22+
------------------
23+
24+
The core chapters provide the foundation for understanding and using HED.
13525

13626
.. toctree::
137-
:hidden:
138-
:maxdepth: 3
27+
:maxdepth: 2
13928

14029
01_Introduction
14130
02_Terminology
14231
03_HED_formats
14332
04_Basic_annotation
14433
05_Advanced_annotation
34+
35+
Advanced topics
36+
---------------
37+
38+
These chapters cover specialized aspects of the HED ecosystem.
39+
40+
.. toctree::
41+
:maxdepth: 2
42+
14543
06_Infrastructure_and_tools
14644
07_Library_schemas
14745
08_HED_ontology
46+
47+
Reference materials
48+
-------------------
49+
50+
Additional technical reference and validation information.
51+
52+
.. toctree::
53+
:maxdepth: 2
54+
14855
Appendix_A
14956
Appendix_B
15057

58+
Indices and tables
59+
------------------
15160

15261
* :ref:`genindex`

pyproject.toml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,19 @@ packages = [] # This is a documentation-only project, no Python packages
4949
"*" = ["*.md", "*.rst", "*.txt", "*.yaml", "*.yml"]
5050

5151
[project.optional-dependencies]
52-
docs = [
53-
"sphinx>=7.1.0,<8.2.0",
54-
"furo>=2023.9.10",
55-
"myst-parser>=3.0.0",
56-
"sphinx-design>=0.6.1",
57-
"sphinx-copybutton>=0.5.2",
58-
"linkify-it-py>=2.0.3",
59-
]
60-
quality = [
61-
"linkchecker>=10.0.0",
62-
"codespell>=2.0.0",
63-
]
6452
dev = [
65-
# Documentation dependencies (from docs group)
66-
"sphinx>=7.1.0",
67-
"furo>=2023.9.10",
53+
# Documentation dependencies
54+
"sphinx>=7.1.0,<10.0.0",
55+
"furo>=2024.1.29",
6856
"myst-parser>=3.0.0",
69-
"sphinx-design>=0.6.1",
7057
"sphinx-copybutton>=0.5.2",
7158
"linkify-it-py>=2.0.3",
72-
# Quality/dev dependencies (from quality group)
73-
"linkchecker>=10.0.0",
74-
"codespell>=2.0.0",
59+
# Quality/development tools
60+
"codespell>=2.2.0",
61+
"ruff>=0.8.0",
62+
"black[jupyter]>=26.1.0",
63+
"mdformat>=0.7.0",
64+
"mdformat-myst>=0.1.5",
7565
]
7666

7767
[project.urls]

0 commit comments

Comments
 (0)