Skip to content

Doc replacements are a one-time thing #146

@Rich-Harris

Description

@Rich-Harris

IIUC our sync-docs stuff is broken — a directive like > TYPES: svelte will be replaced with the content, which is then written back to disk. The next time the script runs, there is no > TYPES: svelte, so nothing ever subsequently updates.

If we really must have authored and generated content in the same file — and I maintain that we'd probably be happier in the long term if we didn't! — then at the very least we'll need to preserve these directives. Or rather, we'll need start and end boundaries, so something like this:

> START TYPES: svelte
> (inserted content here)
> END TYPES: svelte

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions