5 Commits
Author SHA1 Message Date
calixteman 92d28ab31b Replace Metalsmith with a docs gulp task
Render the four Markdown pages with Marked and Highlight.js, using a
JavaScript template instead of Nunjucks. Preserve their heading IDs and
relative URLs.

Add `lint-docs` to `gulp lint` to check Markdown tokens, front matter
keys, code languages, and remaining root-relative URLs in selected
HTML attributes.

Verified all four pages against the old Metalsmith output: parsed HTML
matches after ignoring whitespace between elements.
2026-10-05 20:50:29 +02:00
Tim van der Meij e30dda5261 Include the generated API documentation directly on the API page
This should make the API documentation slightly quicker to access for
users by removing an extra click. Moreover, it makes the API
documentation blend in with the rest of the website/theme (one of the
points in #6526).

Fixes #18249.
2024-06-15 15:13:01 +02:00
Tim van der Meij ce7cdf4670 Replace Wintersmith with Metalsmith
Wintersmith is no longer maintained given that the most recent version
is from six years ago, and all vulnerabilities that NPM reports
originate from Wintersmith's dependencies. Metalsmith, and its plugins,
on the other hand have recently had releases and don't have known
vulnerabilities. In fact, the number of reported vulnerabilities by NPM
even goes down to zero with this patch applied.

This commit therefore replaces Wintersmith with Metalsmith by providing
a transparent drop-in replacement, in a way that requires the least
amount of changes to the code and the generated output.

Note that this patch does update our versions of jQuery, Bootstrap and
the Highlight.js theme because the previous versions were very outdated
and didn't work correctly with Metalsmith. Moreover, those old versions
contained vulnerabilities that are hereby fixed.

Fixes #18198.
2024-06-14 20:37:13 +02:00
Yury Delendik 2ca2c387fc Creates make.js code to build jsdoc. 2014-04-13 15:54:24 -05:00
Brendan Dahl 3ce622a106 Redo and add more documentation to gh-pages. 2014-04-10 10:01:51 -07:00