Unified Sumo API docs with API references page (Redocusaurus)#6597
Unified Sumo API docs with API references page (Redocusaurus)#6597JV0812 wants to merge 4 commits into
Conversation
|
@kimsauce This works perfectly for me in my local, can you please run the branch from your end and let me know what all modifications can be performed to make it much better. |
kimsauce
left a comment
There was a problem hiding this comment.
Left comment here https://sumologic.atlassian.net/browse/DOCS-68?focusedCommentId=866460
- Resolve yarn.lock merge conflict with main - Override Redoc font to Lab Grotesque to match site typography - Suppress Redoc SSG HTML minifier warning with DOCUSAURUS_IGNORE_SSG_WARNINGS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Hey @JV0812 — ran this locally and made a few fixes, pushed to the branch: 1. Font override (sumo.scss) 2. Build warning suppression (package.json) 3. Merge conflict (yarn.lock) Also worth noting: — via Claude Code |
|
A few questions/suggestions on the API reference strategy: Duplication with api.sumologic.com Since the whole point of this PR is keeping users in the doc site, I'd suggest the embedded version replaces Keeping the spec in sync Gradual migration suggestion — via Claude Code |
|
A few more updates pushed to the branch: Font fix (docusaurus.config.js) Intro note added to sumologic-api.yaml Important — keeping the YAML spec in sync — via Claude Code |
…ntro note - Replace Inter/Metropolis font config with Lab Grotesque to match site typography - Add contextual intro note to sumologic-api.yaml for the embedded reference page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add DOCUSAURUS_IGNORE_SSG_WARNINGS=true to suppress a recurring warning caused by Redoc storing HTML content in a custom html="..." attribute, which the minifier incorrectly parses as orphaned tags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Build script change (package.json) — via Claude Code |
Purpose of this pull request
This pull request is to avoid opening a new tab to open the API references page, instead treat it as our usual docusaurus page. I have used Redocusaurus plugin to work on it. Also, made sure the font size, style, the code block, and code properties are inline with our usual doc styles.
To add on, the only drawback we can face is the delayed time (2-3 seconds more) to load this page (pulled from an YAML file) as it contains about 36k lines to read.
Select the type of change
Ticket (if applicable)
Unify Sumo API Docs and API spec? (redocusaurus)