@@ -42,34 +42,43 @@ def create_page() -> Tuple[Page, EmbeddedRstParser]:
4242 assert len (pages ) == 1
4343 print (repr (ast_to_testing_string (pages [0 ].ast )))
4444 assert ast_to_testing_string (pages [0 ].ast ) == '' .join ((
45- '<directive name="steps"><directive name="step"><section><heading><text>Import the public ' ,
46- 'key used by the package management system.</text></heading><paragraph><text>Issue the ' ,
45+ '<directive name="steps"><directive name="step">' ,
46+ '<section>' ,
47+ '<heading id="import-the-public-key-used-by-the-package-management-system">' ,
48+ '<text>Import the public key used by the package management system.</text>' ,
49+ '</heading><paragraph><text>Issue the ' ,
4750 'following command to import the\n </text><reference ' ,
4851 'refuri="https://www.mongodb.org/static/pgp/server-3.4.asc">' ,
4952 '<text>MongoDB public GPG Key</text>' ,
5053 '</reference><target ids="[\' mongodb-public-gpg-key\' ]" ' ,
5154 'refuri="https://www.mongodb.org/static/pgp/server-3.4.asc">' ,
5255 '</target></paragraph></section></directive>' ,
5356
54- '<directive name="step"><section><heading><text>Create a </text><literal><text>' ,
57+ '<directive name="step">' ,
58+ '<section>' ,
59+ '<heading id="create-a-etc-apt-sources-list-d-mongodb-org-3-4-list-file-for-mongodb">' ,
60+ '<text>Create a </text><literal><text>' ,
5561 '/etc/apt/sources.list.d/mongodb-org-3.4.list</text></literal><text> file for </text>' ,
5662 '<role name="guilabel" label="' ,
5763 '{\' type\' : \' text\' , \' value\' : \' MongoDB\' , \' position\' : {\' start\' : {\' line\' : 1}}}' ,
5864 '"></role>' ,
5965 '<text>.</text></heading>' ,
60- '<section><heading><text>Optional: action heading</text></heading>'
66+ '<section><heading id="optional-action-heading">' ,
67+ '<text>Optional: action heading</text></heading>'
6168 '<paragraph><text>Create the list file using the command appropriate for ' ,
6269 'your version\n of Debian.</text></paragraph>' ,
6370 '<paragraph><text>action-content</text></paragraph>' ,
6471 '<paragraph><text>action-post</text></paragraph>' ,
6572 '</section></section></directive>' ,
6673
67- '<directive name="step"><section><heading><text>Reload local package database.</text>' ,
74+ '<directive name="step"><section>' ,
75+ '<heading id="reload-local-package-database"><text>Reload local package database.</text>' ,
6876 '</heading><paragraph><text>Issue the following command to reload the local package ' ,
6977 'database:</text></paragraph><code lang="sh" copyable="True">sudo apt-get update\n </code>' ,
7078 '</section></directive>' ,
7179
72- '<directive name="step"><section><heading><text>Install the MongoDB packages.</text>' ,
80+ '<directive name="step"><section><heading id="install-the-mongodb-packages">' ,
81+ '<text>Install the MongoDB packages.</text>' ,
7382 '</heading><paragraph><text>hi</text></paragraph>' ,
7483 '<paragraph><text>You can install either the latest stable version of MongoDB ' ,
7584 'or a\n specific version of MongoDB.</text></paragraph>' ,
0 commit comments