Skip to content

Commit

Permalink
Minor tweaks to the website
Browse files Browse the repository at this point in the history
Use manpage names in the list of pages instead of the names of the HTML
files and adjust styling a little bit.
  • Loading branch information
jmmv committed Oct 8, 2023
1 parent 2b6ba2c commit 2b7aee2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions site/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ build_docs() {
shtk_cli_info "Converting mandoc to HTML..."
echo "<ul>" >>"${outdir}/docs.html.frag"
for src in man/*.[0-9]; do
dest="${src#man/}.html"
local page="$(echo ${src#man/} | sed -e 's,\.,(,;s,$,),')"
local dest="${src#man/}.html"
mandoc -Thtml -Ofragment -Oman=%N.%S.html "${src}" \
>"${outdir}/${dest}.frag"
echo "<li><a href=\"${dest}\">${dest}</a></li>" \
echo "<li><a href=\"${dest}\">${page}</a></li>" \
>>"${outdir}/docs.html.frag"
done
echo "</ul>" >>"${outdir}/docs.html.frag"
Expand Down
4 changes: 2 additions & 2 deletions site/header.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
</div>
</nav>

<div class="container my-5">
<div class="container my-3">
<div class="row">
<div class="col px-0">
<div class="col">
6 changes: 3 additions & 3 deletions site/index.html.frag
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ brought to you by <a href="https://jmmv.dev/" target="_blank">Julio
Merino</a>.</p>

<a href="https://github.com/jmmv/shtk/releases/"
class="btn btn-primary">Download shtk</a>
<a href="docs.html" class="btn btn-primary">Read the shtk docs</a>
<a href="https://github.com/jmmv/shtk" class="btn btn-secondary">View on
class="btn btn-primary m-2">Download shtk</a>
<a href="docs.html" class="btn btn-primary m-2">Read the shtk docs</a>
<a href="https://github.com/jmmv/shtk" class="btn btn-secondary m-2">View on
GitHub</a>

0 comments on commit 2b7aee2

Please sign in to comment.