1
0
Fork
You've already forked sw
0
sw is a minimal and sane web framework fork of https://github.com/jroimartin/sw
Awk 46%
CSS 33.4%
Shell 17.6%
Makefile 3%
Find a file
2024年05月05日 11:53:33 +00:00
bauhardt.com more accurate timestamp 2024年05月05日 11:27:14 +00:00
.gitignore initial commit 2024年05月03日 18:10:37 +00:00
Makefile initial commit 2024年05月03日 18:10:37 +00:00
md2html.awk Initial commit 2014年02月06日 10:54:27 +01:00
README.md powerd by... 2024年05月05日 11:43:58 +00:00
style.css Corrected spelling error 2018年12月20日 10:07:04 -07:00
style.new.css align size right 2024年05月05日 11:53:33 +00:00
style.old.css Initial commit 2014年02月06日 10:54:27 +01:00
sw align size right 2024年05月05日 11:53:33 +00:00
sw.conf filebrowser based css 2024年05月05日 11:03:44 +02: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

This is a fork of https://github.com/jroimartin/sw

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