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: 2024-12-15

--- a/docs/_templates/base.html
+++ b/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 %}
--- a/docs/index.rst
+++ b/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*
 
--- a/docs/binary_data.rst
+++ b/docs/binary_data.rst
@@ -8,9 +8,7 @@
 
 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.
 
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -1595,8 +1595,7 @@
 
 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
--- a/docs/csv_export.rst
+++ b/docs/csv_export.rst
@@ -11,8 +11,7 @@
 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.
--- a/docs/facets.rst
+++ b/docs/facets.rst
@@ -9,8 +9,7 @@
 
 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.
 
--- a/docs/full_text_search.rst
+++ b/docs/full_text_search.rst
@@ -7,8 +7,7 @@
 
 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.
 
--- a/docs/getting_started.rst
+++ b/docs/getting_started.rst
@@ -46,8 +46,7 @@
 
 Glitch allows you to "remix" any project to create your own copy and start editing it in your browser. You can remix the ``datasette-csvs`` project by clicking this button:
 
-.. image:: https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg
-   :target: https://glitch.com/edit/#!/remix/datasette-csvs
+`Remix <https://glitch.com/edit/#!/remix/datasette-csvs>`__
 
 Find a CSV file and drag it onto the Glitch file explorer panel - ``datasette-csvs`` will automatically convert it to a SQLite database (using `sqlite-utils <https://github.com/simonw/sqlite-utils>`__) and allow you to start exploring it using Datasette.

@@ -90,3 +89,2 @@
-.. 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>`__
 
