File tree Expand file tree Collapse file tree 3 files changed +71
-0
lines changed
Expand file tree Collapse file tree 3 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ emergencies when we need to start branches for older versions.
1616`Unreleased <https://github.com/veit/python-basics-tutorial/compare/24.3.0...HEAD >`_
1717------------------------------------------------------------------------------------
1818
19+ Added
20+ ~~~~~
21+ * 📝 Add conversion to reST
22+
1923Changed
2024~~~~~~~
2125
Original file line number Diff line number Diff line change 1+ Convert
2+ =======
3+
4+ Other file formats can be converted to :doc: `rest ` with Pandoc.
5+
6+ Installation of Pandoc
7+ ----------------------
8+
9+ `Pandoc <https://pandoc.org/installing.html >`_ is a powerful document conversion
10+ utility. We use it for simple conversions, but it is capable of much more.
11+
12+ Installation
13+ ------------
14+
15+ You can install Pandoc for the different platforms:
16+
17+ .. tab :: Debian/Ubuntu
18+
19+ .. code-block :: console
20+
21+ $ sudo apt install pandoc
22+
23+ .. tab :: macOS
24+
25+ .. code-block :: console
26+
27+ $ brew install pandoc
28+
29+ .. tab :: Windows
30+
31+ .. code-block :: ps1
32+
33+ $ choco install pandoc
34+
35+ .. seealso ::
36+ * `Installing pandoc <https://pandoc.org/installing.html >`_
37+
38+ Convert
39+ -------
40+
41+ In the terminal, navigate to the directory containing the documents to be
42+ converted. Then enter the command :samp: `pandoc -s --toc -f { INPUT_FORMAT } -t
43+ rst { MYDOC } .{ SUFFIX } `:
44+
45+ ``-s ``
46+ creates an independent document
47+ ``--toc ``
48+ creates a table of contents (optional)
49+ ``-t ``
50+ creates a reStructuredText output
51+ ``-f ``
52+ tells Pandoc the input format. You can find an overview of the available
53+ input formats in `General options
54+ <https://pandoc.org/MANUAL.html#general-options> `_.
55+
56+ Correcting the converted document
57+ ---------------------------------
58+
59+ The extent of the correction for the converted document depends on the file
60+ format you are converting from. Here are a few things you should pay attention
61+ to:
62+
63+ * Multi-line titles must be converted to single-line titles
64+ * Independent ``** `` characters
65+ * :samp: `***BOLD*** ` should be :samp: `**BOLD** `
66+ * Incorrect tables
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ helpful.
4949
5050 start
5151 rest
52+ convert
5253 code-blocks
5354 placeholder
5455 ui-elements
You can’t perform that action at this time.
0 commit comments