Test doxygen m.css theme

This commit is contained in:
octorock 2022-05-02 00:00:12 +02:00
parent 2533e0738b
commit 127925edde
4 changed files with 69 additions and 9 deletions

2
.gitignore vendored
View File

@ -15,6 +15,7 @@ translations/*.bin
# doxygen # doxygen
docs/doxygen/html/ docs/doxygen/html/
docs/doxygen/xml/
# tools # tools
tools/agbcc tools/agbcc
@ -86,3 +87,4 @@ _Deparsed_XSubs.pm
__pycache__ __pycache__
Info.plist Info.plist
ctx.c ctx.c
!doxygen_config.py

View File

@ -44,7 +44,7 @@ PROJECT_NUMBER =
# for a project that appears at the top of each page and should give viewer a # for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short. # quick idea about the purpose of the project. Keep the description short.
PROJECT_BRIEF = "Decompilation of The Legend of Zelda: The Minish Cap" PROJECT_BRIEF = "Docs"
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included # With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55 # in the documentation. The maximum height of the logo should not exceed 55
@ -1141,7 +1141,7 @@ IGNORE_PREFIX =
# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
# The default value is: YES. # The default value is: YES.
GENERATE_HTML = YES GENERATE_HTML = NO
# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
@ -1211,7 +1211,7 @@ HTML_STYLESHEET =
# list). For an example see the documentation. # list). For an example see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES. # This tag requires that the tag GENERATE_HTML is set to YES.
HTML_EXTRA_STYLESHEET = "./docs/doxygen/doxygen-extra.css" #HTML_EXTRA_STYLESHEET = "./docs/doxygen/doxygen-extra.css"
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the HTML output directory. Note # other source files which should be copied to the HTML output directory. Note
@ -2015,7 +2015,7 @@ MAN_LINKS = NO
# captures the structure of the code including all documentation. # captures the structure of the code including all documentation.
# The default value is: NO. # The default value is: NO.
GENERATE_XML = NO GENERATE_XML = YES
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a # The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of

View File

@ -1,5 +0,0 @@
body {
background-image: url("../beanstalk-bg.png");
background-attachment: fixed;
background-size: cover;
}

63
doxygen_config.py Normal file
View File

@ -0,0 +1,63 @@
# Configuration file for https://mcss.mosra.cz/documentation/doxygen/
DOXYFILE = "Doxyfile"
MAIN_PROJECT_URL = "https://github.com/zeldaret/tmc"
SHOW_UNDOCUMENTED = True
SEARCH_RESULT_ID_BYTES = 4
SEARCH_FILE_OFFSET_BYTES = 4
SEARCH_NAME_SIZE_BYTES = 2
SEARCH_DOWNLOAD_BINARY = True
HTML_HEADER = """
<style>
html {
height: 100%;
}
dl {
padding-left: 1em;
}
body {
min-height: 100%;
background-image: url("../beanstalk-bg.png");
background-attachment: fixed;
background-size: cover;
}
body > header > nav {
background: #2f363fe5;
}
main>article>.m-container {
padding-top: 1em;
padding-bottom: 1em;
background: #2f363fe5;
}
code {
background: #2f363fe5;
}
body > footer > nav {
background: transparent;
padding: 0;
color: #555;
}
body > footer > nav a {
color: #222;
}
ul.m-doc li.m-doc-expansible > a:first-child::before, ul.m-doc li.m-doc-collapsible > a:first-child::before {
background: transparent;
}
.m-doc-template, dl.m-doc dd, ul.m-doc li > span.m-doc, dl.m-doc dd svg.m-math, ul.m-doc li > span.m-doc svg.m-math {
color: #a4a4a4;
}
img.m-image, svg.m-image {
display: inline-block;
}
main p {
text-indent: 0;
}
</style>
"""
LINKS_NAVBAR1 = [
("Modules", 'modules', []),
("Pages", 'pages', [])
]
LINKS_NAVBAR2 = [
("Classes", 'annotated', []),
("Files", 'files', [])
]