-
Notifications
You must be signed in to change notification settings - Fork 89
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(documentation): migrate documentation to Starlight #1742
Conversation
✅ Deploy Preview for brilliant-pasca-3e80ec canceled.
|
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.
Looks great, a few things I'd like to have before we merge in
packages/documentation/package.json
Outdated
"build": "astro build", | ||
"preview": "astro preview", | ||
"astro": "astro", | ||
"graphqlBackend": "./node_modules/.bin/graphql-markdown ../backend/src/graphql/schema.graphql > src/schema-dumps/backend_raw_schema.md", |
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.
let's keep the commands as such:
docs:graphql:generate
docs:graphql:generate:backend
docs:graphql:generate:auth
Just for consistency with the other times we generate things
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.
Also, I noticed that some of the generated graphql pages' links don't end up working for me
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.
Could we also have the pnpm build
command fail if there are missing links anywhere in the docs?
I don't mind having it just as part of the sidebar, or a separate page. Maybe someone else has a stronger opinion.
What would you like to see different?
I think we only have one mermaid diagram, so good for now. But it looks like from a search is that there is an astro x mermaid configuration : withastro/astro#4433 |
Ok, let's try it as part of the sidebar for now. And see how you feel about the entire schema being on a single page instead of being split up.
Without further styling, right now because the generated markdown from schema contains some unbreakable lines (URLs and variable names), I need to add additional styles to tame the overflow or weirdness that comes from that.
I have looked at that and we won't be able to use that implementation ourselves because we are using the Starlight integration. If we do want this, I will most likely be pursuing this implementation instead (quoted from Astro discourse, which I've been pretty much living in this past month plus)
|
2460175
to
97dfb08
Compare
Ah, I should have been more clear. So, the current version of the APIs is a direct copy of the existing generated markdown files. The "new" version gives us what you would see in the "Schema types" page instead. I put them both in there for now so you all could compare the difference. |
94ee016
to
da7ced9
Compare
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.
Do we or do we not support Mermaid now? I think I saw just one diagram that was an svg in the docs.
Also, please note that I sent some design comments in the slack channel.
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.
This is a duplicate and can be removed.
Right now, for the Rafiki docs, I have not yet implemented it yet. I was hoping for some feedback on the whole Playwright thing here (copied from Slack):
|
I think once merge conflicts are resolved, this looks good. Thank you! |
Update package.json and README Fix failing build Add mathjax support and update config Rebase with main and add asset page Resolve code scanning issue Attempt to style API tables Refresh graphql schemas Fix prettier issues Fix site logo issue on dark mode Sync theme across docs Update readme Update accounting tables and splash text Remove redundant asset page Resolve merge conflict
702d51d
to
91e5b68
Compare
Closes #1739
Changes proposed in this pull request
Context
As part of the docs site consolidation project (see https://www.notion.so/Docusaurus-alternative-RnD-ec117420956f4e5781347631dfdc5c13?pvs=4), we will be migrating the site to Starlight, an Astro-based docs framework.
Checklist
fixes #number
Postman collection updated