-
Notifications
You must be signed in to change notification settings - Fork 169
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
links to spec sections sometimes broken when generated from schema #974
Comments
Using |
I remember now - thanks for the reminder ...
seems like it did break something though :-( |
That's true. I guess we can look into four possible solutions:
Do you have any other ideas? |
Nope, but I think your "1" and "3" are reasonable 👍 Let's look whether we can get one of these implemented related: |
https://www.mkdocs.org/user-guide/writing-your-docs/#internal-links it seems like from the MkDocs side, there is nothing we can do with "official tools"/features. I think we could adopt this solution:
For example:
This is arguably a bit hacky, because You have way more experience with MkDocs macros ... would this work @tsalo? |
My only concern is that external schema users (e.g., the NIDM-Terms team) might have problems with macro-based hyperlinks. @dbkeator would having odd hyperlinks in the schema object descriptions be a problem for the BIDS-Terms effort? |
Thinking about this again: In the current terms, we have something like: |
Per today's dev call, we may want to move as many links to things outside the schema into the addendum sections as possible, with the idea being that links in the schema should primarily be to other elements of the schema. And external links, I guess. There's no way to completely drop external links... That doesn't mean we don't need a solution though. |
For example, in the sessions-file section, look at the
acq_time
metadata row, and try clicking on theUnits
link.It'll try to link you to
https://bids-specification.readthedocs.io/02-common-principles.html#units
, which doesn't exist --> it should behttps://bids-specification.readthedocs.io/en/latest/02-common-principles.html#units
(or "stable" instead of the "latest").I think this may be due to the link being specified as
.html
instead of.md
bids-specification/src/schema/objects/columns.yaml
Line 20 in febae4f
cc @tsalo
The text was updated successfully, but these errors were encountered: