-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RELEASE: draft-kowalik-regext-domainconnect-00
- Loading branch information
Pawel Kowalik
committed
Jul 22, 2024
1 parent
f4ccec7
commit 1963e71
Showing
9 changed files
with
4,056 additions
and
3,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
FROM docker.io/paulej/rfctools | ||
RUN sudo dnf -y update && sudo dnf -y install git ruby ruby-devel | ||
RUN bash -c "curl -L https://raw.githubusercontent.com/metanorma/metanorma-linux-setup/master/centos.sh | bash" && \ | ||
curl -L https://raw.githubusercontent.com/metanorma/metanorma-linux-setup/master/install-gems.sh | bash | ||
FROM ghcr.io/ietf-tools/xml2rfc-base:latest | ||
|
||
RUN apt-get -y update && apt-get -y install curl && apt-get -y clean | ||
|
||
RUN bash -c curl -L https://raw.githubusercontent.com/metanorma/metanorma-linux-setup/master/ubuntu.sh | bash && curl -L https://raw.githubusercontent.com/metanorma/metanorma-linux-setup/master/install-gems.sh | bash | ||
|
||
# Put the md2rfc script in place | ||
COPY bin/md2rfc /usr/bin/ | ||
|
||
RUN apt-get -y update && apt-get -y install git nano default-jre && apt-get -y clean | ||
|
||
# Specify the working directory when a container is started | ||
WORKDIR /rfc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# | ||
# This script will invoke mmark to convert markdown to xml2rfc format, | ||
# then it will invoke xml2rfc to produce an outout text file | ||
# | ||
# One may specify one or more markdown files (with the .md extension). | ||
# | ||
|
||
# Ensure that at least one file was specified | ||
if [ $# -eq 0 ] ; then | ||
echo "usage: md2rfc <draft_name.md> [<draft_name.md> ...]" | ||
exit 1; | ||
fi | ||
|
||
# Loop through all of the specified .md files to produce .txt and .pdf files | ||
# as output | ||
while [ $# -gt 0 ] ; do | ||
MDFILE=$1 | ||
shift | ||
XMLFILE=$(echo $MDFILE | sed 's/\.md$/.xml/') | ||
TXTFILE=$(echo $MDFILE | sed 's/\.md$/.txt/') | ||
PDFFILE=$(echo $MDFILE | sed 's/\.md$/.pdf/') | ||
HTMLFILE=$(echo $MDFILE | sed 's/\.md$/.html/') | ||
|
||
if [ x"$MDFILE" == x"$XMLFILE" ] ; then | ||
echo "Error: $MDFILE is not a .md file" | ||
exit 1 | ||
else | ||
mmark "$MDFILE" > "$XMLFILE" && \ | ||
xml2rfc --v3 --text "$XMLFILE" -o "$TXTFILE" && \ | ||
xml2rfc --v3 --pdf "$XMLFILE" -o "$PDFFILE" && \ | ||
xml2rfc --v3 --html "$XMLFILE" -o "$HTMLFILE" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"asciidoc.antora.enableAntoraSupport": true, | ||
"editor.wordWrap": "wordWrapColumn" | ||
} |
Oops, something went wrong.