Skip to content

Commit 0cede3f

Browse files
Add no-active-pinia.md (#38)
1 parent 66e6010 commit 0cede3f

File tree

5 files changed

+714
-0
lines changed

5 files changed

+714
-0
lines changed

docs/.vitepress/config.mts

+9
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ export default defineConfig({
171171
}
172172
]
173173
},
174+
{
175+
text: 'Pinia',
176+
items: [
177+
{
178+
text: `Why am I getting an error about 'no active Pinia'?`,
179+
link: '/faq/no-active-pinia'
180+
}
181+
]
182+
},
174183
// {
175184
// text: 'Debugging',
176185
// items: [

docs/.vitepress/theme/custom.css

+15
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,18 @@ html:not(.dark) .VPSidebar {
7575
.VPSidebarItem.level-1.is-active .VPLink::before {
7676
border-left-color: var(--vp-c-brand-1);
7777
}
78+
79+
/* Custom styling for quoting error messages and warnings. This might be better as a custom container, once they're supported */
80+
blockquote.quote-code-error {
81+
background-color: var(--vp-custom-block-warning-bg);
82+
border-color: var(--vp-custom-block-warning-border);
83+
font-family: var(--vp-font-family-mono);
84+
margin-left: 20px;
85+
margin-right: 20px;
86+
padding: 10px 10px 10px 20px;
87+
white-space: pre-wrap;
88+
}
89+
90+
.vp-doc blockquote.quote-code-error > p {
91+
font-size: 12.25px;
92+
}

docs/faq/index.md

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ Only about half the questions have complete answers. Those questions are listed
6161

6262
---
6363

64+
<!-- Pinia -->
65+
66+
- [Why am I getting an error about 'no active Pinia'?](no-active-pinia)
67+
68+
---
69+
6470
<!-- Debugging -->
6571

6672
- [Why does my logging show an empty/missing value after I've loaded the data?](logging-after-loading)

0 commit comments

Comments
 (0)