|
100 | 100 | many =
|
101 | 101 | projectOptions:
|
102 | 102 | optionalString (!empty projectOptions) ''
|
103 |
| - <section><details><summary>${heading 3 "Options"}</summary><dl> |
| 103 | + <details><summary>Options</summary><dl> |
104 | 104 | ${concatLines (map one projectOptions)}
|
105 |
| - </dl></details></section> |
| 105 | + </dl></details> |
106 | 106 | '';
|
107 | 107 | };
|
108 | 108 |
|
|
121 | 121 | many =
|
122 | 122 | packages:
|
123 | 123 | optionalString (!empty packages) ''
|
124 |
| - <section><details><summary>${heading 3 "Packages"}</summary><dl> |
| 124 | + <details><summary>Packages</summary><dl> |
125 | 125 | ${concatLines (map one packages)}
|
126 |
| - </dl></details></section> |
| 126 | + </dl></details> |
127 | 127 | '';
|
128 | 128 | };
|
129 | 129 |
|
|
142 | 142 | many =
|
143 | 143 | examples:
|
144 | 144 | optionalString (!empty examples) ''
|
145 |
| - <section><details><summary>${heading 3 "Examples"}</summary><ul> |
| 145 | + <details><summary>Examples</summary><ul> |
146 | 146 | ${concatLines (map one examples)}
|
147 |
| - </ul></details></section> |
| 147 | + </ul></details> |
148 | 148 | '';
|
149 | 149 | };
|
150 | 150 |
|
|
176 | 176 | projects:
|
177 | 177 | concatLines (
|
178 | 178 | mapAttrsToList (name: _: ''
|
179 |
| - <a href="/project/${name}">${name}</a> |
| 179 | + <a href="./project/${name}.html">${name}</a> |
180 | 180 | '') projects
|
181 | 181 | );
|
182 | 182 | };
|
|
201 | 201 | }
|
202 | 202 | // mapAttrs' (
|
203 | 203 | name: project:
|
204 |
| - nameValuePair "project/${name}/index.html" { |
| 204 | + nameValuePair "project/${name}.html" { |
205 | 205 | pagetitle = "NGIpkgs | ${name}";
|
206 |
| - html = pkgs.writeText "index.html" (render.projects.one name project); |
| 206 | + html = pkgs.writeText "${name}.html" (render.projects.one name project); |
207 | 207 | }
|
208 | 208 | ) projects;
|
209 | 209 |
|
|
226 | 226 | --from=markdown+raw_html \
|
227 | 227 | --to=html \
|
228 | 228 | --standalone \
|
229 |
| - --css="/style.css" \ |
| 229 | + --css="./style.css" \ |
230 | 230 | --metadata-file=${metadata} \
|
231 | 231 | --output="$out/${path}" ${html}
|
232 | 232 |
|
|
0 commit comments