4#ifndef TEMPLATEGENERATOR_H
5#define TEMPLATEGENERATOR_H
8#include "filesystem/fileresolver.h"
39 void renderDocument(
const DocumentIR &ir,
const QString &templateBaseName);
41 QString m_templateDir;
The Atom class is the fundamental unit for representing documents internally.
A class for holding the members of a collection of doc pages.
The Config class contains the configuration variables for controlling how qdoc produces documentation...
Encapsulate the logic that QDoc uses to find files whose path is provided by the user and that are re...
Generator(FileResolver &file_resolver)
Constructs the generator base class.
virtual void terminateGenerator()
virtual void generateDocs()
Traverses the database recursively to generate all the documentation.
virtual void initializeGenerator()
No-op base implementation.
Builds IR (Intermediate Representation) from QDoc's Node tree.
DocumentIR buildPageIR(const PageNode *pn) const
A PageNode is a Node that generates a documentation page.
Generates documentation using external templates and a pre-built IR.
QString fileExtension() const override
void initializeGenerator() override
No-op base implementation.
void generateCppReferencePage(Aggregate *aggregate, CodeMarker *marker) override
void generatePageNode(PageNode *pn, CodeMarker *marker) override
~TemplateGenerator() override=default
TemplateGenerator(FileResolver &file_resolver)
qsizetype generateAtom(const Atom *atom, const Node *relative, CodeMarker *marker) override
void generateDocs() override
Traverses the database recursively to generate all the documentation.
void terminateGenerator() override
void generateCollectionNode(CollectionNode *cn, CodeMarker *marker) override
QString format() const override
Returns the format identifier for this producer (e.g., "HTML", "DocBook", "template").
void generateQmlTypePage(QmlTypeNode *qcn, CodeMarker *marker) override
Combined button and popup list for selecting options.
Intermediate representation for a documentation topic.
The Node class is the base class for all the nodes in QDoc's parse tree.