[DEV] Add http folder

This commit is contained in:
Edouard DUPIN 2013-12-06 21:46:38 +01:00
parent 70423434d8
commit 6c5d034e77
3 changed files with 13 additions and 4 deletions

View File

@ -236,17 +236,23 @@ class doc:
## @param[in] elementName Name of the class requested
## @return [className, link]
##
def get_class_link_from_target(self, elementName):
def get_class_link_from_target(self, elementName, target):
# reject when auto call :
if self.target != None:
return [elementName, ""]
# search in local list :
if elementName in self.listClass.keys():
link = elementName.replace(":","_") + ".html"
return [elementName, "../" + self.moduleName + "/" + link]
if target.get_build_mode() == "debug":
return [elementName, "../" + self.moduleName + "/" + link]
elif self.webSite != "":
return [elementName, self.webSite + "/" + link]
elif elementName in self.listEnum.keys():
link = elementName.replace(":","_") + ".html"
return [elementName, "../" + self.moduleName + "/" + link]
if target.get_build_mode() == "debug":
return [elementName, "../" + self.moduleName + "/" + link]
elif self.webSite != "":
return [elementName, self.webSite + "/" + link]
# did not find :
return [elementName, ""]

View File

@ -413,7 +413,7 @@ class module:
def doc_get_link(self, target, elementName):
if self.documentation == None:
return [elementName, ""]
return self.documentation.get_class_link_from_target(elementName);
return self.documentation.get_class_link_from_target(elementName, target);
# call here to build the module

View File

@ -79,6 +79,9 @@ class Target:
self.listFinalFile=[]
def get_build_mode(self):
return self.buildMode
def AddFileStaging(self, inputFile, outputFile):
for source, dst in self.listFinalFile:
if dst == outputFile :