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 read the JSON and insert HTML elements into the file.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clang-doc/assets/index.js | ||
---|---|---|
17 ↗ | (On Diff #213158) | Wrong indentation? |
Comment Actions
Fix format of index.js file
clang-tools-extra/clang-doc/assets/index.js | ||
---|---|---|
17 ↗ | (On Diff #213158) | Yes, clang-format "missed" that because I forgot the semicolon in the previous line. |
clang-tools-extra/clang-doc/Generators.cpp | ||
---|---|---|
79 ↗ | (On Diff #213171) | Why is this implementation in the generic Generator? It's fairly HTML-specific -- neither of the other generators are able to parse and include Javascript (since this does include the var JsonIndex bit). |
clang-tools-extra/clang-doc/HTMLGenerator.cpp | ||
665 ↗ | (On Diff #213171) | Can we move this to ClangDocMain.cpp right above where the function is called? That's where most of these types of status updates are. |
clang-tools-extra/clang-doc/Generators.cpp | ||
---|---|---|
79 ↗ | (On Diff #213171) | Moved to HTMLGenerator.cpp; it was there because I was first writing a JSON file which could be used for any generator. |