This document introduces the steps to add a blog to a site set up with Starlight. The blog we are adopting this time uses a plugin provided by the community.
First, install the plugin for the Starlight documentation site.
Add the installed plugin to astro.config.mjs.
Next, add the blog schema to src/content/config.ts.
Finally, create the file src/content/docs/blog/my-first-blog-post.md.
This completes the plugin installation. When you access the site, a Blog menu will be added at the top, allowing you to view blog posts.
Adding Japanese Resources
Looking at the screen above, you can see that there are insufficient Japanese resources in the left menu. The method to address this is posted on the following page.
Add i18nSchema to the configuration file src/content/config.ts.
Create the directory src/content/i18n and create the file ja.json.
Successfully added Japanese resources.
Summary
By using the standard plugin, you can now write a blog within Starlight. The position of the blog on this site will be used to provide information about site updates rather than offering tips.