Commit 9ef6e230 authored by Anna Henningsen's avatar Anna Henningsen Committed by Myles Borins
Browse files

tools: make sure doctool anchors respect includes

Previously, output files which were created using includes (notably,
the single-page all.html) had basically broken internal links all
over the place because references like `errors.html#errors_class_error`
are being used, yet `id` attributes were generated that looked like
`all_class_error`.

This PR adds generation of comments from the include preprocessor
that indicate from which file the current markdown bits come and
lets the HTML output generation take advantage of that so that more
appropriate `id` attributes can be generated.

PR-URL: https://github.com/nodejs/node/pull/6943


Reviewed-By: default avatarRobert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
Reviewed-By: default avatarDaniel Wang <wangyang0123@gmail.com>
parent f9f85a00
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment