mirror of https://github.com/lukechilds/node.git
Browse Source
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: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Daniel Wang <wangyang0123@gmail.com>v7.x
Anna Henningsen
9 years ago
6 changed files with 59 additions and 18 deletions
@ -0,0 +1,3 @@ |
|||||
|
Look [here][]! |
||||
|
|
||||
|
[here]: doc_inc_2.html#doc_inc_2_foobar |
@ -0,0 +1,3 @@ |
|||||
|
# foobar |
||||
|
|
||||
|
I exist and am being linked to. |
@ -0,0 +1,2 @@ |
|||||
|
@include doc_inc_1 |
||||
|
@include doc_inc_2.md |
Loading…
Reference in new issue