Skip to content

Commit

Permalink
self
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 21, 2024
1 parent 6146eed commit c19c881
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ COPY Makefile /home
COPY entry.sh /home
COPY sass /home/sass
COPY xsl /home/xsl
RUN make --directory=/home
RUN make --directory=/home --no-silent

ENTRYPOINT ["/home/entry.sh"]
ENTRYPOINT ["/home/entry.sh", "/home"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![make](https://github.com/zerocracy/pages-action/actions/workflows/make.yml/badge.svg)](https://github.com/zerocracy/pages-action/actions/workflows/make.yml)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/zerocracy/pages-action/blob/master/LICENSE.txt)

Add it together with [judges-action](https://github.com/zerocracy/judges-action).
Use it together with [judges-action](https://github.com/zerocracy/judges-action)
(the documentation is over there).

## How to Contribute

Expand Down
10 changes: 8 additions & 2 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ if [ -z "${JUDGES}" ]; then
JUDGES=judges
fi

if [ -z "$1" ]; then
SELF=$(pwd)
else
SELF=$1
fi

SAXON=/usr/local/Saxon.jar
if [ ! -e "${SAXON}" ]; then
echo "There is not Saxon JAR at this path: ${SAXON}."
Expand Down Expand Up @@ -66,10 +72,10 @@ for f in yaml xml json; do
done

# Build a summary HTML.
css=$(cat target/css/main.css)
css=$(cat "${SELF}/target/css/main.css")
java -jar ${SAXON} \
"-s:${INPUT_OUTPUT}/${name}.xml" \
"-xsl:target/xsl/index.xsl" \
"-xsl:${SELF}/target/xsl/index.xsl" \
"-o:${INPUT_OUTPUT}/${name}.html" \
"version=${VERSION}" \
"name=${name}" \
Expand Down

0 comments on commit c19c881

Please sign in to comment.