Go to file
Brian Cole cf62782735 modify <head> section
- set encoding before title (just in case)
- set viewport so mobile browsers work
2016-04-23 14:00:14 +00:00
.gitignore Initial commit 2014-02-06 10:54:27 +01:00
Makefile Add an uninstall option to the makefile. 2016-02-09 17:16:30 +01:00
README.md Improve README 2015-01-28 23:33:39 +01:00
md2html.awk Initial commit 2014-02-06 10:54:27 +01:00
style.css Initial commit 2014-02-06 10:54:27 +01:00
style.old.css Initial commit 2014-02-06 10:54:27 +01:00
sw modify <head> section 2016-04-23 14:00:14 +00:00
sw.conf.def Initial commit 2014-02-06 10:54:27 +01:00
whereis Initial commit 2014-02-06 10:54:27 +01:00

README.md

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:

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