-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Update HTML templates to link to object definitions #1724
Conversation
There is no need for full `{{/* ... */}}` comment markers here: simple `/* ... */` ones work fine.
... so that we have a chance to modify it first.
5662133
to
03f932b
Compare
{{/* | ||
As far as I know we don't have something like Array.concat(), so add them one at a time | ||
*/}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this comment, since I found it misleading. We do have something like Array.concat
-- it's called append
, which does concatenate arrays if you pass an array as its parameter. However, it's not very useful here, because we want to call clean-object
on each item before adding it to $all_objects
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to do what it says it does
This PR is a series of commits which add hyperlinks to the definitions of subschemas. I'm hoping this might help with navigation for complex data structures like that returned by
/sync
.Each of the commits, with the exception of "Link to HTML anchors, where they exist" has been tested to have no effect n the output. The "Link..." commit just adds
<href a="...">
links where possible.Before:
After:
Preview: https://pr1724--matrix-spec-previews.netlify.app