Quick Start
About 672 wordsAbout 2 min
2026-08-31
Shirone supports both single-repo and dual-repo modes. This guide explains how to prepare your environment, choose one, run the site locally, and publish your first post.
Single repo or dual repo
| Single repo | Dual repo | |
|---|---|---|
| Where posts live | src/content/ in the theme repo | A separate content repo |
| Who it suits | First blog, content can be public | Private drafts, or long-term theme updates |
| Extra work | None | One more repository and a content source |
Not sure yet?
Start with the single repo. You can split later with pnpm content:eject, which moves existing posts and configuration into a new repository without rewriting anything.
Single-repo mode
Install requirements
You need Node.js 26.13 or later, pnpm 11.28.2, and Git.
node -v # should be >= v26.13.0 pnpm -v # should be 11.xIf pnpm is missing, run
npm install -g pnpm@11.28.2. Node.js 26 no longer bundles corepack, socorepack enablereports a missing command.Clone the theme and start it
git clone https://github.com/LyraVoid/Shirone.git cd Shirone pnpm install pnpm devOpen
http://localhost:4321in your browser.You can also initialize an empty directory with the npm package:
npx shirones init. See npm package.Set site details
At minimum, change two fields in
src/config/siteConfig.ts:Field Purpose siteProduction URL, used by RSS, the sitemap, and share cards titleSite name Profile, navigation, and sidebar live in
profileConfig.ts,navBarConfig.ts, andsidebarConfig.ts. Other configuration files are covered on matching feature pages.Write your first post
pnpm new-post my-first-postThe file is created in
src/content/posts/. Markdown and MDX are supported. Minimal frontmatter:--- title: My first post published: 2026-08-26 description: A short summary shown in lists and search results. tags: [Astro, Notes] category: Writing ---Build and publish
pnpm buildOutput is written to
dist/. To choose a host, see Deployment Overview. Every platform usespnpm buildand publishesdist. The platform pages explain the extra settings needed for each host.
Windows
If PowerShell blocks scripts, use pnpm.cmd and npx.cmd instead of pnpm and npx.
Dual-repo mode
The dual-repo setup is divided into the steps below. Each step ends at a natural checkpoint, so you can stop after any of them and pick up later.
Understand the repository split
Read Architecture Overview and decide whether you need two repositories.
Create the content repository
Move content out of the theme repo, or clone the official template.
Run the site locally
Point the theme repo at the content repo and confirm the site reads your posts.
Configure the content source
Use
.envlocally and platform environment variables in production. See Content Sources.Customize the site with YAML
Title, navigation, and sidebar are configured in the content repo. See Configuration Overlay.
Set up automatic publishing
Build on every push with Cross-Repo CI, or use deployment hooks.
After step 3, day-to-day writing only requires the content repository. The theme repo stays untouched.
Requirements
| Dependency | Version | Notes |
|---|---|---|
| Node.js | 26.13.0 or later | Required by engines.node |
| pnpm | 11.28.2 | Pinned in the repo; other 11.x versions usually work |
| Git | Recent version | Needed for the dual-repo setup |
Common commands
| Command | Purpose |
|---|---|
pnpm dev | Start the development server |
pnpm new-post <name> | Create a post |
pnpm content:sync | Copy the content repo into the theme repo (dual repo) |
pnpm content:validate | Check content structure and YAML |
pnpm build | Full build into dist/ |
pnpm preview | Preview the build output locally |
pnpm check | Run Astro diagnostics |
pnpm type-check | Run TypeScript checks |
pnpm format | Format code under src/ |
Next steps
- Single repo: open Deployment Overview and pick a host.
- Dual repo: read Architecture Overview.
- Feature tour: read Introduction.
Copyright
Copyright Ownership:Dawn6666666
License under:Attribution 4.0 International (CC-BY-4.0)