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 0.2 - 2 September 2013
Refactoring based on bootstrap-2 and bootswatch themes plus 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 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 http://www.dyne.org/software/webnomad
@ -129,7 +129,7 @@ https://www.dyne.org/donate
## LICENSE ## 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 This program is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License modify it under the terms of the GNU Affero General Public License

40
fonts
View File

@ -1,50 +1,48 @@
# prepare fonts # 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=() custom_fonts=()
total_fonts=0 # ${#fonts} total_fonts=0 # ${#fonts}
# if there are custom fonts add them # if there are custom fonts add them
{ test -d fonts } && { [[ -r fonts ]] && {
notice "Indexing custom fonts" notice "Indexing custom fonts"
rm -f ${destination}/css/custom.fonts.css rm -f ${destination}/css/custom.fonts.css
mkdir -p ${destination}/css mkdir -p ${destination}/css
ttf=`find -L fonts -iname '*.ttf'` ttf=`find -L fonts -iname '*.ttf'`
for f in ${(f)ttf}; do for f in ${(f)ttf}; do
ffile=`basename "$f"` ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile" cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.ttf}") custom_fonts+=("${ffile%.ttf}")
cat <<EOF >> ${destination}/css/custom.fonts.css cat <<EOF >> ${destination}/css/custom.fonts.css
@font-face { font-family: '${ffile%.ttf}'; @font-face { font-family: '${ffile%.ttf}';
src: url('$ffile') format('truetype'); } src: url('$ffile') format('truetype'); }
EOF EOF
total_fonts=$(( $total_fonts + 1 )) total_fonts=$(( $total_fonts + 1 ))
done done
otf=`find -L fonts -iname '*.otf'` otf=`find -L fonts -iname '*.otf'`
for f in ${(f)otf}; do for f in ${(f)otf}; do
ffile=`basename "$f"` ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile" cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.otf}") custom_fonts+=("${ffile%.otf}")
cat <<EOF >> ${destination}/css/custom.fonts.css cat <<EOF >> ${destination}/css/custom.fonts.css
@font-face { font-family: '${ffile%.otf}'; @font-face { font-family: '${ffile%.otf}';
src: url('$ffile') format('opentype'); } src: url('$ffile') format('opentype'); }
EOF EOF
total_fonts=$(( $total_fonts + 1 )) total_fonts=$(( $total_fonts + 1 ))
done done
woff=`find -L fonts -iname '*.woff'` woff=`find -L fonts -iname '*.woff'`
for f in ${(f)woff}; do for f in ${(f)woff}; do
ffile=`basename "$f"` ffile=`basename "$f"`
cp "$f" ${destination}/css/"$ffile" cp "$f" ${destination}/css/"$ffile"
custom_fonts+=("${ffile%.woff}") custom_fonts+=("${ffile%.woff}")
cat <<EOF >> ${destination}/css/custom.fonts.css cat <<EOF >> ${destination}/css/custom.fonts.css
@font-face { font-family: '${ffile%.woff}'; @font-face { font-family: '${ffile%.woff}';
src: url('$ffile') format('woff'); } src: url('$ffile') format('woff'); }
EOF EOF
total_fonts=$(( $total_fonts + 1 )) total_fonts=$(( $total_fonts + 1 ))
done done
act "$total_fonts custom fonts indexed" act "$total_fonts custom fonts indexed"

20
render
View File

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