|
| 1 | +======================== |
| 2 | +Technical Documentation |
| 3 | +======================== |
| 4 | + |
| 5 | +This is a template reStructuredText file that demonstrates various functionalities useful for technical documentation. |
| 6 | + |
| 7 | +Section 1 |
| 8 | +========= |
| 9 | + |
| 10 | +Paragraphs and Line Breaks |
| 11 | +-------------------------- |
| 12 | + |
| 13 | +This is the first paragraph. |
| 14 | + |
| 15 | +This is the second paragraph with a |
| 16 | +line break. |
| 17 | + |
| 18 | +Text Formatting |
| 19 | +--------------- |
| 20 | + |
| 21 | +*Italic* text, **Bold** text, and ``Inline Code``. |
| 22 | + |
| 23 | +Lists |
| 24 | +----- |
| 25 | + |
| 26 | +Unordered List: |
| 27 | + |
| 28 | +- Item 1 |
| 29 | +- Item 2 |
| 30 | + - Sub-item 1 |
| 31 | + - Sub-item 2 |
| 32 | + |
| 33 | +Ordered List: |
| 34 | + |
| 35 | +1. First item |
| 36 | +2. Second item |
| 37 | + 1. Sub-item 1 |
| 38 | + 2. Sub-item 2 |
| 39 | + |
| 40 | +Section 2 |
| 41 | +========= |
| 42 | + |
| 43 | +Images |
| 44 | +------ |
| 45 | + |
| 46 | +.. image:: path/to/image.png |
| 47 | + :alt: Alternative text |
| 48 | + :width: 200px |
| 49 | + :align: center |
| 50 | + |
| 51 | +Videos |
| 52 | +------ |
| 53 | + |
| 54 | +.. raw:: html |
| 55 | + |
| 56 | + <iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe> |
| 57 | + |
| 58 | +Links |
| 59 | +----- |
| 60 | + |
| 61 | +Inline Link: `Link text <http://example.com>`_ |
| 62 | + |
| 63 | +Footnote Link: Link text [#]_. |
| 64 | + |
| 65 | +.. [#] http://example.com |
| 66 | +
|
| 67 | +Tables |
| 68 | +------ |
| 69 | + |
| 70 | +Simple Table: |
| 71 | + |
| 72 | ++----------+----------+ |
| 73 | +| Header 1 | Header 2 | |
| 74 | ++==========+==========+ |
| 75 | +| Cell 1 | Cell 2 | |
| 76 | ++----------+----------+ |
| 77 | +| Cell 3 | Cell 4 | |
| 78 | ++----------+----------+ |
| 79 | + |
| 80 | +Grid Table: |
| 81 | + |
| 82 | +.. table:: |
| 83 | + |
| 84 | + +----------+----------+ |
| 85 | + | Header 1 | Header 2 | |
| 86 | + +==========+==========+ |
| 87 | + | Cell 1 | Cell 2 | |
| 88 | + +----------+----------+ |
| 89 | + | Cell 3 | Cell 4 | |
| 90 | + +----------+----------+ |
| 91 | + |
| 92 | +Code Blocks |
| 93 | +----------- |
| 94 | + |
| 95 | +:: |
| 96 | + |
| 97 | + def function(): |
| 98 | + print("This is a code block") |
| 99 | + |
| 100 | +With Syntax Highlighting: |
| 101 | + |
| 102 | +.. code-block:: python |
| 103 | +
|
| 104 | + def function(): |
| 105 | + print("This is a code block with syntax highlighting") |
| 106 | +
|
| 107 | +Directives and Roles |
| 108 | +-------------------- |
| 109 | + |
| 110 | +.. note:: |
| 111 | + |
| 112 | + This is a note. |
| 113 | + |
| 114 | +.. warning:: |
| 115 | + |
| 116 | + This is a warning. |
| 117 | + |
| 118 | +References to a :term:`term`. |
| 119 | + |
| 120 | +Summary Table |
| 121 | +------------- |
| 122 | + |
| 123 | ++--------------+------------------------------------------------------------+----------------------------------------------+ |
| 124 | +| **Element** | **Syntax Example** | **Description** | |
| 125 | ++--------------+------------------------------------------------------------+----------------------------------------------+ |
| 126 | +| **Title** | ``Title Level 1\n===========`` | Creates a title or section header | |
| 127 | +| **Paragraph**| ``This is a paragraph.`` | Creates a paragraph | |
| 128 | +| **Italic** | ``*Italic*`` | Creates italic text | |
| 129 | +| **Bold** | ``**Bold**`` | Creates bold text | |
| 130 | +| **List** | ``- Item 1\n- Item 2`` | Creates an unordered list | |
| 131 | +| **Image** | ``.. image:: path/to/image.png\n :alt: Alt text`` | Embeds an image | |
| 132 | +| **Video** | ``.. raw:: html\n <iframe src="URL"></iframe>`` | Embeds a video | |
| 133 | +| **Link** | `` `Link text <http://example.com>`_ `` | Creates a hyperlink | |
| 134 | +| **Table** | ``+---+---+\n| H1 | H2 |\n+===+===+\n| C1 | C2 |\n+---+---+`` | Creates a simple table | |
| 135 | +| **Code** | ``::\n def func():\n print("code")`` | Creates a code block | |
| 136 | +| **Directive**| ``.. note::\n This is a note.`` | Adds special content like notes or warnings | |
| 137 | ++--------------+------------------------------------------------------------+----------------------------------------------+ |
0 commit comments