From bc3cabc4d58d9f64c0a6bbb7ee0a2a51ab199120 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 3 Mar 2022 18:08:44 +0000 Subject: [PATCH 1/5] Create opensearch.xml --- templates/opensearch.xml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/opensearch.xml diff --git a/templates/opensearch.xml b/templates/opensearch.xml new file mode 100644 index 0000000..dabf1a4 --- /dev/null +++ b/templates/opensearch.xml @@ -0,0 +1,8 @@ + + + mathlib + Search mathlib docs + UTF-8 + {{base_url}}/static/favicon.ico + + From 6e0ff78daab81b451c024957a8eec92bc158ea57 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 3 Mar 2022 18:09:29 +0000 Subject: [PATCH 2/5] Update base.j2 --- templates/base.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/base.j2 b/templates/base.j2 index 7694b32..c151ab5 100644 --- a/templates/base.j2 +++ b/templates/base.j2 @@ -5,6 +5,7 @@ + {% block title %}{% endblock %} - mathlib docs From 0ee2ba69bf047592ea24eccb5ccb527fe9cf3e14 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 3 Mar 2022 18:10:04 +0000 Subject: [PATCH 3/5] Update opensearch.xml --- templates/opensearch.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/opensearch.xml b/templates/opensearch.xml index dabf1a4..381c435 100644 --- a/templates/opensearch.xml +++ b/templates/opensearch.xml @@ -3,6 +3,6 @@ mathlib Search mathlib docs UTF-8 - {{base_url}}/static/favicon.ico - + {{ site_root }}/static/favicon.ico + From 26f094dbff2a183094ae3365b9723f8b07a78818 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 3 Mar 2022 18:12:56 +0000 Subject: [PATCH 4/5] Update print_docs.py --- print_docs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/print_docs.py b/print_docs.py index c84d90e..9ccf9c0 100644 --- a/print_docs.py +++ b/print_docs.py @@ -655,6 +655,9 @@ def write_html_files(partition, loc_map, notes, mod_docs, instances, tactic_docs current_project = None current_filename = None + with open_outfile('opensearch.xml') as out: + out.write(env.get_template('opensearch.xml.j2').render()) + def write_site_map(partition): with open_outfile('sitemap.txt') as out: for filename in partition: From f5d0175b9a192be1ce7a30c9cc03116fe7cbea1e Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 3 Mar 2022 18:13:28 +0000 Subject: [PATCH 5/5] Rename opensearch.xml to opensearch.xml.j2 --- templates/{opensearch.xml => opensearch.xml.j2} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename templates/{opensearch.xml => opensearch.xml.j2} (100%) diff --git a/templates/opensearch.xml b/templates/opensearch.xml.j2 similarity index 100% rename from templates/opensearch.xml rename to templates/opensearch.xml.j2