Skip to content

Plugin hook allowing other plugins to contribute to robots.txt #6

@simonw

Description

@simonw

Had a problem where datasette-sitemap and datasette-block-robots both attempt to register a route for /robots.txt.

  • I could add a new plugin hook to datasette-block-robots which this plugin can then use to influence how it acts

I like the sound of that option, using this pattern: https://til.simonwillison.net/datasette/register-new-plugin-hooks

Originally posted by @simonw in simonw/datasette-sitemap#4 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions