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

docs: update markdown template #571

Merged
merged 18 commits into from
Nov 20, 2024
Merged

Conversation

sam-heilbron
Copy link
Contributor

@sam-heilbron sam-heilbron commented Nov 16, 2024

Background

https://github.com/solo-io/solo-projects/issues/6612#issuecomment-2447651284 contains the necessary context behind these changes.

Testing

Testing this locally was difficult, and it was easier to just run code generation in Gloo. I opened #572 to track this gap in local functionality.

I opened solo-io/gloo#10362 to demonstrate how this would impact the generated docs in Gloo

@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/6612

Nadine2016
Nadine2016 previously approved these changes Nov 19, 2024

// Remove the ".proto" extension
extension := filepath.Ext(name)
title = strcase.ToCamel(name[0 : len(name)-len(extension)])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed in the gloo PR this results in these titles: GatewaySoloIo, EnvoyGlooeSoloIo
Is that what we want?
Perhaps we only want to camelCase names that have no . remaining after stripping the extension?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh, I'm not sure. This is a formatting change, and the request seemed to be focused mainly at our user-facing APIs. I'm leaning towards including them for consistency, rather than trying to come up with a more complex filter for which files this applies to. wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is primarily a product and docs question.
However, it's also a question about whether it's a strict improvement compared to the current state, and I'm concerned that while GatewaySoloIo is more aesthetic, it's also more confusing than gateway.solo.io.proto since it doesn't correspond to anything meaningful.

Copy link

@Nadine2016 Nadine2016 Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I agree with @arianaw66 that in this case the name does not make sense. Only the ones that end in .proto I think should get the name change. the ones that end in .project should not. However, I also think we should not have any of these .project resources in our docs, especially since those are just overview pages with all the CRs. So what we could do is one of the following:

Option 1:

  • Not change the name for .project files.
  • Display them as-is in the docs.

Option 2:

  • Leave the change as-is and remove these references from the docs. We can do this manually on our end if it can't be done in the template or is too hard to implement.

arianaw66
arianaw66 previously approved these changes Nov 19, 2024
Copy link
Contributor

@arianaw66 arianaw66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM provided we're okay with Option 1 and re-adding .sk.md in the docs titles for .project files per https://solo-io-corp.slack.com/archives/C03MFATU265/p1732053402150619?thread_ts=1731948029.520829&cid=C03MFATU265

Copy link
Contributor

@arianaw66 arianaw66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the helpful comments!

@soloio-bulldozer soloio-bulldozer bot merged commit dbc3d5e into main Nov 20, 2024
2 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the sh/update-gloo-docs-format branch November 20, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants