~james/gengo

gengo/samples-test/samples/reStructured Text/example.rst -rw-r--r-- 1.8 KiB
50871857 — james chore(import): snapshot james.dad.town/gengo at 8f775550b0ee 16 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
===============================
reStructuredText Syntax Guide
===============================

Basic Formatting
---------------
*italic text*
**bold text**
``inline code``

Headers
-------
Level 1
=======

Level 2
-------

Level 3
~~~~~~~

Lists
-----
* Bullet point
* Another point
    * Subpoint
    * Another subpoint

1. Numbered list
2. Second item
#. Auto-numbered item

Links
-----
`Link text <https://example.com>`_
External link_
.. _link: https://example.com

Code Blocks
----------
.. code-block:: python

        def hello():
                print("Hello World")

Tables
------
+------------+------------+
| Header 1   | Header 2   |
+============+============+
| Cell 1     | Cell 2     |
+------------+------------+

Simple Table:
===========  ===========
Header 1     Header 2
===========  ===========
Row 1        Value
Row 2        Value
===========  ===========

Images
------
.. image:: path/to/image.jpg
     :width: 100
     :alt: Alt text

Notes & Warnings
---------------
.. note::
     This is a note

.. warning::
     This is a warning

Directives
----------
.. contents:: Table of Contents
     :depth: 2

.. sidebar:: Sidebar Title
     :subtitle: Optional subtitle

     Sidebar content

.. topic:: Topic Title

     Topic content

Cross-References
---------------
.. _my-reference-label:

Section Title
------------
Reference to :ref:`my-reference-label`

Footnotes
---------
A footnote reference [1]_

.. [1] This is the footnote content

Comments
--------
.. This is a comment

Line Blocks
----------
| Line blocks preserve
| line breaks and
| leading whitespace

Definition Lists
---------------
term
        Definition of the term
another term
        Definition of another term