diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 356d0072..3a78a99f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: run: ./build_with_docker.sh --finalversion - name: Derive short commit hash id: vars - run: echo "short_sha=${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT" + run: echo "short_sha=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" - name: Rename PDFs with commit hash run: | mv pdfs/acle.pdf "pdfs/acle-${{ steps.vars.outputs.short_sha }}.pdf" diff --git a/README.md b/README.md index 7e0feb7f..5a02a149 100644 --- a/README.md +++ b/README.md @@ -56,18 +56,13 @@ an email to arm.acle@arm.com. ## List of documents -[Arm C Language Extensions](https://arm-software.github.io/acle/main/) - -[Morello Supplement to the Arm C Language Extensions](https://arm-software.github.io/acle/morello/) - -[Arm MVE Intrinsics](https://arm-software.github.io/acle/mve_intrinsics/) - -[Arm Neon Intrinsics Reference](https://arm-software.github.io/acle/neon_intrinsics/) - -[Arm®v8-M Security Extensions - Requirements on Development Tools](https://arm-software.github.io/acle/cmse/) - -The PDF versions can be found in the latest GitHub -[release](https://github.com/ARM-software/acle/releases/latest). +HTML version | PDF version +--- | --- +[Arm C Language Extensions](https://arm-software.github.io/acle/main/) | [download](https://github.com/ARM-software/acle/releases/latest) +[Morello Supplement to the Arm C Language Extensions](https://arm-software.github.io/acle/morello/) | [download](https://github.com/ARM-software/acle/releases/latest) +[Arm MVE Intrinsics](https://arm-software.github.io/acle/mve_intrinsics/) | [download](https://github.com/ARM-software/acle/releases/latest) +[Arm Neon Intrinsics Reference](https://arm-software.github.io/acle/neon_intrinsics/) | [download](https://github.com/ARM-software/acle/releases/latest) +[Arm®v8-M Security Extensions - Requirements on Development Tools](https://arm-software.github.io/acle/cmse/) | [download](https://github.com/ARM-software/acle/releases/latest) # License diff --git a/_includes/navbar.html b/_includes/navbar.html index 5653d8a7..7fcc7d38 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -18,9 +18,9 @@ {% assign hash = site.commithash | default: site.github.build_revision %} {% if hash %} - {% assign short_hash = hash | slice: 0, 12 %} + {% assign short_hash = hash | slice: 0, 7 %} {% if site.finalversion %} - Version: {{ hash }}  :::  + Version: {{ short_hash }}  :::  {% elsif site.cleanrepo %} Version: Dev version ({{ short_hash }})  :::  {% else %} diff --git a/tools/acle_template.tex b/tools/acle_template.tex index 7626c373..f4083416 100644 --- a/tools/acle_template.tex +++ b/tools/acle_template.tex @@ -28,6 +28,7 @@ \usepackage{graphicx} \usepackage[$if(landscape)$landscape,$endif$top=3.7cm,bottom=2.7cm,left=3cm,right=2cm,headsep=1.5cm,footskip=.5cm]{geometry} \usepackage{lastpage} +\usepackage{xstring} % Add extra space to table rows \renewcommand{\arraystretch}{2} @@ -37,14 +38,16 @@ \patchcmd{\footrule}{\hrule}{\color{darkgray}\hrule}{}{} \makeatother +\StrLeft{$commithash$}{7}[\GitHashShort] + \sectionfont{\color{armblue}} $if(finalversion)$ - \newcommand{\versiontext}{\href{https://github.com/ARM-software/acle/commit/$commithash$}{$commithash$}} + \newcommand{\versiontext}{\href{https://github.com/ARM-software/acle/commit/$commithash$}{\GitHashShort}} $else$ $if(cleanrepo)$ - \newcommand{\versiontext}{\textcolor{red}{Development version based on \href{https://github.com/ARM-software/acle/commit/$commithash$}{$commithash$}}} + \newcommand{\versiontext}{\textcolor{red}{Development version based on \href{https://github.com/ARM-software/acle/commit/$commithash$}{\GitHashShort}}} $else$ - \newcommand{\versiontext}{\textcolor{red}{Development version based on \href{https://github.com/ARM-software/acle/commit/$commithash$}{$commithash$}, with modifications}} + \newcommand{\versiontext}{\textcolor{red}{Development version based on \href{https://github.com/ARM-software/acle/commit/$commithash$}{\GitHashShort}, with modifications}} $endif$ $endif$ \newcommand{\dateofissue}{$date-of-issue$}