HTML tidy
Created by: thorade
BuildingsPy can call HTML tidy and check the HTML documentation. The following Python script will print a couple of warnings and errors that should be fixed.
import os
import buildingspy.development.validator as v
moLibsDir = "C:\Users\mthorade\Documents\Dymola"
moLib = "AixLib\Aixlib"
moLibPath = os.path.join(moLibsDir, moLib)
print(moLibPath)
val = v.Validator()
errStr = val.validateHTMLInPackage(moLibPath)
print(errStr)
Remember to change the path.
Before running the script you need to pip install -U buildingspy
.
You might also need to pip install -U pytidylib
and get tidylib.dll
from http://www.html-tidy.org/