Move comment nearer to its block

This commit is contained in:
Foster Hangdaan 2024-09-14 08:29:15 -04:00
parent e3f5e470c5
commit 6aa95d5378
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -77,10 +77,10 @@ site.use(footnotes());
site.process([".html"], (pages) => {
pages.forEach((page) => {
// NOTE: This is a hack to append a class to JS doctrings so that we
// can style them. If only the Hightlight.js plugin could be configured
// to do this instead.
if (page.document) {
// NOTE: This is a hack to append a class to JS doctrings so that we
// can style them. If only the Hightlight.js plugin could be configured
// to do this instead.
for (
const codeCommentElement of page.document.getElementsByClassName(
"hljs-comment",