Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelDCurran committed Sep 1, 2024
1 parent 5e14e2c commit 9a932e9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,16 @@ styles = os.path.join(userDocsDir.path, "styles.css")
numberedHeadingsStyle = os.path.join(userDocsDir.path, "numberedHeadings.css")

# Create Non-english md files in user_docs from localized xliff and English skel files
for xliffFile in env.Glob(os.path.join(userDocsDir.path, '*', '*.xliff')):
lang = os.path.basename(xliffFile.path).split('.')[0]
if lang == 'en':
for xliffFile in env.Glob(os.path.join(userDocsDir.path, "*", "*.xliff")):
lang = os.path.basename(xliffFile.path).split(".")[0]
if lang == "en":
continue
mdFile = os.path.splitext(xliffFile.path)[0] + '.md'
env.Command(mdFile, xliffFile, [
f'@{sys.executable} user_docs/markdownTranslate.py generateMarkdown -x "{xliffFile}" -o "{mdFile}"'
])
mdFile = os.path.splitext(xliffFile.path)[0] + ".md"
env.Command(
mdFile,
xliffFile,
[f'@{sys.executable} user_docs/markdownTranslate.py generateMarkdown -x "{xliffFile}" -o "{mdFile}"'],
)
# Allow all markdown files to be converted to html in user_docs
for mdFile in env.Glob(os.path.join(userDocsDir.path, "*", "*.md")):
htmlFile = env.md2html(mdFile)
Expand Down

0 comments on commit 9a932e9

Please sign in to comment.