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
70622ffe
Commit
70622ffe
authored
3 years ago
by
Jonas Höppner
Browse files
Options
Downloads
Patches
Plain Diff
Add conversion from md docfiles to html
BCS 746-000669
parent
52f49483
No related branches found
No related tags found
No related merge requests found
Pipeline
#8719
failed with stages
Stage:
Stage:
in 26 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
convert_md2html.py
+208
-0
208 additions, 0 deletions
convert_md2html.py
package_release.py
+9
-1
9 additions, 1 deletion
package_release.py
with
218 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
1
View file @
70622ffe
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
variables
:
variables
:
# CI_IMAGES_BASEPATH: Environment variable configure in gitlab
# CI_IMAGES_BASEPATH: Environment variable configure in gitlab
CI_IMAGES_PATH
:
${CI_IMAGES_BASEPATH}/ci-images
CI_IMAGES_PATH
:
${CI_IMAGES_BASEPATH}/ci-images
CI_IMAGES_REVISION
:
99e363bc5feaa27ff18dbe7731a76ff04d7d0deb
CI_IMAGES_REVISION
:
2f104da98e2a3de9855f48fda992e6f94a62be3a
CI_IMAGE_PYTHON
:
"
${CI_IMAGES_PATH}/python/3.9:${CI_IMAGES_REVISION}"
CI_IMAGE_PYTHON
:
"
${CI_IMAGES_PATH}/python/3.9:${CI_IMAGES_REVISION}"
CI_IMAGE_YOCTO
:
"
${CI_IMAGES_PATH}/yocto-build/ubuntu-20.04:${CI_IMAGES_REVISION}"
CI_IMAGE_YOCTO
:
"
${CI_IMAGES_PATH}/yocto-build/ubuntu-20.04:${CI_IMAGES_REVISION}"
...
...
This diff is collapsed.
Click to expand it.
convert_md2html.py
0 → 100755
+
208
−
0
View file @
70622ffe
This diff is collapsed.
Click to expand it.
package_release.py
+
9
−
1
View file @
70622ffe
...
@@ -10,6 +10,8 @@ import tempfile
...
@@ -10,6 +10,8 @@ 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 +251,13 @@ def main():
...
@@ -249,7 +251,13 @@ 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