Description: Remove all tracking from documentation
 The upstream documentation includes Plausible analytics which tracks
 page views. This is removed to respect user privacy in Debian packages.
 All remote images (screenshots, "badges") are converted to text links.
Author: Mahangu Weerasinghe <mahangu@gmail.com>
Forwarded: not-needed
Last-Update: 2026-08-13

Index: datasette/docs/_templates/base.html
===================================================================
--- datasette.orig/docs/_templates/base.html
+++ datasette/docs/_templates/base.html
@@ -1,6 +1 @@
 {%- extends "!base.html" %}
-
-{% block site_meta %}
-{{ super() }}
-<script defer data-domain="docs.datasette.io" src="https://plausible.io/js/plausible.js"></script>
-{% endblock %}
Index: datasette/docs/index.rst
===================================================================
--- datasette.orig/docs/index.rst
+++ datasette/docs/index.rst
@@ -1,23 +1,13 @@
 Datasette
 =========
 
-|PyPI| |Changelog| |Python 3.x| |Tests| |License| |docker:
-datasette| |discord|
-
-.. |PyPI| image:: https://img.shields.io/pypi/v/datasette.svg
-   :target: https://pypi.org/project/datasette/
-.. |Changelog| image:: https://img.shields.io/github/v/release/simonw/datasette?label=changelog
-   :target: https://docs.datasette.io/en/stable/changelog.html
-.. |Python 3.x| image:: https://img.shields.io/pypi/pyversions/datasette.svg?logo=python&logoColor=white
-   :target: https://pypi.org/project/datasette/
-.. |Tests| image:: https://github.com/simonw/datasette/workflows/Test/badge.svg
-   :target: https://github.com/simonw/datasette/actions?query=workflow%3ATest
-.. |License| image:: https://img.shields.io/badge/license-Apache%202.0-blue.svg
-   :target: https://github.com/simonw/datasette/blob/main/LICENSE
-.. |docker: datasette| image:: https://img.shields.io/badge/docker-datasette-blue
-   :target: https://hub.docker.com/r/datasetteproject/datasette
-.. |discord| image:: https://img.shields.io/discord/823971286308356157?label=discord
-   :target: https://discord.gg/ktd74dm5mw
+`PyPI <https://pypi.org/project/datasette/>`__
+`Changelog <https://docs.datasette.io/en/stable/changelog.html>`__
+`Python 3.x <https://pypi.org/project/datasette/>`__
+`Tests <https://github.com/simonw/datasette/actions?query=workflow%3ATest>`__
+`License <https://github.com/simonw/datasette/blob/main/LICENSE>`__
+`docker:datasette <https://hub.docker.com/r/datasetteproject/datasette>`__
+`discord <https://discord.gg/ktd74dm5mw>`__
 
 *An open source multi-tool for exploring and publishing data*
 
Index: datasette/docs/binary_data.rst
===================================================================
--- datasette.orig/docs/binary_data.rst
+++ datasette/docs/binary_data.rst
@@ -8,9 +8,7 @@ SQLite tables can contain binary data in
 
 Datasette includes special handling for these binary values. The Datasette interface detects binary values and provides a link to download their content, for example on https://latest.datasette.io/fixtures/binary_data
 
-.. image:: https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/binary-data.png
-   :width: 311px
-   :alt: Screenshot showing download links next to binary data in the table view
+`Screenshot showing download links next to binary data in the table view <https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/binary-data.png>`__
 
 Binary data is represented in ``.json`` exports using Base64 encoding.
 
Index: datasette/docs/changelog.rst
===================================================================
--- datasette.orig/docs/changelog.rst
+++ datasette/docs/changelog.rst
@@ -1605,8 +1605,7 @@ CSV export
 
 Any Datasette table, view or custom SQL query can now be exported as CSV.
 
-.. image:: https://github.com/simonw/datasette-screenshots/blob/0.62/advanced-export.png?raw=true
-   :alt: Advanced export form. You can get the data in different JSON shapes, and CSV options are download file, expand labels and stream all rows.
+`Advanced export form. You can get the data in different JSON shapes, and CSV options are download file, expand labels and stream all rows. <https://github.com/simonw/datasette-screenshots/blob/0.62/advanced-export.png?raw=true>`__
 
 Check out the :ref:`CSV export documentation <csv_export>` for more details, or
 try the feature out on
Index: datasette/docs/csv_export.rst
===================================================================
--- datasette.orig/docs/csv_export.rst
+++ datasette/docs/csv_export.rst
@@ -11,8 +11,7 @@ data as CSV" link.
 You can also use the advanced export form for more control over the resulting
 file, which looks like this and has the following options:
 
-.. image:: https://github.com/simonw/datasette-screenshots/blob/0.62/advanced-export.png?raw=true
-   :alt: Advanced export form. You can get the data in different JSON shapes, and CSV options are download file, expand labels and stream all rows.
+`Advanced export form. You can get the data in different JSON shapes, and CSV options are download file, expand labels and stream all rows. <https://github.com/simonw/datasette-screenshots/blob/0.62/advanced-export.png?raw=true>`__
 
 * **download file** - instead of displaying CSV in your browser, this forces
   your browser to download the CSV to your downloads directory.
Index: datasette/docs/facets.rst
===================================================================
--- datasette.orig/docs/facets.rst
+++ datasette/docs/facets.rst
@@ -9,8 +9,7 @@ These values can be selected to further
 
 Here's `an example <https://congress-legislators.datasettes.com/legislators/legislator_terms?_facet=type&_facet=party&_facet=state&_facet_size=10>`__:
 
-.. image:: https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/faceting-details.png
-   :alt: Screenshot showing facets against a table of congressional legislators. Suggested facets include state_rank and start and end dates, and the displayed facets are state, party and type. Each facet lists values along with a count of rows for each value.
+`Screenshot showing facets against a table of congressional legislators. Suggested facets include state_rank and start and end dates, and the displayed facets are state, party and type. Each facet lists values along with a count of rows for each value. <https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/faceting-details.png>`__
 
 Facets can be specified in two ways: using query string parameters, or in ``metadata.json`` configuration for the table.
 
Index: datasette/docs/full_text_search.rst
===================================================================
--- datasette.orig/docs/full_text_search.rst
+++ datasette/docs/full_text_search.rst
@@ -7,8 +7,7 @@ SQLite includes `a powerful mechanism fo
 
 Here's `an example search <https://register-of-members-interests.datasettes.com/regmem/items?_search=hamper&_sort_desc=date>`__:
 
-.. image:: https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/regmem-search.png
-   :alt: Screenshot showing a search for hampers against a table full of items - 453 results are returned.
+`Screenshot showing a search for hampers against a table full of items - 453 results are returned. <https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/regmem-search.png>`__
 
 Datasette automatically detects which tables have been configured for full-text search.
 
Index: datasette/docs/getting_started.rst
===================================================================
--- datasette.orig/docs/getting_started.rst
+++ datasette/docs/getting_started.rst
@@ -76,8 +76,7 @@ The ``--nolock`` option ignores any file
 Now visiting http://localhost:8001/History/downloads will show you a web
 interface to browse your downloads data:
 
-.. figure:: https://static.simonwillison.net/static/2017/datasette-downloads.png
-   :alt: Downloads table rendered by datasette
+`Downloads table rendered by datasette <https://static.simonwillison.net/static/2017/datasette-downloads.png>`__
 
 http://localhost:8001/History/downloads.json will return that data as
 JSON:
