Commit 2d76e8d
authored
JSON: Restore full technique titles within techniquesHtml (#4412)
The implementation of the `techniquesHtml` field in #4301 comes directly
from the already-built Understanding pages. These include logic to
truncate particularly long titles when linking to techniques. This is
similar to what was done in the XSLT build processes both for the
informative docs and `wcag.json`, except that the new build system
includes a visible ellipsis where content was truncated.
For the purposes of JSON output, it makes more sense to give consumers
access to the full title, leaving them free to do what they want with
it.
Since the build process for the JSON output already processes links to
make them absolute, this adds more processing to also fully expand their
titles within the same loop. This impacts relatively few techniques,
many of which are enumerated in #4393.1 parent c40269f commit 2d76e8d
1 file changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
200 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
201 | 211 | | |
202 | 212 | | |
203 | 213 | | |
| |||
236 | 246 | | |
237 | 247 | | |
238 | 248 | | |
239 | | - | |
240 | | - | |
241 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
242 | 256 | | |
243 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
244 | 260 | | |
245 | 261 | | |
246 | 262 | | |
| |||
299 | 315 | | |
300 | 316 | | |
301 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
302 | 321 | | |
303 | 322 | | |
304 | 323 | | |
| |||
337 | 356 | | |
338 | 357 | | |
339 | 358 | | |
340 | | - | |
| 359 | + | |
341 | 360 | | |
342 | 361 | | |
343 | 362 | | |
| |||
0 commit comments