-
Notifications
You must be signed in to change notification settings - Fork 129
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
1068 context docs generation #1252
Conversation
Co-authored-by: Julianna Langston <74684272+julianna-ciq@users.noreply.github.com>
Co-authored-by: Julianna Langston <74684272+julianna-ciq@users.noreply.github.com>
…examples, refactor context ref split
Co-authored-by: Julianna Langston <74684272+julianna-ciq@users.noreply.github.com>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
Co-authored-by: Kris West <kris.west@interop.io>
@hughtroeger and @finos/fdc3-maintainers I've reworked the rendering of the schemas significantly and believe I've dealt with all the current comments. The pages are a lot more readable and properties now render recursively so we catch all the sub properties, array times types etc.. Could you give this another review please! Local preview path (run npm run start in /website): http://localhost:3000/docs/next/context/ref/Action |
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.
New UI looks great! Big improvement. Only issue I see is that a number of context types are still missing name and/or id when I compare the preview to the current version of the site.
contact missing name
contactList missing id, name
country missing name
instrument missing name
instrumentList missing name, id
ordersList missing id, name
organization missing name
portfolio missing id, name
position missing id, name
tradeList missing id, name
@hughtroeger You are correct that id and name are still missing in a number of schemas. I believe this separate PR will fix those: #1233 - its currently blocked on a CLA check for the contributor (which mentioned to @robmoffat at the maintainers meeting, in case FINOS can help there). Given that separate PR are you happy to approve this one? |
P.S. @hughtroeger I checked and don't think I can have the properties expanded by default - docusaurus just replaces the data attribute that controls it. Hence, We'd either have to write a custom MDX component to replace it or drop some script into the page to hack it. I tend to think quicker access to the example at the bottom of each page is a benefit anyway, you can then drill into individual field detail as needed by opening the collapses. |
@kriswest thanks for looking, yeah I think it's totally fine starting collapsed. And yes given that other PR I can definitely approve. |
resolves #1068
supersedes #1151 contributed by @TheJuanAndOnly99 (moved to the FINOS repo for collaboration)
Generates Context documentation pages from the schema files, so they can be considered a single source of truth and we can stop double maintaining the docs and schemas.
Local preview path (run
npm run start
in /website): http://localhost:3000/docs/next/context/ref/ActionNetlify preview path: https://deploy-preview-1252--fdc3.netlify.app/docs/next/context/ref/Action
To Do list
Integration into project
prebuild
andprestart
tasks)Generated content
Page specific differences
anyOf
andoneOf
are not being rendered - and probably won't be popular with @bingenitoanyOf
/oneOf