mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 04:53:54 -07:00
[Doxygen] Layout adjustments (#6196)
* Layout adjustments. Took 1 hour 54 minutes Took 2 minutes Took 6 minutes * Remove the empty building page. Took 7 minutes * Change to @page Took 11 minutes * Change to @page again Took 52 seconds * Change to @page again again Took 2 minutes * Fence the page declaration in CONTRIBUTING.md Took 8 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
e318815025
commit
22c6756ce0
9 changed files with 302 additions and 7 deletions
|
|
@ -22,8 +22,11 @@ static QTextBrowser *createBrowser(const QString &helpFile)
|
|||
QString text = in.readAll();
|
||||
file.close();
|
||||
|
||||
// Poor Markdown Converter
|
||||
// --- Remove @page declarations at the top of the file ---
|
||||
auto opts = QRegularExpression::MultilineOption;
|
||||
text = text.replace(QRegularExpression(R"(^\s*@page[^\n]*\n)", opts), "");
|
||||
|
||||
// Poor Markdown Converter
|
||||
text = text.replace(QRegularExpression("^(###)(.*)", opts), "<h3>\\2</h3>")
|
||||
.replace(QRegularExpression("^(##)(.*)", opts), "<h2>\\2</h2>")
|
||||
.replace(QRegularExpression("^(#)(.*)", opts), "<h1>\\2</h1>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue