Added API docs generation instructions to README.md #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I fixed a few things for our website docs today, and tried to update the API Reference.
I tried a few options to generate API references directly from .proto file, and this default method works the most smooth, so I’m adding it here. The generated HTML version looks nice, and markdown is okay.
My goal is to find an automatic way to update docs from the .proto file so we can rapidly update the API reference on our website /docs.
Although the documentation can now be generated, I haven’t added it to the website yet. This is because many input fields still require detailed explanations, and we need to organize the definitions by command groups to create a more user-friendly structure. I believe updating the .proto file and leveraging the protoc-gen-doc plugin can help achieve this, but I suggest we focus on testing the APIs in the Studio first before finalizing the structure.
Generated HTML screenshot
![CleanShot 2024-11-21 at 23 33 46@2x](https://private-user-images.githubusercontent.com/2616844/388844941-728816e9-fe81-40a5-a6b1-728bc118ee2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTY5NjEsIm5iZiI6MTczOTQxNjY2MSwicGF0aCI6Ii8yNjE2ODQ0LzM4ODg0NDk0MS03Mjg4MTZlOS1mZTgxLTQwYTUtYTZiMS03MjhiYzExOGVlMmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDMxNzQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjhiOWUzNjc0YzM3YjA3NDIyYWZmYzQ4MDc5MDBkYWExYjM5ZTVmYjJkZDZlNjcyZjIwZDUwN2I0ODA2ZTk2YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.nqdT0orf16T_ZzRAsHNKh7W9n7JvJ5jW0qHDUVk0r5s)