From 73bed175631a79e13a521eee82f8451dd0477eb3 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 18 Feb 2021 15:25:01 -0800 Subject: [PATCH] Corrected documentation for datasette.urls.static_plugins --- docs/internals.rst | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/internals.rst b/docs/internals.rst index a46fe0f5..713f5d7d 100644 --- a/docs/internals.rst +++ b/docs/internals.rst @@ -458,16 +458,11 @@ The ``datasette.urls`` object contains methods for building URLs to pages within ``datasette.urls.static_plugins(plugin_name, path)`` Returns the URL of one of the static assets belonging to a plugin. - ``datasette.url.static_plugins("datasette_cluster_map", "datasette-cluster-map.js")`` would return ``"/-/static-plugins/datasette_cluster_map/datasette-cluster-map.js"`` + ``datasette.urls.static_plugins("datasette_cluster_map", "datasette-cluster-map.js")`` would return ``"/-/static-plugins/datasette_cluster_map/datasette-cluster-map.js"`` ``datasette.urls.static(path)`` Returns the URL of one of Datasette's default static assets, for example ``"/-/static/app.css"`` -``datasette.urls.static_plugins(plugin_name, path)`` - Returns the URL of one of the static assets belonging to a plugin. - - ``datasette.url.static_plugins("datasette_cluster_map", "datasette-cluster-map.js")`` would return ``"/-/static-plugins/datasette_cluster_map/datasette-cluster-map.js"`` - ``datasette.urls.database(database_name, format=None)`` Returns the URL to a database page, for example ``"/fixtures"`` @@ -765,4 +760,4 @@ By default all actors are denied access to the ``view-database`` permission for Plugins can access this database by calling ``db = datasette.get_database("_internal")`` and then executing queries using the :ref:`Database API `. -You can explore an example of this database by `signing in as root `__ to the ``latest.datasette.io`` demo instance and then navigating to `latest.datasette.io/_internal `__. \ No newline at end of file +You can explore an example of this database by `signing in as root `__ to the ``latest.datasette.io`` demo instance and then navigating to `latest.datasette.io/_internal `__.