Closed zyy17 closed 2 months ago
The changes involve modifications to the GitHub Actions workflow, the Makefile, and API reference documentation. The workflow job for documentation checks has been renamed and its command updated to focus specifically on API documentation. The Makefile has seen a renaming of targets and the introduction of a new target for generating API documentation. Additionally, the API reference documentation has been enhanced with new columns for default values and validation criteria across multiple specifications.
Files | Change Summary |
---|---|
.github/workflows/develop.yaml |
Renamed step from "Check docs" to "Check api docs"; updated command from make check-docs to make check-api-docs ; defined shell as bash . |
Makefile |
Renamed target from check-docs to check-api-docs ; updated command to run make api-docs ; added new target api-docs for generating API reference documentation. Removed old docs target. |
docs/api-references/docs.md |
Renamed title from "API Reference" to "API References"; added "Default" and "Validation" columns to multiple specifications. |
docs/api-references/template/gv_list.tpl |
Changed header from "GreptimeDB Operator API Reference" to "GreptimeDB Operator API References." |
docs/api-references/template/type.tpl |
Added "Default" and "Validation" columns to member field descriptions in the API reference template. |
sequenceDiagram
participant User
participant Workflow
participant Makefile
participant Docs
User->>Workflow: Trigger documentation check
Workflow->>Makefile: Execute check-api-docs
Makefile->>Docs: Generate API documentation
Docs-->>Makefile: Return generated documentation
Makefile-->>Workflow: Documentation check complete
Workflow-->>User: Notify completion
🐰 In the garden where the bunnies play,
New docs are sprouting, hip-hip-hooray!
With checks for APIs, clear and bright,
The paths are now easier, oh what a sight!
Hopping with joy, we celebrate the change,
For every new detail, we happily arrange! 🌼
docs/api-references/template/type.tpl (2)
`26-27`: **LGTM!** The addition of the "Default" and "Validation" columns in the table header improves the documentation by providing more comprehensive information about each member field. The changes are consistent with the existing table structure and formatting. --- `46-47`: **Looks good!** The addition of empty lines after the enum values table improves the readability and formatting of the template..github/workflows/develop.yaml (1)
`57-60`: **LGTM!** The changes to the job name and command align with the PR objective of focusing on API documentation checks. Explicitly setting the shell to `bash` is a good practice for clarity and compatibility.Makefile (3)
`115-116`: **LGTM!** The target name change from `check-docs` to `check-api-docs` improves clarity by specifying that it checks API docs. --- `184-191`: **LGTM!** The new `api-docs` target consolidates API reference documentation generation using the `crd-ref-docs` tool with appropriate parameters. This change enhances the clarity and specificity of the documentation generation process. --- `118-118`: **LGTM!** The command update for the `check-api-docs` target correctly instructs users to run `make api-docs` instead of `make docs`. This aligns with the introduction of the new `api-docs` target and provides the correct guidance for generating API documentation.docs/api-references/docs.md (3)
`34-35`: **The changes to the `ComponentSpec` table look good!** The new "Default" and "Validation" columns provide useful information in a consistent format. The minimum value validation for `replicas` is appropriate. --- `258-259`: **The `GreptimeDBClusterSpec` table updates look good.** Adding the new "Default" and "Validation" columns with empty values maintains consistency with the other updated tables in this document. --- Line range hint `1-709`: **The API reference documentation updates look great overall!** The new "Default" and "Validation" columns have been consistently added to all the relevant tables, enhancing the usefulness of the reference by providing additional important details for each field. The contents of the new columns appear to be thorough and appropriate throughout. Excellent work on maintaining consistency across all the tables and ensuring the additional information is complete and correct. These updates significantly improve the quality and usability of the API reference.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation