From e632c31be2a4a7568c74b3d4733ea97a9e915df4 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 21 Dec 2023 13:51:09 -0500 Subject: [PATCH] Merge branch '21305-doc-maintenance' refs #21305 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- doc/_config.yml | 4 ++++ doc/_includes/_google_analytics.liquid | 21 +++++++++++++++++++++ doc/_includes/_matomo_analytics.liquid | 16 ++++++++++++++++ doc/_layouts/default.html.liquid | 17 +++++++---------- 4 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 doc/_includes/_google_analytics.liquid create mode 100644 doc/_includes/_matomo_analytics.liquid diff --git a/doc/_config.yml b/doc/_config.yml index f194e95620..1b6a43e63d 100644 --- a/doc/_config.yml +++ b/doc/_config.yml @@ -13,9 +13,13 @@ baseurl: current_version: all_versions: +latest_version: arvados_api_host: localhost arvados_cluster_uuid: local arvados_workbench_host: http://localhost +google_analytics: "G-EFLSBXJ5SQ" +matomo_analytics_url: "https://piwik.arvados.org" +matomo_analytics_siteid: "3" exclude: ["Rakefile", "tmp", "vendor"] diff --git a/doc/_includes/_google_analytics.liquid b/doc/_includes/_google_analytics.liquid new file mode 100644 index 0000000000..05de01a1c5 --- /dev/null +++ b/doc/_includes/_google_analytics.liquid @@ -0,0 +1,21 @@ +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} + + + \ No newline at end of file diff --git a/doc/_includes/_matomo_analytics.liquid b/doc/_includes/_matomo_analytics.liquid new file mode 100644 index 0000000000..5b65cf5077 --- /dev/null +++ b/doc/_includes/_matomo_analytics.liquid @@ -0,0 +1,16 @@ +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} + + + + + diff --git a/doc/_layouts/default.html.liquid b/doc/_layouts/default.html.liquid index f07f330544..2144695d1a 100644 --- a/doc/_layouts/default.html.liquid +++ b/doc/_layouts/default.html.liquid @@ -10,8 +10,11 @@ SPDX-License-Identifier: CC-BY-SA-3.0 {% unless page.title == "Arvados | Documentation" %} Arvados {% if page.navmenu %}| {{ page.navmenu }} {% endif %} | {% endunless %}{{ page.title }} - - + + + {% if site.current_version != site.latest_version %} + + {% endif %} @@ -27,15 +30,9 @@ SPDX-License-Identifier: CC-BY-SA-3.0 - - - {% include 'navbar_top' %} -- 2.30.2