-
Notifications
You must be signed in to change notification settings - Fork 11
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
Generate reference page /acs/systems endpoint and routes #268
Comments
@andrii-balitskyi Any thoughts on this one? I think we should probably agree on what should be done here |
@mastafit Let's use pages from Debbie's presentation as our standard for how we want our api reference pages to look. Then, let's figure out which sections can be generated and what data our blueprint needs to allow for that generation. |
Relevant for more tools for uing handlebars |
@razor-x and/or @andrii-balitskyi: https://docs.seam.co/latest/~/revisions/tPVQJnfCg6s3rbLekWCU/api/acs/systems looks awesome! The generation of useful IDs for all the anchors are excellent too! Questions...
|
Sure, it's meant to be there but for some reason it's not rendering. I'll look into it. Thanks for catching it!
There are more useful cases like "Type: string Format: datetime" or "Type: string Format: id", but I'm not sure on "list" one. @razor-x you and Pawel did the initial design, could provide more details about this difference?
Sure, I'll adjust the template.
Sure!
That's a known issue and we're still fixing the links.
Yeah, I'll fix the deprecation message and update the format.
Yep, great idea! I'll look into it to see how we can implement that.
The template used for rendering page with
Sounds good! I'll update the template.
Events are related more directly to the resource. Making it a child of the resource makes sense. @razor-x would love the hear your thoughts on this one.
Seems like it's something that gitbook adds similar to
Sounds good!
Since we're going to have separate refs for each language, I think it makes sense to remove other code samples for the current HTTP API.
Yes, code samples formatting is something we haven't looked into yet.
Sure! UPD: @DebbieAtSeam, should it be bold? Or just regular text?
I think it'd look better and actually line breaks were supposed to be there as we added them in the templates but the rendered page ignored them. I'll look into it.
Yes, here's a relevant comment from Evan. Initially, we decided to render all the samples at the top.
Yes, should be pretty possible :) |
@DebbieAtSeam I did most of the requested changed and you can see them here. Also, please take a look at the questions in the comment above to unblock more changes. Thanks! |
Created issue here: #319
Type is the underlying JSON type sent over the wire, Format is the semantic meaning. OpenAPI spec actually does this too: https://swagger.io/docs/specification/data-models/data-types/ (Our formats do not match the OpenAPI ones, but we may want to fix this upstream, it won't affect what we want to define for the docs here). Instead of displaying both, let's always show the Format. This one is more useful and implies the type (plus the type is handled by the SDK / CLI anyway): ID is always a string, Datetime is always a string, Boolean is always a Boolean. We can just convert the |
This is only partially true. We have events like |
I thought about this: let's leave all the languages for now on the api pages. We have not implemented the SDK pages yet, so if we remove them now we will block release, since we would be effectively removing content |
@andrii-balitskyi I tried to answer a few more. Are there any open questions / blockers left now? |
@andrii-balitskyi You said:
Correct!
|
@andrii-balitskyi We said:
Could we please try it as regular text and see how it looks? Thanks! |
@andrii-balitskyi Looks excellent! Thanks so much! A few picky questions and comments... |
@DebbieAtSeam It should be in regular text already as that's how I left it yesterday. |
@DebbieAtSeam Many thanks! Oh yeah, you're right about the heading levels. For some reason, each heading defined with Markdown in our template is being rendered with an increased level by one, so |
@DebbieAtSeam Regarding the extraneous space, I think it's there because "external_type_display_name" in the deprecation message is wrapped in backticks [ref]. As a result, "external_type_display_name" is rendered as code. You can actually see that "Use" and "external_type_display_name" are in different fonts. |
We'll need to figure out where to store the missing description alongside the current one. If we put the missing description inside the resource description where the current one lives, we'll need to determine how to differentiate these descriptions so they can be used in the appropriate parts of the doc page. UPD: Also, I'm not sure how we can place the missing description right under the H1 "Systems" header, which is added by GitBook based on the table of contents defined in docs/SUMMARY.md. |
It seems to come from docs/SUMMARY.md [link]. "List Systems" is defined there by this line: |
List of recent changes:
Latest preview here. |
I'm not sure how we should set up code sample formatters for each language. Do you have any ideas? |
@andrii-balitskyi You said:
I think GitBook does a combo of a manually-defined table of contents (docs/SUMMARY.md) and an automatically-generated table of contents. I'd prefer if we could be prescriptive about what ends up in the table of contents. |
@andrii-balitskyi What is an "Id"? Is this a UUID? Is this a string that needs to be a UUID? (Also, it should be "ID" or " |
@andrii-balitskyi Should we be more specific about things that are lists? Lists of strings, etc.? |
@andrii-balitskyi Formatting question... |
@andrii-balitskyi Thanks again and again for bearing with all my picky questions! It's looking lovely! |
This should be handled by the work in #321 but we can review the link tiles in the nav again after that is merged and beta is updated. That section of the summary will eventually be generated. |
Correct, this is a string that needs to be a UUID. |
Yeah, I think that'd be more helpful. For this to be implemented, we'd need to make some changes upstream. |
If we wrap the return type in a code block, we'll lose the ability to link the return resource to its respective page, as links within code blocks are not rendered as clickable links. I've sent a request to GitBook support to see what they can suggest about this issue. |
I also decided to add enum values to enum properties. Let me know what you think. Preview here. |
@DebbieAtSeam Let's focus on any blockers for getting this live: basically what is left to do that would make this better than what we have live now? We will continue to improve as we go. We are working on fixing the code format and the links that are pointing to GitHub. Anything else that would block releasing this by Friday? |
@razor-x, what do you think about this one? |
@andrii-balitskyi We have
so we should be able to do this with |
The text was updated successfully, but these errors were encountered: