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

Fix cluster and cbuilder module doc formatting #408

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

georgiy-belyanin
Copy link
Member

This patchset fixes a few problems in cbuilder and cluster module documentation formatting.

The first 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.

The second patch fixes a few errors in cbuilder module documentation by adding missing -- denoting Lua comments in the usage section.

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.
@georgiy-belyanin
Copy link
Member Author

The problems could be observed here:

Comment on lines +16 to +31
-- -- 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")
Copy link
Member

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?

Copy link
Member

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?

Comment on lines +20 to +21
-- -- By default, all instances are added to replicaset-001 in group-001,
-- -- but it's possible to select a different replicaset and/or group:
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants