Skip to content

Commit a6be69a

Browse files
committed
docs: add llms.txt files for LLM agent navigation
Add llms.txt and llms-full.txt to docs-site following the llmstxt.org specification for easier AI agent navigation of documentation.
1 parent 6b41e45 commit a6be69a

6 files changed

Lines changed: 660 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ Thumbs.db
6161
ehthumbs.db
6262
CLAUDE.md
6363
docs-site/UPDATE_STATUS.md
64+
firebase-debug.log

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,18 @@ builder.Services.AddStoreWithUtilities(
248248

249249
### AddScopedStoreWithUtilities
250250

251-
Scoped store for Blazor Server per-user isolation:
251+
Scoped store for Blazor Server per-user isolation (required for persistence/DevTools/TabSync):
252252

253253
```csharp
254254
builder.Services.AddScopedStoreWithUtilities(
255255
new UserSessionState(),
256-
(store, sp) => store.WithDefaults(sp, "Session"));
256+
(store, sp) => store
257+
.WithDefaults(sp, "Session")
258+
.WithPersistence(sp, "session-state")); // Works with scoped stores
257259
```
258260

261+
> **Note:** `WithPersistence(sp, key)` requires scoped store registration in Blazor Server. Using it with singleton stores (`AddStore`) will throw an `InvalidOperationException` with guidance to use scoped stores.
262+
259263
### AddStore / AddScopedStore
260264

261265
Minimal registration without utilities:
@@ -1343,11 +1347,19 @@ Yes. Use `AddScopedStore` for full feature support (DevTools, persistence, cross
13431347
### How do I persist state to localStorage?
13441348

13451349
```csharp
1350+
// For Blazor WebAssembly
13461351
builder.Services.AddStoreWithUtilities(
13471352
new AppState(),
13481353
(store, sp) => store
13491354
.WithDefaults(sp, "App")
13501355
.WithPersistence(sp, "app-state")); // Auto-saves to localStorage
1356+
1357+
// For Blazor Server - use scoped store
1358+
builder.Services.AddScopedStoreWithUtilities(
1359+
new AppState(),
1360+
(store, sp) => store
1361+
.WithDefaults(sp, "App")
1362+
.WithPersistence(sp, "app-state"));
13511363
```
13521364

13531365
### Does this work with .NET MAUI Blazor?

0 commit comments

Comments
 (0)