Removed 'datasette skeleton', closes #476

This commit is contained in:
Simon Willison 2019-05-19 13:05:38 -07:00
commit 503fee891b
2 changed files with 0 additions and 120 deletions

View file

@ -182,52 +182,3 @@ Spatialite tables are automatically hidden) using ``"hidden": true``::
}
}
}
Generating a metadata skeleton
------------------------------
Tracking down the names of all of your databases and tables and formatting them
as JSON can be a little tedious, so Datasette provides a tool to help you
generate a "skeleton" JSON file::
datasette skeleton database1.db database2.db
This will create a ``metadata.json`` file looking something like this::
{
"title": null,
"description": null,
"description_html": null,
"license": null,
"license_url": null,
"source": null,
"source_url": null,
"databases": {
"database1": {
"title": null,
"description": null,
"description_html": null,
"license": null,
"license_url": null,
"source": null,
"source_url": null,
"queries": {},
"tables": {
"example_table": {
"title": null,
"description": null,
"description_html": null,
"license": null,
"license_url": null,
"source": null,
"source_url": null,
"units": {}
}
}
},
"database2": ...
}
}
You can replace any of the ``null`` values with a JSON string to populate that
piece of metadata.