@@ -46,45 +46,58 @@ def create_page(filename: Optional[str]) -> Tuple[Page, EmbeddedRstParser]:
4646 print (repr (ast_to_testing_string (pages [0 ].ast )))
4747 check_ast_testing_string (
4848 pages [0 ].ast ,
49- "" .join (
50- (
51- '<directive name="steps"><directive name="step">' ,
52- "<section>" ,
53- '<heading id="import-the-public-key-used-by-the-package-management-system">' ,
54- "<text>Import the public key used by the package management system.</text>" ,
55- "</heading><paragraph><text>Issue the " ,
56- "following command to import the\n </text><reference " ,
57- 'refuri="https://www.mongodb.org/static/pgp/server-3.4.asc">' ,
58- "<text>MongoDB public GPG Key</text>" ,
59- "</reference></paragraph></section></directive>" ,
60- '<directive name="step">' ,
61- "<section>" ,
62- '<heading id="create-a-etc-apt-sources-list-d-mongodb-org-3-4-list-file-for-mongodb">' ,
63- "<text>Create a </text><literal><text>" ,
64- "/etc/apt/sources.list.d/mongodb-org-3.4.list</text></literal><text> file for </text>" ,
65- '<role name="guilabel"><text>MongoDB</text></role>' ,
66- "<text>.</text></heading>" ,
67- '<section><heading id="optional-action-heading">' ,
68- "<text>Optional: action heading</text></heading>"
69- "<paragraph><text>Create the list file using the command appropriate for " ,
70- "your version\n of Debian.</text></paragraph>" ,
71- "<paragraph><text>action-content</text></paragraph>" ,
72- "<paragraph><text>action-post</text></paragraph>" ,
73- "</section></section></directive>" ,
74- '<directive name="step"><section>' ,
75- '<heading id="reload-local-package-database"><text>Reload local package database.</text>' ,
76- "</heading><paragraph><text>Issue the following command to reload the local package " ,
77- 'database:</text></paragraph><code copyable="True" lang="sh">sudo apt-get update\n </code>' ,
78- "</section></directive>" ,
79- '<directive name="step"><section><heading id="install-the-mongodb-packages">' ,
80- "<text>Install the MongoDB packages.</text>" ,
81- "</heading><paragraph><text>hi</text></paragraph>" ,
82- "<paragraph><text>You can install either the latest stable version of MongoDB " ,
83- "or a\n specific version of MongoDB.</text></paragraph>" ,
84- '<code lang="sh" copyable="True">' ,
85- 'echo "mongodb-org hold" | sudo dpkg --set-selections' ,
86- "</code><paragraph><text>bye</text></paragraph>" ,
87- "</section></directive></directive>" ,
88- )
89- ),
49+ """
50+ <directive name="steps">
51+ <directive name="step">
52+ <section>
53+ <heading id="import-the-public-key-used-by-the-package-management-system">
54+ <text>Import the </text>
55+ <emphasis><text>public key</text></emphasis>
56+ <text> used by the </text>
57+ <reference refuri="https://en.wikipedia.org/wiki/Package_manager">
58+ <text>package management system</text>
59+ </reference>
60+ </heading>
61+ <paragraph>
62+ <text>Issue the following command to import the\n </text>
63+ <reference refuri="https://www.mongodb.org/static/pgp/server-3.4.asc">
64+ <text>MongoDB public GPG Key</text></reference>
65+ </paragraph></section></directive>
66+ <directive name="step">
67+ <section>
68+ <heading id="create-a-etc-apt-sources-list-d-mongodb-org-3-4-list-file-for-mongodb">
69+ <text>Create a </text><literal><text>
70+ /etc/apt/sources.list.d/mongodb-org-3.4.list</text></literal><text> file for </text>
71+ <role name="guilabel"><text>MongoDB</text></role>
72+ <text>.</text>
73+ </heading>
74+ <section><heading id="optional-action-heading">
75+ <text>Optional: action heading</text></heading>
76+ <paragraph>
77+ <text>Create the list file using the command appropriate for your version\n of Debian.</text>
78+ </paragraph>
79+ <paragraph><text>action-content</text></paragraph>
80+ <paragraph><text>action-post</text></paragraph>
81+ </section></section></directive>
82+ <directive name="step"><section>
83+ <heading id="reload-local-package-database">
84+ <text>Reload local package database.</text>
85+ </heading>
86+ <paragraph>
87+ <text>Issue the following command to reload the local package database:</text>
88+ </paragraph>
89+ <code copyable="True" lang="sh">sudo apt-get update\n </code>
90+ </section></directive>
91+ <directive name="step"><section>
92+ <heading id="install-the-mongodb-packages">
93+ <text>Install the MongoDB packages.</text>
94+ </heading>
95+ <paragraph><text>hi</text></paragraph>
96+ <paragraph>
97+ <text>You can install either the latest stable version of MongoDB or a\n specific version of MongoDB.</text>
98+ </paragraph>
99+ <code lang="sh" copyable="True">
100+ echo "mongodb-org hold" | sudo dpkg --set-selections
101+ </code><paragraph><text>bye</text></paragraph></section></directive>
102+ </directive>""" ,
90103 )
0 commit comments