~kvik/wiki.9front.org

7b9722e8ffc36f988022df3d65a9193dd7402936 — kvik 1 year, 3 months ago b8c9562
more wiki than ever before
2 files changed, 13 insertions(+), 13 deletions(-)

M index.md
M this.md
M index.md => index.md +5 -5
@@ 26,26 26,26 @@ HTTP.

On Plan 9, run:

	9fs tcp!docs.a-b.xyz!909 /n/docs
	9fs tcp!wiki.a-b.xyz!909 /n/wiki

### HTTP

Visit [docs.a-b.xyz](http://docs.a-b.xyz) with a web browser.
Visit [wiki.a-b.xyz](http://wiki.a-b.xyz) with a web browser.

Contributing
------------

The document source repository is currently hosted and available
for browsing
[here](https://git.sr.ht/~kvik/docs.9front.org).
[here](https://git.sr.ht/~kvik/wiki.9front.org).

Get it locally for reading:

	git/clone https://git.sr.ht/~kvik/docs.9front.org
	git/clone https://git.sr.ht/~kvik/wiki.9front.org

For reading and writing:

	git/clone ssh://git@git.sr.ht/~kvik/docs.9front.org
	git/clone ssh://git@git.sr.ht/~kvik/wiki.9front.org

Everyone is invited to get write access by asking (kvik) on IRC, grid,
or kvik@a-b.xyz.  Otherwise you may submit patches through contribution

M this.md => this.md +8 -8
@@ 2,7 2,7 @@ About this
==========

Other than the git content repository—at the moment hosted on
sourcehut—the docs system runs and is hosted by 9front software
sourcehut—the wiki system runs and is hosted by 9front software
on a 9front machine.

This page intends to document how this is done.


@@ 31,8 31,8 @@ The rest is a glue provided through standard 9front mechanisms.

### Starting off

	; git/clone git://src.a-b.xyz/ugh /usr/doc
	; git/clone https://git.sr.ht/~kvik/docs.9front.org /usr/doc/data
	; git/clone git://src.a-b.xyz/ugh /usr/wiki
	; git/clone https://git.sr.ht/~kvik/wiki.9front.org /usr/wiki/data
	; mkdir /usr/web

### Updates


@@ 40,7 40,7 @@ The rest is a glue provided through standard 9front mechanisms.
Checking for updates and triggering page regeneration is done by a
custom script running once per minute through cron.

	0-59 * * * * local /usr/doc/bin/update
	0-59 * * * * local /usr/wiki/bin/update

### Serving 9p



@@ 50,7 50,7 @@ custom script running once per minute through cron.

	#!/bin/rc
	# Runs as 'none'.
	exec /bin/unionfs -i /usr/doc/public
	exec /bin/unionfs -i /usr/wiki/public

### Serving HTTP



@@ 59,12 59,12 @@ Web clients are served by tcp80, spawned by system network listener.
`/cfg/$sysname/service/tcp80`

	#!/bin/rc
	exec /bin/tcp80 -n /usr/doc/cfg/webns
	exec /bin/tcp80 -n /usr/wiki/cfg/webns

The namespace file `/usr/doc/cfg/` simply binds the `public/` directory
The namespace file `/usr/wiki/cfg/` simply binds the `public/` directory
to the web root:

	bind /usr/doc/public /usr/web
	bind /usr/wiki/public /usr/web

Work-in-Progress
----------------