Open swapnilpjoshi opened 3 years ago
After inspecting the code and its output, some of the things I learned are:
.. image::
is used when we want to add an image to the page. The name can refer to the path of the image like images/cat.png. :scale:
and :align:
are used to define the size and alignment of the image.
=======
is used to define Heading 1, -------
is used to define Heading 1 and ......
is used to define Heading 1
.. contents::
is used for adding the table of contents
3 commands chosen by me for the task are given below: [1], [2], [3]
Chosen Command 1: .. note::
Link to Documentation: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html?highlight=note%3A%3A#directive-note
Picture of the handwritten documentation:
Chosen Command 2: .. code-block::
Link to Documentation: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html?highlight=..%20code-block%3A%3A#directive-code-block
Picture of the handwritten documentation:
Chosen Command 3: .. literalinclude::
Link to Documentation: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-literalinclude
Picture of the handwritten documentation: