| 1 |
Description: Remove all tracking from documentation |
| 2 |
The upstream documentation includes Plausible analytics which tracks |
| 3 |
page views. This is removed to respect user privacy in Debian packages. |
| 4 |
All remote images (screenshots, "badges") are converted to text links. |
| 5 |
Author: Mahangu Weerasinghe <[email protected]> |
| 6 |
Forwarded: not-needed |
| 7 |
Last-Update: 2026-08-13 |
| 8 |
|
| 9 |
Index: datasette/docs/_templates/base.html |
| 10 |
=================================================================== |
| 11 |
--- datasette.orig/docs/_templates/base.html |
| 12 |
+++ datasette/docs/_templates/base.html |
| 13 |
@@ -1,6 +1 @@ |
| 14 |
{%- extends "!base.html" %} |
| 15 |
- |
| 16 |
-{% block site_meta %} |
| 17 |
-{{ super() }} |
| 18 |
-<script defer data-domain="docs.datasette.io" src="https://plausible.io/js/plausible.js"></script> |
| 19 |
-{% endblock %} |
| 20 |
Index: datasette/docs/index.rst |
| 21 |
=================================================================== |
| 22 |
--- datasette.orig/docs/index.rst |
| 23 |
+++ datasette/docs/index.rst |
| 24 |
@@ -1,23 +1,13 @@ |
| 25 |
Datasette |
| 26 |
========= |
| 27 |
|
| 28 |
-|PyPI| |Changelog| |Python 3.x| |Tests| |License| |docker: |
| 29 |
-datasette| |discord| |
| 30 |
- |
| 31 |
-.. |PyPI| image:: https://img.shields.io/pypi/v/datasette.svg |
| 32 |
- :target: https://pypi.org/project/datasette/ |
| 33 |
-.. |Changelog| image:: https://img.shields.io/github/v/release/simonw/datasette?label=changelog |
| 34 |
- :target: https://docs.datasette.io/en/stable/changelog.html |
| 35 |
-.. |Python 3.x| image:: https://img.shields.io/pypi/pyversions/datasette.svg?logo=python&logoColor=white |
| 36 |
- :target: https://pypi.org/project/datasette/ |
| 37 |
-.. |Tests| image:: https://github.com/simonw/datasette/workflows/Test/badge.svg |
| 38 |
- :target: https://github.com/simonw/datasette/actions?query=workflow%3ATest |
| 39 |
-.. |License| image:: https://img.shields.io/badge/license-Apache%202.0-blue.svg |
| 40 |
- :target: https://github.com/simonw/datasette/blob/main/LICENSE |
| 41 |
-.. |docker: datasette| image:: https://img.shields.io/badge/docker-datasette-blue |
| 42 |
- :target: https://hub.docker.com/r/datasetteproject/datasette |
| 43 |
-.. |discord| image:: https://img.shields.io/discord/823971286308356157?label=discord |
| 44 |
- :target: https://discord.gg/ktd74dm5mw |
| 45 |
+`PyPI <https://pypi.org/project/datasette/>`__ |
| 46 |
+`Changelog <https://docs.datasette.io/en/stable/changelog.html>`__ |
| 47 |
+`Python 3.x <https://pypi.org/project/datasette/>`__ |
| 48 |
+`Tests <https://github.com/simonw/datasette/actions?query=workflow%3ATest>`__ |
| 49 |
+`License <https://github.com/simonw/datasette/blob/main/LICENSE>`__ |
| 50 |
+`docker:datasette <https://hub.docker.com/r/datasetteproject/datasette>`__ |
| 51 |
+`discord <https://discord.gg/ktd74dm5mw>`__ |
| 52 |
|
| 53 |
*An open source multi-tool for exploring and publishing data* |
| 54 |
|
| 55 |
Index: datasette/docs/binary_data.rst |
| 56 |
=================================================================== |
| 57 |
--- datasette.orig/docs/binary_data.rst |
| 58 |
+++ datasette/docs/binary_data.rst |
| 59 |
@@ -8,9 +8,7 @@ SQLite tables can contain binary data in |
| 60 |
|
| 61 |
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 |
| 62 |
|
| 63 |
-.. image:: https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/binary-data.png |
| 64 |
- :width: 311px |
| 65 |
- :alt: Screenshot showing download links next to binary data in the table view |
| 66 |
+`Screenshot showing download links next to binary data in the table view <https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/binary-data.png>`__ |
| 67 |
|
| 68 |
Binary data is represented in ``.json`` exports using Base64 encoding. |
| 69 |
|
| 70 |
Index: datasette/docs/changelog.rst |
| 71 |
=================================================================== |
| 72 |
--- datasette.orig/docs/changelog.rst |
| 73 |
+++ datasette/docs/changelog.rst |
| 74 |
@@ -1605,8 +1605,7 @@ CSV export |
| 75 |
|
| 76 |
Any Datasette table, view or custom SQL query can now be exported as CSV. |
| 77 |
|
| 78 |
-.. image:: https://github.com/simonw/datasette-screenshots/blob/0.62/advanced-export.png?raw=true |
| 79 |
- :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. |
| 80 |
+`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>`__ |
| 81 |
|
| 82 |
Check out the :ref:`CSV export documentation <csv_export>` for more details, or |
| 83 |
try the feature out on |
| 84 |
Index: datasette/docs/csv_export.rst |
| 85 |
=================================================================== |
| 86 |
--- datasette.orig/docs/csv_export.rst |
| 87 |
+++ datasette/docs/csv_export.rst |
| 88 |
@@ -11,8 +11,7 @@ data as CSV" link. |
| 89 |
You can also use the advanced export form for more control over the resulting |
| 90 |
file, which looks like this and has the following options: |
| 91 |
|
| 92 |
-.. image:: https://github.com/simonw/datasette-screenshots/blob/0.62/advanced-export.png?raw=true |
| 93 |
- :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. |
| 94 |
+`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>`__ |
| 95 |
|
| 96 |
* **download file** - instead of displaying CSV in your browser, this forces |
| 97 |
your browser to download the CSV to your downloads directory. |
| 98 |
Index: datasette/docs/facets.rst |
| 99 |
=================================================================== |
| 100 |
--- datasette.orig/docs/facets.rst |
| 101 |
+++ datasette/docs/facets.rst |
| 102 |
@@ -9,8 +9,7 @@ These values can be selected to further |
| 103 |
|
| 104 |
Here's `an example <https://congress-legislators.datasettes.com/legislators/legislator_terms?_facet=type&_facet=party&_facet=state&_facet_size=10>`__: |
| 105 |
|
| 106 |
-.. image:: https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/faceting-details.png |
| 107 |
- :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. |
| 108 |
+`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>`__ |
| 109 |
|
| 110 |
Facets can be specified in two ways: using query string parameters, or in ``metadata.json`` configuration for the table. |
| 111 |
|
| 112 |
Index: datasette/docs/full_text_search.rst |
| 113 |
=================================================================== |
| 114 |
--- datasette.orig/docs/full_text_search.rst |
| 115 |
+++ datasette/docs/full_text_search.rst |
| 116 |
@@ -7,8 +7,7 @@ SQLite includes `a powerful mechanism fo |
| 117 |
|
| 118 |
Here's `an example search <https://register-of-members-interests.datasettes.com/regmem/items?_search=hamper&_sort_desc=date>`__: |
| 119 |
|
| 120 |
-.. image:: https://raw.githubusercontent.com/simonw/datasette-screenshots/0.62/non-retina/regmem-search.png |
| 121 |
- :alt: Screenshot showing a search for hampers against a table full of items - 453 results are returned. |
| 122 |
+`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>`__ |
| 123 |
|
| 124 |
Datasette automatically detects which tables have been configured for full-text search. |
| 125 |
|
| 126 |
Index: datasette/docs/getting_started.rst |
| 127 |
=================================================================== |
| 128 |
--- datasette.orig/docs/getting_started.rst |
| 129 |
+++ datasette/docs/getting_started.rst |
| 130 |
@@ -76,8 +76,7 @@ The ``--nolock`` option ignores any file |
| 131 |
Now visiting http://localhost:8001/History/downloads will show you a web |
| 132 |
interface to browse your downloads data: |
| 133 |
|
| 134 |
-.. figure:: https://static.simonwillison.net/static/2017/datasette-downloads.png |
| 135 |
- :alt: Downloads table rendered by datasette |
| 136 |
+`Downloads table rendered by datasette <https://static.simonwillison.net/static/2017/datasette-downloads.png>`__ |
| 137 |
|
| 138 |
http://localhost:8001/History/downloads.json will return that data as |
| 139 |
JSON: |