Skip to content
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: render separate markdown files for each schema def #24

Merged
merged 3 commits into from
Dec 30, 2023

Conversation

twelvelabs
Copy link
Owner

This MR updates the gen command to create a separate markdown file for each schema defined in an input file. Previously we were creating a single file per-input file, with all the schemas from that file aggregated together.

This change was motivated by the limitations of our previous layout. We were trying to display everything in the "Properties" table, and it's difficult to put complex markup in a markdown table due to how whitespace affects layout. Now that we're only rendering a single schema per-file, we have moved the full description, enum options, and examples to linked sections below the properties table:

Screenshot 2023-12-29 at 7 18 12 PM

Copy link

codecov bot commented Dec 30, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (1cf627a) 87.80% compared to head (5e13d0b) 86.36%.

Files Patch % Lines
internal/jsonschema/schema.go 28.57% 13 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
- Coverage   87.80%   86.36%   -1.44%     
==========================================
  Files           9        9              
  Lines         705      741      +36     
==========================================
+ Hits          619      640      +21     
- Misses         64       77      +13     
- Partials       22       24       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@twelvelabs twelvelabs merged commit 73d9a66 into main Dec 30, 2023
1 of 3 checks passed
@twelvelabs twelvelabs deleted the multiple-files branch December 30, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant