[clang-doc] Add index in each info html file
authorDiego Astiazaran <diegoaat97@gmail.com>
Tue, 6 Aug 2019 18:31:46 +0000 (18:31 +0000)
committerDiego Astiazaran <diegoaat97@gmail.com>
Tue, 6 Aug 2019 18:31:46 +0000 (18:31 +0000)
commit7dfe0bc3c162877a4643831b7917fc195098aac6
tree8133cf99ed18e1b357614bff4238871eeca58065
parenta63417fe6c8fca288db28c9dd77f8ca789627227
[clang-doc] Add index in each info html file

An index structure is created while generating the output file for each
info. This structure is parsed to JSON and written to a file in the
output directory. The html for the index is not rendered by clang-doc. A
Javascript file is included in the output directory, this will the JSON
file and insert HTML elements into the file.

Differential Revision: https://reviews.llvm.org/D65690

llvm-svn: 368070
16 files changed:
clang-tools-extra/clang-doc/Generators.cpp
clang-tools-extra/clang-doc/Generators.h
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/YAMLGenerator.cpp
clang-tools-extra/clang-doc/assets/clang-doc-default-stylesheet.css [moved from clang-tools-extra/clang-doc/stylesheets/clang-doc-default-stylesheet.css with 100% similarity]
clang-tools-extra/clang-doc/assets/index.js [new file with mode: 0644]
clang-tools-extra/clang-doc/tool/CMakeLists.txt
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
clang-tools-extra/unittests/clang-doc/CMakeLists.txt
clang-tools-extra/unittests/clang-doc/ClangDocTest.cpp
clang-tools-extra/unittests/clang-doc/ClangDocTest.h
clang-tools-extra/unittests/clang-doc/GeneratorTest.cpp [new file with mode: 0644]
clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp