From fb0d6049cccf68ac3231aabec59e7bc0ded6b9c3 Mon Sep 17 00:00:00 2001
From: Cole Robinson
Date: Wed, 3 Apr 2019 18:00:23 -0400
Subject: [PATCH] docs: Remove search.php and all references
libvirt.org/search.php drops into some kind of screen which I guess
is supposed to show a search bar with options, but presently for me
renders as nothing but the following text:
Search the documentation on Libvirt.org
The search service indexes the libvirt APIs and documentation as well as the libvir-list@redhat.com mailing-list archives. To use it simply provide a set of keywords:
The main page search bar now redirects to google, this page is broken,
I say we just remove it and move on.
Reviewed-by: Daniel P. Berrange
Signed-off-by: Cole Robinson
---
.gitignore | 1 -
docs/Makefile.am | 22 +---
docs/devhelp/html.xsl | 4 -
docs/search.php.code.in | 225 ----------------------------------------
docs/search.php.in | 16 ---
5 files changed, 2 insertions(+), 266 deletions(-)
delete mode 100644 docs/search.php.code.in
delete mode 100644 docs/search.php.in
diff --git a/.gitignore b/.gitignore
index c918ec8226..7f99e5db2d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -66,7 +66,6 @@
/docs/libvirt-qemu-*.xml
/docs/libvirt-refs.xml
/docs/news.html.in
-/docs/search.php
/docs/todo.html.in
/examples/admin/client_close
/examples/admin/client_info
diff --git a/docs/Makefile.am b/docs/Makefile.am
index bd7bc1a431..ebdc734ddd 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -128,10 +128,6 @@ dot_html_in = \
$(notdir $(wildcard $(srcdir)/*.html.in))
dot_html = $(dot_html_in:%.html.in=%.html)
-dot_php_in = $(notdir $(wildcard $(srcdir)/*.php.in))
-dot_php_code_in = $(dot_php_in:%.php.in=%.php.code.in)
-dot_php = $(dot_php_in:%.php.in=%.php)
-
xml = \
libvirt-api.xml \
libvirt-refs.xml
@@ -175,7 +171,7 @@ EXTRA_DIST= \
$(dot_html) $(dot_html_in) $(gif) $(apihtml) $(apipng) \
$(devhelphtml) $(devhelppng) $(devhelpcss) $(devhelpxsl) \
$(xml) $(qemu_xml) $(lxc_xml) $(admin_xml) $(fig) $(png) $(css) \
- $(logofiles) $(dot_php_in) $(dot_php_code_in) $(dot_php)\
+ $(logofiles) \
$(internals_html_in) $(internals_html) $(fonts) \
aclperms.htmlinc \
hvsupport.pl \
@@ -192,7 +188,6 @@ MAINTAINERCLEANFILES = \
$(addprefix $(srcdir)/,$(apihtml)) \
$(addprefix $(srcdir)/,$(devhelphtml)) \
$(addprefix $(srcdir)/,$(internals_html)) \
- $(addprefix $(srcdir)/,$(dot_php)) \
$(srcdir)/hvsupport.html.in $(srcdir)/aclperms.htmlinc
timestamp="$(shell if test -n "$$SOURCE_DATE_EPOCH"; \
@@ -209,8 +204,7 @@ qemu_api: $(srcdir)/libvirt-qemu-api.xml $(srcdir)/libvirt-qemu-refs.xml
lxc_api: $(srcdir)/libvirt-lxc-api.xml $(srcdir)/libvirt-lxc-refs.xml
admin_api: $(srcdir)/libvirt-admin-api.xml $(srcdir)/libvirt-admin-refs.xml
-web: $(dot_html) $(internals_html) html/index.html devhelp/index.html \
- $(dot_php)
+web: $(dot_html) $(internals_html) html/index.html devhelp/index.html
hvsupport.html: $(srcdir)/hvsupport.html.in
@@ -265,18 +259,6 @@ MAINTAINERCLEANFILES += \
$(AM_V_GEN)$(XMLLINT) --nonet --format $< > $(srcdir)/$@ \
|| { rm $(srcdir)/$@ && exit 1; }
-%.php.tmp: %.php.in site.xsl page.xsl
- $(AM_V_GEN)$(XSLTPROC) --stringparam pagename $(@:.tmp=) \
- --stringparam timestamp $(timestamp) --nonet \
- $(top_srcdir)/docs/site.xsl $< > $@ \
- || { rm $@ && exit 1; }
-
-%.php: %.php.tmp %.php.code.in
- $(AM_V_GEN)sed \
- -e '/<\/span>/r '"$(srcdir)/$@.code.in" \
- -e /php_placeholder/d < $@.tmp > $(srcdir)/$@ \
- || { rm $(srcdir)/$@ && exit 1; }
-
$(apihtml_generated): html/index.html
html/index.html: libvirt-api.xml newapi.xsl page.xsl $(APIBUILD_STAMP)
diff --git a/docs/devhelp/html.xsl b/docs/devhelp/html.xsl
index eb10e362bf..9cdc049150 100644
--- a/docs/devhelp/html.xsl
+++ b/docs/devhelp/html.xsl
@@ -565,10 +565,6 @@ by a Linux instance. The library aim at providing long term stable C API
initially for the Xen
paravirtualization but should be able to integrate other virtualization
mechanisms if needed.
- If you get lost searching for some specific API use, try
-the online search
-engine hosted on libvirt.org
-it indexes the project page, the APIs as well as the mailing-list archives.