Skip to content

Commit

Permalink
Add no-active-pinia.md (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
skirtles-code authored Nov 7, 2024
1 parent 66e6010 commit 0cede3f
Show file tree
Hide file tree
Showing 5 changed files with 714 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@ export default defineConfig({
}
]
},
{
text: 'Pinia',
items: [
{
text: `Why am I getting an error about 'no active Pinia'?`,
link: '/faq/no-active-pinia'
}
]
},
// {
// text: 'Debugging',
// items: [
Expand Down
15 changes: 15 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,18 @@ html:not(.dark) .VPSidebar {
.VPSidebarItem.level-1.is-active .VPLink::before {
border-left-color: var(--vp-c-brand-1);
}

/* Custom styling for quoting error messages and warnings. This might be better as a custom container, once they're supported */
blockquote.quote-code-error {
background-color: var(--vp-custom-block-warning-bg);
border-color: var(--vp-custom-block-warning-border);
font-family: var(--vp-font-family-mono);
margin-left: 20px;
margin-right: 20px;
padding: 10px 10px 10px 20px;
white-space: pre-wrap;
}

.vp-doc blockquote.quote-code-error > p {
font-size: 12.25px;
}
6 changes: 6 additions & 0 deletions docs/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ Only about half the questions have complete answers. Those questions are listed

---

<!-- Pinia -->

- [Why am I getting an error about 'no active Pinia'?](no-active-pinia)

---

<!-- Debugging -->

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

0 comments on commit 0cede3f

Please sign in to comment.