datasette/datasette
Simon Willison 80bf3afa43
metadata.json support for per-table/per-database metadata
Also added support for descriptions and HTML descriptions.

Here's an example metadata.json file illustrating custom per-database and per-
table metadata:

    {
        "title": "Overall datasette title",
        "description_html": "This is a <em>description with HTML</em>.",
        "databases": {
            "db1": {
                "title": "First database",
                "description": "This is a string description & has no HTML",
                "license_url": "http://example.com/",
        		"license": "The example license",
                "queries": {
                	"canned_query": "select * from table1 limit 3;"
                },
                "tables": {
                    "table1": {
                        "title": "Custom title for table1",
                        "description": "Tables can have descriptions too",
                        "source": "This has a custom source",
                        "source_url": "http://example.com/"
                    }
                }
            }
        }
    }

Closes #165, Refs #164
2017-12-07 08:47:07 -08:00
..
static Fix display of select boxes in Firefox 2017-12-02 12:53:08 -08:00
templates metadata.json support for per-table/per-database metadata 2017-12-07 08:47:07 -08:00
__init__.py Added __version__, bumped it to 0.12 2017-11-16 07:20:54 -08:00
app.py metadata.json support for per-table/per-database metadata 2017-12-07 08:47:07 -08:00
cli.py --reload now reloads on metadata changes too 2017-12-07 08:42:28 -08:00
utils.py Fixed bug with detecting FTS tables 2017-12-06 20:54:37 -08:00
version.py Release version 0.13 2017-11-24 19:33:39 -08:00