From a72ab23298e860a5444be5256a6153e01dd88bd5 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 4 Apr 2026 22:32:45 +0200 Subject: Start working on a website and some scripts to maintain it * configure.ac (AM_INIT_AUTOMAKE): Add dist-bzip2 and dist-xz. (AC_CONFIG_FILES): Add scripts/publish-release and scripts/publish-release-docs. * doc/Makefile.am: Pass in package version to gendocs.sh. Set css for manual, and toplevel url. * doc/index_template.html: Set stylesheet link and reformat. * scripts/publish-release-docs.in: New file. * scripts/publish-release.in: New file. * scripts/publish-www: New file. * www/index.html: New file. * www/style.css: New file. --- .gitignore | 4 +- configure.ac | 4 +- doc/Makefile.am | 2 +- doc/index_template.html | 111 ++++++++++++++++++++-------------------- scripts/publish-release-docs.in | 6 +++ scripts/publish-release.in | 8 +++ scripts/publish-www | 4 ++ www/index.html | 30 +++++++++++ www/style.css | 3 ++ 9 files changed, 113 insertions(+), 59 deletions(-) create mode 100644 scripts/publish-release-docs.in create mode 100644 scripts/publish-release.in create mode 100755 scripts/publish-www create mode 100644 www/index.html create mode 100644 www/style.css diff --git a/.gitignore b/.gitignore index 8a30185..5d6cf70 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ config.log config.status **/Makefile src/aplwc-repl -aplwc-*.tar.gz +aplwc-*.tar.* /libtool /po/POTFILES /po/en@boldquot.insert-header @@ -44,3 +44,5 @@ aplwc-*.tar.gz /guix.scm /src/aplwc /src/aplwc.1 +/scripts/publish-release +/scripts/publish-release-docs diff --git a/configure.ac b/configure.ac index 2bb4b99..04eb027 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ AC_PREREQ([2.71]) VERSION_NUMBER=`cd $srcdir && build-aux/git-version-gen .tarball-version` gl_INIT_PACKAGE_VERSION([$VERSION_NUMBER]) -AM_INIT_AUTOMAKE([gnu check-news std-options -Wall -Werror]) +AM_INIT_AUTOMAKE([gnu check-news std-options -Wall -Werror dist-bzip2 dist-xz]) AM_SILENT_RULES([yes]) AC_PROG_CC @@ -36,5 +36,7 @@ AC_CONFIG_FILES([ tests/atlocal guix.scm lib/aplwc.pc + scripts/publish-release + scripts/publish-release-docs ]) AC_OUTPUT diff --git a/doc/Makefile.am b/doc/Makefile.am index 143cba9..b2687db 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -7,6 +7,6 @@ clean-local: manual: index_template.html cp index_template.html gendocs_template - $(top_srcdir)/build-aux/gendocs.sh -I $(top_srcdir)/build-aux/ aplwc "Aplwc manual" + $(top_srcdir)/build-aux/gendocs.sh -I $(top_srcdir)/build-aux/ aplwc "Aplwc manual v$(PACKAGE_VERSION)" --html "--css-ref=/style.css -c TOP_NODE_UP_URL=/v$(PACKAGE_VERSION)/manual" manual-rebuild: clean-local manual diff --git a/doc/index_template.html b/doc/index_template.html index 475cc03..af838f1 100644 --- a/doc/index_template.html +++ b/doc/index_template.html @@ -1,59 +1,58 @@ - - - -%%TITLE%% -

%%TITLE%%

- -

last updated %%DATE%%

- - - - + + + + + %%TITLE%% +

%%TITLE%%

+

last updated %%DATE%%

+ + + diff --git a/scripts/publish-release-docs.in b/scripts/publish-release-docs.in new file mode 100644 index 0000000..1da54b2 --- /dev/null +++ b/scripts/publish-release-docs.in @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +make +make -C doc manual-rebuild +scp -r doc/manual peter@pmikkelsen.com:/var/www/htdocs/aplwc.org/v@PACKAGE_VERSION@/ diff --git a/scripts/publish-release.in b/scripts/publish-release.in new file mode 100644 index 0000000..28d1aea --- /dev/null +++ b/scripts/publish-release.in @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +make distcheck +hut git artifact upload aplwc-@PACKAGE_VERSION@.tar.* + +sh ./scripts/publish-release-docs +sh ./scripts/publish-www diff --git a/scripts/publish-www b/scripts/publish-www new file mode 100755 index 0000000..c395f9f --- /dev/null +++ b/scripts/publish-www @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +scp www/*.html www/*.css peter@pmikkelsen.com:/var/www/htdocs/aplwc.org/ diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..f635cea --- /dev/null +++ b/www/index.html @@ -0,0 +1,30 @@ + + + + Aplwc + + + +
+

Aplwc - A Programming Language With Constraints

+
+
+

Latest Release: v0.1 (2026-04-02)

+

News

+ +

Source

+ +

Documentation

+ Aplwc v0.1 manual +
+ + diff --git a/www/style.css b/www/style.css new file mode 100644 index 0000000..c2e2799 --- /dev/null +++ b/www/style.css @@ -0,0 +1,3 @@ +body { + background-color: #e3dfd7; +} -- cgit v1.2.3