Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 24316f0
Showing
8 changed files
with
902 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
DESTDIR?= | ||
PREFIX?=/usr/local | ||
P=${DESTDIR}/${PREFIX} | ||
|
||
all: sw.conf | ||
|
||
sw.conf: | ||
cp sw.conf.def sw.conf | ||
|
||
install: | ||
mkdir -p ${P}/bin | ||
sed -e "s,/usr/bin/awk,`./whereis awk`,g" md2html.awk > ${P}/bin/md2html.awk | ||
chmod +x ${P}/bin/md2html.awk | ||
cp -f sw ${P}/bin/sw | ||
chmod +x ${P}/bin/sw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
sw - suckless webframework | ||
========================== | ||
sw is a minimal and sane web framework. | ||
|
||
Installation | ||
------------ | ||
Run: | ||
make && make install PREFIX=/usr/local | ||
|
||
Configuration | ||
------------- | ||
Copy sw.conf and style.css to your working directory, and edit them to fit your needs. | ||
|
||
Static web generation | ||
--------------------- | ||
Run from your working directory: | ||
sw /path/to/site | ||
|
||
Where 'site' is the folder where your website is located. | ||
The static version of the website is created under 'site.static'. | ||
|
||
Automatic generation+upload | ||
--------------------------- | ||
The whole process can be automatized if you create a Makefile like this in your working directory: | ||
|
||
$ cat Makefile | ||
all: | ||
sw /path/to/site | ||
rsync -avz site.static/ foo.org:/path/to/wwwroot/ | ||
clean: | ||
rm -rf site.static | ||
|
||
Author | ||
------ | ||
Nibble <develsec.org> | ||
|
||
Contributors | ||
------------ | ||
pancake <nopcode.org> | ||
Andrew Antle |
Oops, something went wrong.