From 4f9bca63d3bef784490636afdbad3195c56b7068 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Tue, 20 May 2025 16:10:43 +1000 Subject: [PATCH] doc/mgr: edit hello.rst Edit doc/mgr/hello.rst. This includes the rewriting of sentences so that they now appear in grammatically-correct English. This is part of a project to separate out the twenty-five files that were committed to https://github.com/ceph/ceph/pull/62782. Signed-off-by: Zac Dover (cherry picked from commit 87a375c20fcf2366b5f4b4178e9d89a2fba19585) --- doc/mgr/hello.rst | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/doc/mgr/hello.rst b/doc/mgr/hello.rst index 725355fc97012..dd7ab1893b6e9 100644 --- a/doc/mgr/hello.rst +++ b/doc/mgr/hello.rst @@ -6,34 +6,47 @@ This is a simple module skeleton for documentation purposes. Enabling -------- -The *hello* module is enabled with:: +Run the following command to enable the ``hello`` module: - ceph mgr module enable hello +.. prompt:: bash # -To check that it is enabled, run:: + ceph mgr module enable hello - ceph mgr module ls +Run the following command to ensure that the ``hello`` module is enabled: -After editing the module file (found in ``src/pybind/mgr/hello/module.py``), you can see changes by running:: +.. prompt:: bash # - ceph mgr module disable hello - ceph mgr module enable hello + ceph mgr module ls -or:: +After editing the module file (found in ``src/pybind/mgr/hello/module.py``), +reload the module in order to pick up the changes by running the following +commands: - init-ceph restart mgr +.. prompt:: bash # -To execute the module, run:: + ceph mgr module disable hello + ceph mgr module enable hello - ceph hello +Alternatively, run the following command to reload the ``hello`` module and pick up changes to its settings: -The log is found at:: +.. prompt:: bash # - build/out/mgr.x.log + init-ceph restart mgr + +Run the following command to run the module: + +.. prompt:: bash # + + ceph hello + +The log is found in the following file:: + + build/out/mgr.x.log Documenting ----------- -After adding a new mgr module, be sure to add its documentation to ``doc/mgr/module_name.rst``. -Also, add a link to your new module into ``doc/mgr/index.rst``. +After adding a new mgr module, be sure to add its documentation to +``doc/mgr/module_name.rst``. Also, add a link to your new module into +``doc/mgr/index.rst``. -- 2.39.5