Move comment nearer to its block
This commit is contained in:
parent
e3f5e470c5
commit
6aa95d5378
1 changed files with 3 additions and 3 deletions
|
@ -77,10 +77,10 @@ site.use(footnotes());
|
||||||
|
|
||||||
site.process([".html"], (pages) => {
|
site.process([".html"], (pages) => {
|
||||||
pages.forEach((page) => {
|
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) {
|
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 (
|
for (
|
||||||
const codeCommentElement of page.document.getElementsByClassName(
|
const codeCommentElement of page.document.getElementsByClassName(
|
||||||
"hljs-comment",
|
"hljs-comment",
|
||||||
|
|
Loading…
Reference in a new issue