Commit 0b49032b authored by Fabian Riethmayer's avatar Fabian Riethmayer

Downloading *.tag files for doxygen during make. Removed static files

parent 00ae2d93
......@@ -2,3 +2,4 @@
build
*.qmlc
*.jsc
*.tag
......@@ -17,6 +17,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
from sphinx.util.console import bold
import requests
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
......@@ -199,11 +202,18 @@ rst_epilog = """
"""
doxylink = {
'kirigamiapi' : ('Kirigami2.tags.xml', 'https://api.kde.org/frameworks/kirigami/html/'), # https://api.kde.org/frameworks/kirigami/html/Kirigami2.tags
'kwidgetsaddonsapi' : ('KWidgetsAddons.tags.xml', 'https://api.kde.org/frameworks/kwidgetsaddons/html/'), # https://api.kde.org/frameworks/kwidgetsaddons/html/KWidgetsAddons.tags
'plasmaapi' : ('Plasma.tags.xml', 'https://api.kde.org/frameworks/plasma-framework/html/') # https://api.kde.org/frameworks/plasma-framework/html/Plasma.tags
'kirigamiapi' : ('Kirigami2.tags', 'https://api.kde.org/frameworks/kirigami/html/'), # https://api.kde.org/frameworks/kirigami/html/Kirigami2.tags
'kwidgetsaddonsapi' : ('KWidgetsAddons.tags', 'https://api.kde.org/frameworks/kwidgetsaddons/html/'), # https://api.kde.org/frameworks/kwidgetsaddons/html/KWidgetsAddons.tags
'plasmaapi' : ('Plasma.tags', 'https://api.kde.org/frameworks/plasma-framework/html/') # https://api.kde.org/frameworks/plasma-framework/html/Plasma.tags
}
for doc in doxylink.values():
print(bold("Downloading file {} to {}".format(doc[1] + "/" + doc[0], doc[0])))
tagFile = open("../" + doc[0], "w")
tagFile.write(requests.get(doc[1] + "/" + doc[0]).text)
tagFile.close()
rst_prolog = """
.. role:: iconred
.. role:: plasmablue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment