Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Specification Tools
Scripts
Commits
96613f89
Commit
96613f89
authored
1 year ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add pandoc docker image creation containing the mermaid-filter
parent
d368acb8
No related branches found
No related tags found
No related merge requests found
Pipeline
#667
passed
1 year ago
Stage: build
Stage: upgrade
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yml
generateChangemarks/dockerfile.pandoc
+7
-0
7 additions, 0 deletions
generateChangemarks/dockerfile.pandoc
publish_spec.sh
+2
-2
2 additions, 2 deletions
publish_spec.sh
with
19 additions
and
3 deletions
.gitlab-ci.yml
+
10
−
1
View file @
96613f89
...
...
@@ -29,6 +29,15 @@ Build pythonForPandocFilter docker image:
-
generateChangemarks/addTrackedChanges.py
-
generateChangemarks/generateTOC.py
Build Pandoc docker image
:
stage
:
build
before_script
:
cd generateChangemarks
script
:
docker build --tag pandoc:$CI_COMMIT_BRANCH -f dockerfile.pandoc .
rules
:
-
if
:
$CI_COMMIT_BRANCH && $CI_PROJECT_NAME == "scripts"
changes
:
-
generateChangemarks/dockerfile.pandoc
Upgrade index for pages
:
stage
:
upgrade
before_script
:
...
...
This diff is collapsed.
Click to expand it.
generateChangemarks/dockerfile.pandoc
0 → 100644
+
7
−
0
View file @
96613f89
FROM pandoc/core:3.0
RUN apt-get update -y && \
apt-get install -y npm &&\
npm install --global mermaid-filter
ENTRYPOINT ["/usr/local/bin/pandoc"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
publish_spec.sh
+
2
−
2
View file @
96613f89
#!/bin/bash
DOCKER_IMAGE
=
pandoc
/core:3.0
DOCKER_IMAGE
=
pandoc
:master
TOOLS_DOCKER_IMAGE
=
generatechangemarks:master
echo
"
\n
------ Checking for docker image --------"
...
...
@@ -34,7 +34,7 @@ for i in *.md ; do
echo
"
\n
------ Preparaing spec --------"
docker run
--rm
-v
$(
pwd
)
:/tmp/
-u
$(
id
-u
)
:
$(
id
-g
)
"
$TOOLS_DOCKER_IMAGE
"
pandocFilter
-o
"/tmp/"
"/tmp/
$i
"
echo
"
\n
------ Publishing spec --------"
docker run
--rm
-v
$(
pwd
)
:/data
-u
$(
id
-u
)
:
$(
id
-g
)
"
$DOCKER_IMAGE
"
"/data/
$i
"
-f
markdown+escaped_line_breaks
-t
docx
--reference-doc
"/data/
${
3
}
"
-o
"
${
4
}
_
${
2
}
.docx"
docker run
--rm
-v
$(
pwd
)
:/data
-u
$(
id
-u
)
:
$(
id
-g
)
"
$DOCKER_IMAGE
"
"/data/
$i
"
-F
mermaid-filter
-f
markdown+escaped_line_breaks
-t
docx
--reference-doc
"/data/
${
3
}
"
-o
"
${
4
}
_
${
2
}
.docx"
fi
done
...
...
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