[clang-doc] Redesign of generated HTML files
authorDiego Astiazaran <diegoaat97@gmail.com>
Fri, 16 Aug 2019 18:38:11 +0000 (18:38 +0000)
committerDiego Astiazaran <diegoaat97@gmail.com>
Fri, 16 Aug 2019 18:38:11 +0000 (18:38 +0000)
commit3550da79ecdbc2b2a41aa305c659a5f90eb0b3c5
tree62f6c435a573fea46f251793691bb4e6248ac6ae
parent187c63f14539ee6e79d71fc212475f1ad469af22
[clang-doc] Redesign of generated HTML files

The new design includes a header (contains the project name), a main section, and a footer.
The main section is divided into three subsections. Left, middle, right. The left section contains the general index, the middle contains the info's data, and the right contains the index for the info's content.
The CSS has been updated.
A flag --project-name is added.
The Attributes attribute of the TagNode struct is now a vector of pairs because these attributes should be rendered in the insertion order.
The functions (cpp and js) that converts an Index tree structure into HTML were slightly modified; the first ul tag created is now a ol tag. The inner lists are still ul.

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

llvm-svn: 369139
clang-tools-extra/clang-doc/HTMLGenerator.cpp
clang-tools-extra/clang-doc/Representation.cpp
clang-tools-extra/clang-doc/Representation.h
clang-tools-extra/clang-doc/assets/clang-doc-default-stylesheet.css
clang-tools-extra/clang-doc/assets/index.js
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
clang-tools-extra/docs/clang-doc.rst
clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp