From b261954a6cfa8803b39e03628719f1d68cc34556 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 29 May 2020 13:38:22 -0500 Subject: [PATCH] Fix the last change The search form has an action= that needs to be fixed. There are some absolute links and a fragment link that should not be changed. --- docs/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index a5e8c55..204afb6 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -13,13 +13,13 @@ help: .PHONY: help Makefile +# The 404 page can be served at any directory level, so its links must be +# relative to the root. Also, this command must be idempotent, as 404.html is +# not rebuilt if it already exists and 404.rst was not changed. html: Makefile @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - # The 404 page can be served at any directory level, so its links must - # be relative to the root. Also, this command must be idempotent, as - # 404.html is not rebuilt if it already exists and 404.rst was not - # changed. - @sed -Ei 's#(src|href)="([^/])#\1="/\2#' "$(BUILDDIR)/html/404.html" + @sed -E 's/(action|href|src)="([^\/#])/\1="\/\2/;s/\/http/http/' \ + "$(BUILDDIR)/html/404.html" # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).