Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SECO Northern Europe
Yocto
infrastructure
gitlab-ci
Commits
963ac585
Commit
963ac585
authored
3 years ago
by
Jonas Höppner
Browse files
Options
Downloads
Patches
Plain Diff
Add conversion from md docfiles to html
parent
69b649c7
No related branches found
No related tags found
No related merge requests found
Pipeline
#8702
failed with stages
in 30 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
convert_md2html.py
+205
-0
205 additions, 0 deletions
convert_md2html.py
package_release.py
+9
-1
9 additions, 1 deletion
package_release.py
with
214 additions
and
1 deletion
convert_md2html.py
0 → 100755
+
205
−
0
View file @
963ac585
This diff is collapsed.
Click to expand it.
package_release.py
+
9
−
1
View file @
963ac585
...
@@ -10,6 +10,7 @@ import tempfile
...
@@ -10,6 +10,7 @@ import tempfile
import
alphaplan_fwr
import
alphaplan_fwr
from
datetime
import
datetime
from
datetime
import
datetime
from
convert_md2html
import
convertmd2html
def
md5
(
fname
):
def
md5
(
fname
):
hash_md5
=
hashlib
.
md5
()
hash_md5
=
hashlib
.
md5
()
...
@@ -249,7 +250,14 @@ def main():
...
@@ -249,7 +250,14 @@ def main():
if
args
.
doc_dir
is
not
None
:
if
args
.
doc_dir
is
not
None
:
doc_files
=
glob
.
glob
(
os
.
path
.
join
(
args
.
doc_dir
,
"
*.md
"
))
doc_files
=
glob
.
glob
(
os
.
path
.
join
(
args
.
doc_dir
,
"
*.md
"
))
copy_files
(
doc_files
,
""
,
""
,
output_dir
,
outlocal_dir
)
html_files
=
[]
for
f
in
doc_files
:
fout
=
os
.
path
.
splitext
(
f
)[
0
]
+
"
.html
"
convertmd2html
(
f
,
fout
)
html_files
.
append
(
fout
)
copy_files
(
doc_files
+
html_files
,
""
,
""
,
output_dir
,
outlocal_dir
)
if
args
.
images_dir
is
not
None
:
if
args
.
images_dir
is
not
None
:
# Add some additional files to the artifacts
# Add some additional files to the artifacts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment