[clang-doc] Improving Markdown Output
authorPetr Hosek <phosek@google.com>
Sat, 7 Mar 2020 01:33:56 +0000 (17:33 -0800)
committerPetr Hosek <phosek@google.com>
Sat, 7 Mar 2020 01:37:08 +0000 (17:37 -0800)
commit7003f64c1eb25e6a0dd10a4beabc3ca7bcaef7eb
tree380fa9abf3a5d63ea5bfcb46cf3270295c4558ff
parent4e7c686e46c394b339919df9f716614675d81613
[clang-doc] Improving Markdown Output

This change has two components. The moves the generated file
for a namespace to the directory named after the namespace in
a file named 'index.<format>'. This greatly improves the browsing
experience since the index page is shown by default for a directory.

The second improves the markdown output by adding the links to the
referenced pages for children objects and the link back to the source
code.

Patch By: Clayton

Differential Revision: https://reviews.llvm.org/D72954
clang-tools-extra/clang-doc/HTMLGenerator.cpp
clang-tools-extra/clang-doc/MDGenerator.cpp
clang-tools-extra/clang-doc/Representation.cpp
clang-tools-extra/clang-doc/Representation.h
clang-tools-extra/clang-doc/assets/index.js
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
clang-tools-extra/test/clang-doc/single-file.cpp
clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp
clang-tools-extra/unittests/clang-doc/MDGeneratorTest.cpp