some fixes and release documentation

This commit is contained in:
Jaromil 2015-03-30 15:54:38 +02:00
parent df0a1ba05b
commit 7f66a90231
5 changed files with 39 additions and 34 deletions

View File

@ -1,3 +1,10 @@
0.3 - 30 March 2015
Several bugfixes and enhancements. Added support for recursive
indexing of directory structures, integration with Jaro Mail for
public maildir archiving, Spanish translation of documentation,
render test function for local preview.
0.2 - 2 September 2013
Refactoring based on bootstrap-2 and bootswatch themes plus

View File

@ -3,7 +3,7 @@
.--.--.--.-----| |--.-----.-----.--------.---.-.--| |
| | | | -__| _ | | _ | | _ | _ |
|________|_____|_____|__|__|_____|__|__|__|___._|_____|
Un astuto publicador de sitios web estáticos v 0.5
Un astuto publicador de sitios web estáticos v 0.3
http://dyne.org/software/webnomad

View File

@ -3,7 +3,7 @@
.--.--.--.-----| |--.-----.-----.--------.---.-.--| |
| | | | -__| _ | | _ | | _ | _ |
|________|_____|_____|__|__|_____|__|__|__|___._|_____|
A slick and static website publisher v 0.5
A slick and static website publisher v 0.3
http://www.dyne.org/software/webnomad
@ -129,7 +129,7 @@ https://www.dyne.org/donate
## LICENSE
WebNomad is Copyright (C) 2012-2014 Denis Roio <jaromil@dyne.org>
WebNomad is Copyright (C) 2012-2015 Denis Roio <jaromil@dyne.org>
This program is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License

40
fonts
View File

@ -1,50 +1,48 @@
# prepare fonts
# fonts=('Arial' 'Arial Black' 'Comic Sans MS' 'Courier New' 'Georgia' 'Impact' 'Monaco' 'Lucida Grande')
# fonts+=('Book Antiqua' 'Tahoma' 'Times New Roman' 'Trebuchet MS' 'Verdana' 'Geneva' 'New York')
custom_fonts=()
total_fonts=0 # ${#fonts}
# if there are custom fonts add them
{ test -d fonts } && {
[[ -r fonts ]] && {
notice "Indexing custom fonts"
rm -f ${destination}/css/custom.fonts.css
mkdir -p ${destination}/css
ttf=`find -L fonts -iname '*.ttf'`
for f in ${(f)ttf}; do
ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.ttf}")
cat <<EOF >> ${destination}/css/custom.fonts.css
ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.ttf}")
cat <<EOF >> ${destination}/css/custom.fonts.css
@font-face { font-family: '${ffile%.ttf}';
src: url('$ffile') format('truetype'); }
EOF
total_fonts=$(( $total_fonts + 1 ))
total_fonts=$(( $total_fonts + 1 ))
done
otf=`find -L fonts -iname '*.otf'`
for f in ${(f)otf}; do
ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.otf}")
cat <<EOF >> ${destination}/css/custom.fonts.css
ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.otf}")
cat <<EOF >> ${destination}/css/custom.fonts.css
@font-face { font-family: '${ffile%.otf}';
src: url('$ffile') format('opentype'); }
EOF
total_fonts=$(( $total_fonts + 1 ))
total_fonts=$(( $total_fonts + 1 ))
done
woff=`find -L fonts -iname '*.woff'`
for f in ${(f)woff}; do
ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.woff}")
cat <<EOF >> ${destination}/css/custom.fonts.css
ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.woff}")
cat <<EOF >> ${destination}/css/custom.fonts.css
@font-face { font-family: '${ffile%.woff}';
src: url('$ffile') format('woff'); }
EOF
total_fonts=$(( $total_fonts + 1 ))
total_fonts=$(( $total_fonts + 1 ))
done
act "$total_fonts custom fonts indexed"

20
render
View File

@ -2,7 +2,7 @@
#
# WebNomad, your slick and static website publisher
#
# Copyright (C) 2012-2014 Denis Roio <jaromil@dyne.org>
# Copyright (C) 2012-2015 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
@ -18,7 +18,7 @@
# this source code; if not, write to:
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
VERSION=0.5
VERSION=0.3
QUIET=0
@ -112,28 +112,28 @@ render_header() {
<link href="${baseurl}/css/bootstrap-responsive.css" rel="stylesheet" />
EOF
{ test -r "$DIR"/views/css/custom.css } && {
cat <<EOF
[[ -r "$DIR"/views/css/custom.css ]] && {
cat <<EOF
<link href="${baseurl}/css/custom.css" rel="stylesheet" />
EOF
}
# add css needed for internal functions
for c in $includecss; do
cat <<EOF
cat <<EOF
<link href="${baseurl}/css/${c}" rel="stylesheet" />
EOF
cp "$SYS"/css/${c} "${destination}"/css/
cp "$SYS"/css/${c} "${destination}"/css/
done
{ test -f "${destination}"/css/custom.fonts.css } && {
cat <<EOF
[[ -f "${destination}"/css/custom.fonts.css ]] && {
cat <<EOF
<link href="${baseurl}/css/custom.fonts.css" rel="stylesheet" />
EOF
}
# add any argument string to header
{ test "$1" = "" } || { print "${@}"; print }
[[ "$1" = "" ]] || { print "${@}"; print }
# add the user configured header
render_file "$DIR"/tmpl/header.html
@ -342,7 +342,7 @@ mkdir -p "$destination/img"
#{ test -r "$destination"/css/bootstrap.css } || {
cp "$SYS"/css/bootstrap.css "$destination"/css/
cp "$SYS"/img/* "$destination"/img/
cp views/css/bootstrap.min.css "$destination"/css/
cp "$SYS"/css/bootstrap.min.css "$destination"/css/
cp "$SYS"/css/bootstrap-responsive.css "$destination"/css/
#}
cp "$SYS"/js/bootstrap.min.js "$destination"/js/