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

Add Style Guide and API Design Guide #1584

Merged
merged 19 commits into from
Jan 20, 2025
Merged

Add Style Guide and API Design Guide #1584

merged 19 commits into from
Jan 20, 2025

Conversation

j9liu
Copy link
Contributor

@j9liu j9liu commented Jan 16, 2025

Fixes #1540, #1541

Probably not exhaustive, but hopefully a good start. There's the possibility of merging these into a single Coding Guide (similar to CesiumJS), but I'm not sure what the call is. I think there's enough separation for now, and we can always continue to add to these docs in the future.

@j9liu j9liu added the documentation Improvements or additions to documentation label Jan 16, 2025
Copy link
Member

@kring kring left a comment

Choose a reason for hiding this comment

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

This is great @j9liu, thanks for writing it up! Sorry for the large number of small comments here.


Before diving into this guide, we recommend the following:

1. Browse Cesium Native's [C++ style guide](https://github.com/CesiumGS/cesium-native/blob/main/doc/style-guide.md) to familiarize yourself with fundamental principles and expectations for C++ development.
Copy link
Member

Choose a reason for hiding this comment

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

This URL is invalid because the file moved recently. @azrogers we can now use the tagfile to create a reliable link to the published version of the docs, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes! Might need to grab the latest version of the tag file (from https://cesium.com/learn/cesium-native/ref-doc/cesium-native.tag), but you should be able to replace this with \ref style-guide "C++ style guide").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would it be okay to just link to the guide as published online? (https://cesium.com/learn/cesium-native/ref-doc/style-guide.html)

Personally I still look at Github for our documentation so I appreciate when things can also work well on Github. But I'm willing to concede and use \ref

Copy link
Contributor

Choose a reason for hiding this comment

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

Or you could do <!--! \ref style-guide "C++ style guide" --><!--! \cond DOXYGEN_EXCLUDE !-->[C++ style guide](https://cesium.com/learn/cesium-native/ref-doc/style-guide.html)<!--! \endcond -->. But, uh, just linking to it is probably better.

Documentation/style-guide.md Outdated Show resolved Hide resolved
Documentation/style-guide.md Outdated Show resolved Hide resolved
Documentation/style-guide.md Outdated Show resolved Hide resolved
Documentation/style-guide.md Outdated Show resolved Hide resolved
Documentation/api-design-guide.md Outdated Show resolved Hide resolved
Documentation/api-design-guide.md Outdated Show resolved Hide resolved
Documentation/api-design-guide.md Outdated Show resolved Hide resolved
Documentation/api-design-guide.md Outdated Show resolved Hide resolved
Documentation/api-design-guide.md Show resolved Hide resolved
@j9liu
Copy link
Contributor Author

j9liu commented Jan 17, 2025

No apologies @kring, thank you for the thorough review! I think I addressed all of your comments, except for the image resize that's breaking Doxygen. I'm happy just using Markdown and living with the bigger image.

I turned some of your comments into short new sections; let me know if I got everything right!

kring added 2 commits January 20, 2025 12:20
- Disable STRIP_CODE_COMMENTS so the doxygen comments in the code samples show up.
- Fix broken link to functions section.
- Remove broken link to old "Developing UObjects" doc.
@kring
Copy link
Member

kring commented Jan 20, 2025

Thanks @j9liu! I've disabled STRIP_CODE_COMMENTS because the doxygen comments in the code blocks still weren't showing up. This doesn't seem to break anything in an obvious way, but we'll see how we go!

@kring kring merged commit 8fdff98 into main Jan 20, 2025
14 checks passed
@kring kring deleted the add-style-guide branch January 20, 2025 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create UObject / Blueprints / C++ API Design Guide
3 participants