-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: deploy basic schema viewer using vite #257
Conversation
// const _applicationTypeProperty = | ||
// '$data.application.type.description' || '$applicationType'; |
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.
Eslint complained about unused variables so have commented out for now.
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.
Wow excellent config work this looks so promising!
A few minor comments from first read through - working my way through other repo too to check out deployment then will come back here for final review 🙂
pnpm i | ||
pnpm link ../schemas | ||
pnpm build | ||
ls -R |
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.
pnpm link
is clever solution here! 💡
@@ -0,0 +1,10 @@ | |||
import 'prismjs'; |
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.
👀 ahaa this top-level import prismjs
! The relationship between & config required for the core prism lib versus vite prism plugin was stumping me hard, great find 🙌
This reverts commit 1dac923.
In this PR:
/docs
folder containing a vite+react-ts project featuring@stoplight/json-schema-viewer
/schemas
into its own package so it can be imported into the/docs
project.main
.More context
This is built on top of Jess's work that was originally started in an experimental repo: https://github.com/theopensystemslab/digital-planning-data-schemas-docs/
I have successfully deployed this work to GH Pages in another experimental repo: https://github.com/theopensystemslab/experimental-schema-docs
Once this is merged I will check that it behaves the same in this repo! 🤞