Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions astro/src/components/Version.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ const caption = since && !until ? `Added in ${since}` : undefined;
<style is:global>
.dv-version { position: relative; margin-block: 1rem; }
.dv-version { --dv-tip: var(--sl-color-purple-high); }
.dv-version-label { margin: 0 0 0.25rem; font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: var(--dv-tip); }
.dv-version-label[data-caption]::before { content: attr(data-caption); }
.dv-version:has(> .dv-version-label + :is(.sl-heading-wrapper, ul, ol)) > .dv-version-label { margin: 0; }
.dv-version:has(> .dv-version-label + :is(.sl-heading-wrapper, ul, ol)) > .dv-version-label::before { content: none; }
/* No visible caption above prose: headings and list items get a badge instead (below). */
.dv-version-label { margin: 0; }
.dv-version > .dv-version-label + .sl-heading-wrapper :is(h2, h3, h4, h5, h6)::after {
content: var(--dv-caption);
display: inline-block;
Expand Down
8 changes: 7 additions & 1 deletion astro/src/components/VersionSelector.astro
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,13 @@ const productKeys = products.map((p) => p.key);
chip.classList.toggle("dv-chip--active", !isDefault);
chip.classList.toggle("dv-chip--unsupported", isUnsupported);
html.toggleAttribute("data-dv-hide-new", !isDefault);
for (const block of all(`.dv-version[data-product="${product}"]`)) block.hidden = !isVisible(block);
// In-page blocks always follow the selected version exactly: newer-version sections are hidden
// on older versions. Sidebar links and the page itself keep the lenient default (preview pages stay listed).
const inSelected: Visibility = ({ dataset: { since, until } }) =>
(!since || compare(selected, since) >= 0) && (!until || compare(selected, until) < 0);
// If the page itself is newer than the selected version (preview page), don't hide its content.
const isBlockVisible = inSelected(page!) ? inSelected : isVisible;
for (const block of all(`.dv-version[data-product="${product}"]`)) block.hidden = !isBlockVisible(block);
filterToc();
filterSidebarLinks(isVisible);
hideEmptyGroups();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ use whichever provider you have configured, such as
It can also use the [Duende Storage](/identityserver/data/providers/duende-storage/getting-started.md) provider.
</Version>

## Storage Instances and Data Categories

<Version since="8.1">

## Storage Instances and Data Categories

Duende Storage registers databases as named **storage instances**. Each call to `AddStorage(...)` on the
IdentityServer builder makes one database available under a `StorageInstanceId`. Separately, each product maps its
own data to an instance: User Management maps its data category when you call `AddUserManagement(...)`, and
Expand Down
Loading