From 182e5c8745c94576718315f7596ccc81e5e2417b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 6 May 2020 11:20:58 -0700 Subject: [PATCH] Release Datasette 0.41 Refs #648 #731 #750 #151 #761 #752 #719 #756 #748 --- README.md | 1 + docs/changelog.rst | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/README.md b/README.md index 12a1ec3971..f2a3d81d88 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Datasette is aimed at data journalists, museum curators, archivists, local gover ## News + * 6th May 2020: [Datasette 0.41](http://datasette.readthedocs.io/en/latest/changelog.html#v0-41) - New mechanism for [creating custom pages](https://datasette.readthedocs.io/en/0.41/custom_templates.html#custom-pages), new [configuration directory mode](https://datasette.readthedocs.io/en/0.41/config.html#configuration-directory-mode), new `?column__notlike=` table filter and various other smaller improvements. * 21st April 2020: [Datasette 0.40](http://datasette.readthedocs.io/en/latest/changelog.html#v0-40) - Metadata can now be provided as YAML instead of JSON. Publishing to Zeit Now v1 is no longer supported, but Now v2 support is provided by the new [datasette-publish-now](https://github.com/simonw/datasette-publish-now) plugin. Various bug fixes. * 24th March 2020: [Datasette 0.39](http://datasette.readthedocs.io/en/latest/changelog.html#v0-39) - New `base_url` configuration option for running Datasette under a different URL prefix, `"sort"` and `"sort_desc"` metadata options for setting a default sort order for a table. * 8th March 2020: [Datasette 0.38](http://datasette.readthedocs.io/en/latest/changelog.html#v0-38) - New `--memory` option for `datasete publish cloudrun`, [Docker image](https://hub.docker.com/r/datasetteproject/datasette) upgraded to SQLite 3.31.1. diff --git a/docs/changelog.rst b/docs/changelog.rst index 7a58f58b13..dc06e4ef1f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,35 @@ Changelog ========= +.. _v0_41: + +0.41 (2020-05-06) +----------------- + +You can now create :ref:`custom pages ` within your Datasette instance using a custom template file. For example, adding a template file called ``templates/pages/about.html`` will result in a new page being served at ``/about`` on your instance. See the :ref:`custom pages documentation ` for full details, including how to return custom HTTP headers, redirects and status codes. (`#648 `__) + +:ref:`config_dir` (`#731 `__) allows you to define a custom Datasette instance as a directory. So instead of running the following:: + + $ datasette one.db two.db \ + --metadata.json \ + --template-dir=templates/ \ + --plugins-dir=plugins \ + --static css:css + +You can instead arrange your files in a single directory called ``my-project`` and run this:: + + $ datasette my-project/ + +Also in this release: + +* New ``NOT LIKE`` table filter: ``?colname__notlike=expression``. (`#750 `__) +* Datasette now has a *pattern portfolio* at ``/-/patterns`` - e.g. https://latest.datasette.io/-/patterns. This is a page that shows every Datasette user interface component in one place, to aid core development and people building custom CSS themes. (`#151 `__) +* SQLite `PRAGMA functions `__ such as ``pragma_table_info(tablename)`` are now allowed in Datasette SQL queries. (`#761 `__) +* Datasette pages now consistently return a ``content-type`` of ``text/html; charset=utf-8"``. (`#752 `__) +* Datasette now handles an ASGI ``raw_path`` value of ``None``, which should allow compatibilty with the `Mangum `__ adapter for running ASGI apps on AWS Lambda. Thanks, Colin Dellow. (`#719 `__) +* Installation documentation now covers how to :ref:`installation_pipx`. (`#756 `__) +* Improved the documentation for :ref:`full_text_search`. (`#748 `__) + .. _v0_40: 0.40 (2020-04-21)