chiark / gitweb /
docs installation code
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Sep 2022 18:34:05 +0000 (19:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Sep 2022 18:34:05 +0000 (19:34 +0100)
Copied some of the Makefile from my own code in the Otter Makefile.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile
docs/colophon.md [new file with mode: 0644]
docs/index.rst

index ffb76d8db2cd16d5869624396a7e6be1ca43c901..3219c50e9bf7074f01622f805fc34fe79f9eafc4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,4 +78,21 @@ clean:
 very-clean: clean
        $(CARGO) clean
 
+#---------- docs publication ----------
+
+PUBLISHED_BRANCH=published
+PUBLISH_VERSION=unreleased
+PUBLISH_USER=ianmdlvl@login.chiark.greenend.org.uk
+PUBLISH_DOC_SPHINX_BASE=public-html/hippotat
+PUBLISH_DOC_SPHINX_TAIL=$(PUBLISH_VERSION)/docs
+PUBLISH_DOC_SPHINX=$(PUBLISH_USER):$(PUBLISH_DOC_SPHINX_BASE)/$(PUBLISH_DOC_SPHINX_TAIL)
+
+publish: doc
+       ssh $(PUBLISH_USER) 'cd $(PUBLISH_DOC_SPHINX_BASE) && mkdir -p $(PUBLISH_DOC_SPHINX_TAIL)'
+       rsync -r --delete-delay docs/html/. $(PUBLISH_DOC_SPHINX)/.
+       git branch -f $(PUBLISHED_BRANCH)
+
+publish-make-current:
+       ssh $(PUBLISH_USER) 'set -e; cd $(PUBLISH_DOC_SPHINX_BASE); rm -f current.tmp; ln -s $(PUBLISH_VERSION) current.tmp; mv -T current.tmp current'
+
 .PHONY: cargo-build all doc clean
diff --git a/docs/colophon.md b/docs/colophon.md
new file mode 100644 (file)
index 0000000..324f175
--- /dev/null
@@ -0,0 +1,19 @@
+Colophon
+========
+
+Hippotat is Copyright 2017-2022 Ian Jackson
+and contributors.
+
+Hippotat is released under the GNU GPLv3+
+with an OpenSSL linking exception.
+See the file `COPYING` in the source tree
+for the full licence text.
+There is NO WARRANTY.
+
+The
+[Documentation for the current version](https://www.chiark.greenend.org.uk/~ianmdlvl/hippotat/current/docs/)
+is online,
+as well as [for earlier versons](https://www.chiark.greenend.org.uk/~ianmdlvl/hippotat/).
+
+[Hippotat's source repository](https://salsa.debian.org/iwj/hippotat)
+is hosted on Debian Salsa.
index e91ff701ba9322a07cfc6d15ea3cd4037d899b12..921232c429195c640a88fceb14a863a30eb43a8e 100644 (file)
@@ -9,6 +9,7 @@ Hippotat - Asinine IP over HTTP
    install.md
    config.md
    settings.md
+   colophon.md
 
 Indices and tables
 ==================