datasette.io 网站新闻预览功能上线datasette.io news preview
Simon Willison 推出了 datasette.io 网站的新闻预览功能,该功能基于 GitHub 仓库中的 news.yaml 文件构建。用户可以通过 tools.simonwillison.net/datasette-io-preview 访问此预览页面,查看即将发布的 Datasette 版本信息及其他动态。这一功能展示了如何利用简单的 YAML 格式来管理和展示项目新闻。
Simon Willison
Tool datasette.io news preview — Preview and validate datasette.io news entries in YAML format with real-time rendering and markdown linting. The editor loads the current news.yaml file from GitHub and provides immediate feedback on formatting errors, link validation, and markdown syntax issues while displaying a styled preview of how entries will appear on the live site. Use the error badge to track validation issues and fix them directly in the editor pane.
The datasette.io website has a news section built from this news.yaml file in the underlying GitHub repository. The YAML format looks like this:
- date: 2026-04-15
body: |-
[Datasette 1.0a27](https://docs.datasette.io/en/latest/changelog.html#a27-2026-04-15) changes how CSRF protection works in a way that simplifies form and API integration, and introduces a new `RenameTableEvent` for when a table is renamed by a SQL query.
- date: 2026-03-18
body: |-
...This format is a little hard to edit, so I finally had Claude build a custom preview UI to make checking for errors have slightly less friction.
I built it using standard claude.ai and Claude Artifacts, taking advantage of Claude's ability to clone GitHub repos and look at their content as part of a regular chat:
Clone https://github.com/simonw/datasette.io and look at the news.yaml file and how it is rendered on the homepage. Build an artifact I can paste that YAML into which previews what it will look like, and highlights any markdown errors or YAML errors
需要完整排版与评论请前往来源站点阅读。