mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-09-02 20:01:40 +00:00
Add reDocs GUI support (#1117)
* Adding support for reDocs GUI to Clear Linux Docs repo. 1. Added .tox and MANIFEST to .gitignore 2. Added py rule to make.bat to enable building of bundles.html.txt in Windows 3. Added .tox to exclude_patterns in conf.py 4. Added tox.ini and setup.py support files to project. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com> * Updated setup.py with Clear Linux docs info. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com> * Small adjustment. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
This commit is contained in:
@@ -138,7 +138,7 @@ def updateManPages():
|
||||
#makeSeeAlsoReplacements()
|
||||
for file in manFiles:
|
||||
manFile = ""
|
||||
with open(file,'r') as f:
|
||||
with open(file,'r',encoding="utf8") as f:
|
||||
manFile = f.read()
|
||||
#manFile = addTOC(manFile,file) # Not convinced adding TOC adds value.
|
||||
#
|
||||
@@ -153,7 +153,7 @@ def updateManPages():
|
||||
manFile = manFile.replace(perm,buildManName(nameAndSection[0],nameAndSection[1]))
|
||||
for manName, doNotUse in manNamePerms.items():
|
||||
manFile = manFile.replace(buildManName(manName[0],manName[1]),linkToMan(manName[0],manName[1]))
|
||||
with open(file,'w') as w:
|
||||
with open(file,'w',encoding="utf8") as w:
|
||||
w.write(manFile)
|
||||
|
||||
def addTOC(manContent,file):
|
||||
|
||||
Reference in New Issue
Block a user