-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(internal/docs): Create utils.go and md_docs.go files for documentation purposes * refactor(go.sum): Update go module dependencies * feat(cmd): Add generate documentation flag and hide it by default in cmd/root.go - Modified the root command to include a flag for generating project documentation - Hidden the 'gen-docs' flag using Flags().MarkHidden() method This commit adds a new option to the root command, allowing users to generate the documentation for their project with a hidden flag set by default. The changes made are in the cmd/root.go file. * refactor(internal/pkg/cmd): Move and reorganize command files and modules * build(Makefile): Update Makefile - Add generate docs task and clean up instructions * feat(cmd/gen-docs/main.go): Initialize documentation generator * docs(README.md): Update project documentation - Clarify installation instructions - Include development and release information - Add hooks section - Improve license explanation - Create README.md.template for future updates * refactor(cmd/gommitizen/main.go): Modify import path for cmd package - Replace internal/cmd import with internal/pkg/cmd - Update the execution of root command accordingly * docs(pkg/docs): Move gen-docs files to pkg/docs directory, create new empty files in pkg/docs for potential future content * docs(CHANGELOG.md): Consolidate version management * docs(pkg/docs): Refactor generateCommandDocumentation function - Separated the function to handle command flags and subcommands for better readability - Modified the function to return a CmdData struct containing all necessary command details (name, long description, short description, usage, example, flags, and subcommands) - Added comments for improved understanding of the code - Improved the handling of hidden flags and invalid commands - Sorted the subcommands by name before appending them to the CmdData struct * docs(cmd/gen-docs/main.go): Update markdown generation process to use new template and log errors using slog package * refactor(README.md): Update hooks description, change shell commands to getCommands - Description of hooks now explains they are getCommands (not shell commands) - All hooks fields are optional This commit updates the README file to clarify that the hooks described in the file are GetCommands and not shell commands. Additionally, it highlights that all hooks fields are optional. * chore: Update documentation (README.md) - Clarify the purpose of the project - Explain how to use the tool - Provide information on development and hooks - Improve the organization and readability of the document - Add a brief introduction - Detail the installation process - Describe the command line usage - Include examples for each hook available - Update the development section - Explain how to run the project in different modes (development, release, pipeline) - Provide instructions on increasing the version manually - Mention the license information - Remove unnecessary whitespace and improve formatting - Fix typos and grammatical errors - Make the document more accessible and easy to read for a wider audience. * docs: Update README.md.template * refactor(md_docs.go): Remove YAML marshalling and log output, simplify template execution - Eliminate unnecessary YAML data marshalling - Streamline code by removing debug logging - Improve readability and maintainability of the function
- Loading branch information
1 parent
c66e9b7
commit d88e4e2
Showing
27 changed files
with
604 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.