summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2026-04-04 22:32:45 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2026-04-04 22:32:45 +0200
commita72ab23298e860a5444be5256a6153e01dd88bd5 (patch)
tree3608ef2a9e04525fdc9e0f4d09f7e71b224087be
parenta809bc0f49ee4c6e777f39d1f80ee57862a0fcab (diff)
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.
-rw-r--r--.gitignore4
-rw-r--r--configure.ac4
-rw-r--r--doc/Makefile.am2
-rw-r--r--doc/index_template.html111
-rw-r--r--scripts/publish-release-docs.in6
-rw-r--r--scripts/publish-release.in8
-rwxr-xr-xscripts/publish-www4
-rw-r--r--www/index.html30
-rw-r--r--www/style.css3
9 files changed, 113 insertions, 59 deletions
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 @@
<!DOCTYPE html>
<html>
-<head>
-</head>
-
-<title>%%TITLE%%</title>
-<h2>%%TITLE%%</h2>
-
-<h3>last updated %%DATE%%</h3>
-
-<ul>
-<li><a href="%%PACKAGE%%.html">HTML
- (%%HTML_MONO_SIZE%%K bytes)</a> - entirely on one web page.</li>
-%%IF HTML_NODE%%
-<li><a href="html_node/index.html">HTML</a> - with one web page per
- node.</li>
-%%ENDIF HTML_NODE%%
-%%IF HTML_SECTION%%
-<li><a href="html_section/index.html">HTML</a> - with one web page per
- section.</li>
-%%ENDIF HTML_SECTION%%
-%%IF HTML_CHAPTER%%
-<li><a href="html_chapter/index.html">HTML</a> - with one web page per
- chapter.</li>
-%%ENDIF HTML_CHAPTER%%
-<li><a href="%%PACKAGE%%.html.gz">HTML compressed
- (%%HTML_MONO_GZ_SIZE%%K gzipped characters)</a> - entirely on
- one web page.</li>
-%%IF HTML_NODE%%
-<li><a href="%%PACKAGE%%.html_node.tar.gz">HTML compressed
- (%%HTML_NODE_TGZ_SIZE%%K gzipped tar file)</a> -
- with one web page per node.</li>
-%%ENDIF HTML_NODE%%
-%%IF HTML_SECTION%%
-<li><a href="%%PACKAGE%%.html_section.tar.gz">HTML compressed
- (%%HTML_SECTION_TGZ_SIZE%%K gzipped tar file)</a> -
- with one web page per section.</li>
-%%ENDIF HTML_SECTION%%
-%%IF HTML_CHAPTER%%
-<li><a href="%%PACKAGE%%.html_chapter.tar.gz">HTML compressed
- (%%HTML_CHAPTER_TGZ_SIZE%%K gzipped tar file)</a> -
- with one web page per chapter.</li>
-%%ENDIF HTML_CHAPTER%%
-<li><a href="%%PACKAGE%%.info.tar.gz">Info document
- (%%INFO_TGZ_SIZE%%K bytes gzipped tar file)</a>.</li>
-<li><a href="%%PACKAGE%%.txt">ASCII text
- (%%ASCII_SIZE%%K bytes)</a>.</li>
-<li><a href="%%PACKAGE%%.txt.gz">ASCII text compressed
- (%%ASCII_GZ_SIZE%%K bytes gzipped)</a>.</li>
-<li><a href="%%PACKAGE%%.dvi.gz">TeX dvi file
- (%%DVI_GZ_SIZE%%K bytes gzipped)</a>.</li>
-<li><a href="%%PACKAGE%%.pdf">PDF file
- (%%PDF_SIZE%%K bytes)</a>.</li>
-<li><a href="%%PACKAGE%%.texi.tar.gz">Texinfo source
- (%%TEXI_TGZ_SIZE%%K bytes gzipped tar file).</a></li>
-</ul>
-
-</body>
+ <head>
+ <link rel="stylesheet" type="text/css" href="/style.css">
+ </head>
+ <body>
+ <title>%%TITLE%%</title>
+ <h2>%%TITLE%%</h2>
+ <h3>last updated %%DATE%%</h3>
+
+ <ul>
+ <li><a href="%%PACKAGE%%.html">HTML
+ (%%HTML_MONO_SIZE%%K bytes)</a> - entirely on one web page.</li>
+ %%IF HTML_NODE%%
+ <li><a href="html_node/index.html">HTML</a> - with one web page per
+ node.</li>
+ %%ENDIF HTML_NODE%%
+ %%IF HTML_SECTION%%
+ <li><a href="html_section/index.html">HTML</a> - with one web page per
+ section.</li>
+ %%ENDIF HTML_SECTION%%
+ %%IF HTML_CHAPTER%%
+ <li><a href="html_chapter/index.html">HTML</a> - with one web page per
+ chapter.</li>
+ %%ENDIF HTML_CHAPTER%%
+ <li><a href="%%PACKAGE%%.html.gz">HTML compressed
+ (%%HTML_MONO_GZ_SIZE%%K gzipped characters)</a> - entirely on
+ one web page.</li>
+ %%IF HTML_NODE%%
+ <li><a href="%%PACKAGE%%.html_node.tar.gz">HTML compressed
+ (%%HTML_NODE_TGZ_SIZE%%K gzipped tar file)</a> -
+ with one web page per node.</li>
+ %%ENDIF HTML_NODE%%
+ %%IF HTML_SECTION%%
+ <li><a href="%%PACKAGE%%.html_section.tar.gz">HTML compressed
+ (%%HTML_SECTION_TGZ_SIZE%%K gzipped tar file)</a> -
+ with one web page per section.</li>
+ %%ENDIF HTML_SECTION%%
+ %%IF HTML_CHAPTER%%
+ <li><a href="%%PACKAGE%%.html_chapter.tar.gz">HTML compressed
+ (%%HTML_CHAPTER_TGZ_SIZE%%K gzipped tar file)</a> -
+ with one web page per chapter.</li>
+ %%ENDIF HTML_CHAPTER%%
+ <li><a href="%%PACKAGE%%.info.tar.gz">Info document
+ (%%INFO_TGZ_SIZE%%K bytes gzipped tar file)</a>.</li>
+ <li><a href="%%PACKAGE%%.txt">ASCII text
+ (%%ASCII_SIZE%%K bytes)</a>.</li>
+ <li><a href="%%PACKAGE%%.txt.gz">ASCII text compressed
+ (%%ASCII_GZ_SIZE%%K bytes gzipped)</a>.</li>
+ <li><a href="%%PACKAGE%%.dvi.gz">TeX dvi file
+ (%%DVI_GZ_SIZE%%K bytes gzipped)</a>.</li>
+ <li><a href="%%PACKAGE%%.pdf">PDF file
+ (%%PDF_SIZE%%K bytes)</a>.</li>
+ <li><a href="%%PACKAGE%%.texi.tar.gz">Texinfo source
+ (%%TEXI_TGZ_SIZE%%K bytes gzipped tar file).</a></li>
+ </ul>
+ </body>
</html>
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 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Aplwc</title>
+ <link rel="stylesheet" type="text/css" href="/style.css">
+ </head>
+ <body>
+ <header>
+ <h1>Aplwc - A Programming Language With Constraints</h1>
+ </header>
+ <section>
+ <h2>Latest Release: v0.1 (2026-04-02)</h2>
+ <h3>News</h3>
+ <ul>
+ <li>Initial import of the code into git.</li>
+ </ul>
+ <h3>Source</h3>
+ <ul>
+ <li><a href="https://git.sr.ht/~pmikkelsen/aplwc/refs/download/v0.1/aplwc-0.1.tar.gz">aplwc-0.1.tar.gz</a></li>
+ <li><a href="https://git.sr.ht/~pmikkelsen/aplwc/refs/download/v0.1/aplwc-0.1.tar.xz">aplwc-0.1.tar.xz</a></li>
+ <li><a href="https://git.sr.ht/~pmikkelsen/aplwc/refs/download/v0.1/aplwc-0.1.tar.bz2">aplwc-0.1.tar.bz2</a></li>
+
+ <li><a href="https://git.sr.ht/~pmikkelsen/aplwc/tree/v0.1">git repository at release tag</a></li>
+ <li><a href="https://git.sr.ht/~pmikkelsen/aplwc/archive/v0.1.tar.gz">git snapshot (.tar.gz)</a></li>
+ </ul>
+ <h3>Documentation</h3>
+ <a href="/v0.1/manual/">Aplwc v0.1 manual</a>
+ </section>
+ </body>
+</html>
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;
+}