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
9ad0e7d2
Commit
9ad0e7d2
authored
2 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Preparation of spec before publishing
parent
4702387b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
publish_spec.sh
+3
-1
3 additions, 1 deletion
publish_spec.sh
with
3 additions
and
1 deletion
publish_spec.sh
+
3
−
1
View file @
9ad0e7d2
#!/bin/bash
DOCKER_IMAGE
=
pandoc/core:3.0
PANDOC_FILTER_DOCKER_IMAGE
=
pandocfilter:latest
echo
"
\n
------ Checking for docker image --------"
docker pull
"
$DOCKER_IMAGE
"
...
...
@@ -26,10 +27,11 @@ if [ ! $specs ] ; then
fi
for
i
in
*
.md
;
do
echo
"
\n
------ Preparaing spec --------"
docker run
--rm
-v
$(
pwd
)
:/tmp/
-u
$(
id
-u
)
:
$(
id
-g
)
"
$PANDOC_FILTER_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
-t
docx
--reference-doc
"Spec-template.docx"
-o
"
${
PROJECT_NAME
}
_
${
2
}
.docx"
done
echo
"
\n
------ Publishing spec --------"
exit
0
\ No newline at end of file
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