Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Documentation usability enhancement: give more items anchors for deep-linking #1053

Closed
gdevenyi opened this issue Apr 6, 2022 · 5 comments · Fixed by #1268

Comments

@gdevenyi
Copy link

gdevenyi commented Apr 6, 2022

Right now, if I want to point someone at a particular entry in the spec, such as:
SliceEncodingDirection

on the page
https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html

I can't do so because there's no anchor.

I'd like to suggest the TOC go one level deeper and actually have anchors available for the individual entries.

@Remi-Gau
Copy link
Collaborator

Remi-Gau commented Apr 6, 2022

For metadata like this, the best current way to do it would be to use the glossary:

https://bids-specification.readthedocs.io/en/stable/99-appendices/14-glossary.html#sliceencodingdirection-metadata

@Remi-Gau
Copy link
Collaborator

Remi-Gau commented Apr 6, 2022

Also I think that given the way mkdocs work, adding levels to the TOC would not be the way to do it but I may wrong.

@effigies
Copy link
Collaborator

effigies commented Apr 6, 2022

The glossary loses the surrounding context, including requirement level which is not inherent to the term (some metadata is required for some files and not for others), but for defining terms it's quite useful.

I suppose we could add <a name=""></a> anchors when rendering tables, e.g. <a name="SliceEncodingDirection">SliceEncodingDirection</a> <a href="#SliceEncodingDirection">(link)</a>:

Key Name Requirement Level Data type Description
SliceEncodingDirection (link) ...

Might want some kind of link symbol in place of the (link) text...

@gdevenyi
Copy link
Author

gdevenyi commented Apr 6, 2022

For metadata like this, the best current way to do it would be to use the glossary:

bids-specification.readthedocs.io/en/stable/99-appendices/14-glossary.html#sliceencodingdirection-metadata

This is fine, but, the issue becomes, if I'm reading the docs, there's no link to the glossary (I didn't know it existed)

@tsalo
Copy link
Member

tsalo commented Apr 6, 2022

Yes, that's something we're working on. See #954.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants