-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix cluster and cbuilder module doc formatting #408
base: master
Are you sure you want to change the base?
Fix cluster and cbuilder module doc formatting #408
Conversation
This patch fixes a few errors in cluster module documentation: * The module is now classified as a class module instead of a regular module. * Added missing `--` denoting Lua comments in the usage section. * Changed abstract `exp_err` in `cluster.startup_error` to a specific error.
This patch fixes a few errors in cbuilder module documentation by adding missing `--` denoting Lua comments in the usage section.
The problems could be observed here: |
-- -- After setting up a cluster object the following methods | ||
-- -- could be used to interact with it: | ||
-- -- * :start() Startup the cluster. | ||
-- -- * :start_instance() Startup a specific instance. | ||
-- -- * :stop() Stop the cluster. | ||
-- -- * :each() Execute a function on each instance. | ||
-- -- * :size() get an amount of instances | ||
-- -- * :drop() Drop the cluster. | ||
-- -- * :sync() Sync the configuration and collect a new set of | ||
-- -- instances | ||
-- -- * :reload() Reload the configuration. | ||
-- | ||
-- * :start() Startup the cluster. | ||
-- * :start_instance() Startup a specific instance. | ||
-- * :stop() Stop the cluster. | ||
-- * :each() Execute a function on each instance. | ||
-- * :size() get an amount of instances | ||
-- * :drop() Drop the cluster. | ||
-- * :sync() Sync the configuration and collect a new set of | ||
-- instances | ||
-- * :reload() Reload the configuration. | ||
-- -- The module can also be used for testing failure startup | ||
-- -- cases: | ||
-- | ||
-- The module can also be used for testing failure startup | ||
-- cases: | ||
-- Cluster.startup_error(config, "something went wrong") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't it be just a prose text? IOW, can we break the @usage
section or move it upward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or eliminate usage of the @usage
section and just mark code blocks my myself?
-- -- By default, all instances are added to replicaset-001 in group-001, | ||
-- -- but it's possible to select a different replicaset and/or group: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same question regarding this text.
This patchset fixes a few problems in cbuilder and cluster module documentation formatting.
The first patch fixes a few errors in cluster module documentation:
--
denoting Lua comments in the usage section.exp_err
incluster.startup_error
to a specific error.The second patch fixes a few errors in cbuilder module documentation by adding missing
--
denoting Lua comments in the usage section.