Update documentation

This commit is contained in:
Marco Cawthorne 2023-03-25 18:26:55 -07:00
parent 503b69e99a
commit eff7646d6b
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 13 additions and 6 deletions

View File

@ -179,25 +179,26 @@ site_button()
BTN_NAME="$3"
BTN_PAGE="$3"
fi
BTN_OUT="_pb_$BTN_NAME"
if [ -f "$BTN_SEARCHPATH/$BTN_NAME.gif" ]
then
cp "$BTN_SEARCHPATH/$BTN_NAME.gif" "./out/$1/$BTN_NAME.gif"
echo "<a href=\"$BTN_PAGE.html\"><img src=\"$BTN_NAME.gif\"></a><br>"
cp "$BTN_SEARCHPATH/$BTN_NAME.gif" "./out/$1/$BTN_OUT.gif"
echo "<a href=\"$BTN_PAGE.html\"><img src=\"$BTN_OUT.gif\"></a><br>"
return
fi
if [ -f "$BTN_SEARCHPATH/$BTN_NAME.jpg" ]
then
cp "$BTN_SEARCHPATH/$BTN_NAME.jpg" "./out/$1/$BTN_NAME.jpg"
echo "<a href=\"$BTN_PAGE.html\"><img src=\"$BTN_NAME.jpg\"></a><br>"
cp "$BTN_SEARCHPATH/$BTN_NAME.jpg" "./out/$1/$BTN_OUT.jpg"
echo "<a href=\"$BTN_PAGE.html\"><img src=\"$BTN_OUT.jpg\"></a><br>"
return
fi
if [ -f "$BTN_SEARCHPATH/$BTN_NAME.png" ]
then
cp "$BTN_SEARCHPATH/$BTN_NAME.png" "./out/$1/$BTN_NAME.png"
echo "<a href=\"$BTN_PAGE.html\"><img src=\"$BTN_NAME.png\"></a><br>"
cp "$BTN_SEARCHPATH/$BTN_NAME.png" "./out/$1/$BTN_OUT.png"
echo "<a href=\"$BTN_PAGE.html\"><img src=\"$BTN_OUT.png\"></a><br>"
return
fi

View File

@ -45,6 +45,12 @@ You can override specific parts of the website you generate.
`./sites/???/etc/table` - Set parameters on tables.
`./sites/???/etc/td` - Set parameters on regular columns.
If you want to make your URLs on the left/right side panels
use images instead of text, you can supply either a .gif, .jpg, or .png
file inside your page directory. Name it the same thing as your page.
Same can be done for the 'News' button, just name it 'news' and place it
inside the `./sites/???/news/` directory with the file format of your choosing.
# LICENSE
Licensed under the ISC license. Everything in here was written by