Skip to content

Commit 765153a

Browse files
authored
Merge pull request #9 from shellui-dev/feat/cli-init-create-mode
fix(cli): first-consumer polish - templates, theme sync, footer extraction
2 parents ee4039b + 32aa007 commit 765153a

14 files changed

Lines changed: 949 additions & 258 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
<!-- Package metadata (applies to any project with IsPackable=true) -->
2020
<PropertyGroup>
21+
<Version>0.1.0-alpha</Version>
2122
<Authors>ShellUI</Authors>
2223
<Company>ShellUI</Company>
2324
<Copyright>Copyright © 2026 ShellUI</Copyright>

docs/ROADMAP.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ Ships to `ShellDocs.Components`.
105105
- Handles `razor:preview` blocks — code visible in Preview + Code tabs (`<DocsTabs>` primitive comes in Phase 2)
106106

107107
### `feat/cli-init` — shipped
108+
109+
### `feat/cli-init-create-mode` — shipped
110+
Split `shelldocs init` into two modes:
111+
- **create** (default) — runs `dotnet new blazor` in `docs/<CwdName>.Docs`, then directly patches Program.cs + App.razor + adds packages + drops content/DocsPage.razor. One-command scaffold.
112+
- **attach** (`--attach`) — the old behaviour; augments an existing csproj and emits `SHELLDOCS_SETUP.md` for manual patching (safer for projects with custom auth/middleware).
113+
Both idempotent. Tests: 12 (4 attach + 4 patcher + 4 fixture-verified).
108114
Ships to `ShellDocs.CLI` + `ShellDocs.Templates`.
109115

110116
- `shelldocs init` — detects Blazor WASM project, adds package references, generates `content/`, `Layout/DocsLayout.razor`, patches `Program.cs` to register services, writes default `meta.json`

examples/ShellDocs.Preview/Components/Pages/Blog.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
</div>
3333
</div>
3434

35+
<DocsFooter Version="0.1.0-alpha" TwitterHandle="shellui_" />
36+
3537
@code {
3638
private record Post(string Title, string Excerpt, string Tag, string Date, string Author, string AuthorInitials, string AvatarBg, string ReadTime, string Href);
3739

examples/ShellDocs.Preview/Components/Pages/Home.razor

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,27 @@ Works in Server, WASM, and static output.
202202
</div>
203203
</section>
204204

205+
<DocsFooter Version="0.1.0-alpha" TwitterHandle="shellui_">
206+
<Columns>
207+
<div class="docs-footer-col">
208+
<h3>Resources</h3>
209+
<ul>
210+
<li><a href="/docs/introduction">Documentation</a></li>
211+
<li><a href="/showcase">Showcase</a></li>
212+
<li><a href="/blog">Blog</a></li>
213+
</ul>
214+
</div>
215+
<div class="docs-footer-col">
216+
<h3>Support</h3>
217+
<ul>
218+
<li><a href="https://github.com/shellui-dev/shelldocs/issues" target="_blank" rel="noopener">Request feature</a></li>
219+
<li><a href="https://github.com/shellui-dev/shelldocs/issues" target="_blank" rel="noopener">Report bug</a></li>
220+
<li><a href="/sponsors">Sponsor</a></li>
221+
</ul>
222+
</div>
223+
</Columns>
224+
</DocsFooter>
225+
205226
<style>
206227
/* Hero — bordered rounded frame with looping video bg + content overlay.
207228
Copied from the ShellUI docs home. */

examples/ShellDocs.Preview/Components/Pages/Showcase.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
</div>
5050
</div>
5151

52+
<DocsFooter Version="0.1.0-alpha" TwitterHandle="shellui_" />
53+
5254
@code {
5355
private record Site(string Name, string Description, string Url, string PreviewBg, string Accent);
5456

0 commit comments

Comments
 (0)