From 9e6f467813503dddda74df179fc27db6b2b145c4 Mon Sep 17 00:00:00 2001 From: Mateusz Bartosik Date: Mon, 2 Feb 2026 11:02:14 +0100 Subject: [PATCH] RDoc-3635 Add new 7.2 blocks --- src/components/Guides/GetStartedGuides.tsx | 20 ++++++++++--------- .../DocumentExtensionsFeatures.tsx | 14 +++++++++++++ src/hooks/useLatestVersion.ts | 6 ++++++ 3 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 src/hooks/useLatestVersion.ts diff --git a/src/components/Guides/GetStartedGuides.tsx b/src/components/Guides/GetStartedGuides.tsx index de9a7efe8c..f2dfbd6260 100644 --- a/src/components/Guides/GetStartedGuides.tsx +++ b/src/components/Guides/GetStartedGuides.tsx @@ -2,6 +2,7 @@ import React from "react"; import CardWithIcon from "../Common/CardWithIcon"; import Heading from "@theme/Heading"; import { IconName } from "@site/src/typescript/iconName"; +import { useLatestVersion } from "@site/src/hooks/useLatestVersion"; interface GuideItem { title: string; @@ -16,60 +17,61 @@ const GUIDES: GuideItem[] = [ description: "Learn how to handle documents efficiently: explore data modeling, document structure, and CRUD operations.", icon: "database", - url: "#", + url: "/studio/database/documents/documents-and-collections/", }, { title: "Get started with Querying", description: "Master the fundamentals of querying: understand filtering, projections, and advanced query techniques.", icon: "query", - url: "#", + url: "/client-api/session/querying/how-to-query", }, { title: "Get started with Indexing", description: "Dive into indexing: learn how to optimize searches, improve performance, and manage indexes effectively.", icon: "index", - url: "#", + url: "/indexes/what-are-indexes", }, { title: "Get started with Attachments", description: "Work with attachments: store, manage, and retrieve files associated with your documents seamlessly.", icon: "attachment", - url: "#", + url: "/document-extensions/attachments/overview", }, { title: "Get started with RQL", description: "Unlock the full power of Raven Query Language (RQL): write expressive, efficient, and precise queries.", icon: "rql", - url: "#", + url: "/client-api/session/querying/what-is-rql", }, { title: "Get started with Studio", description: "Navigate RavenDB Studio: manage your data, analyze performance metrics, and simplify database operations using the visual interface.", icon: "studio", - url: "#", + url: "/studio/overview", }, { title: "Get started with Compare-Exchange", description: "Leverage Compare-Exchange to achieve atomic operations across distributed environments and ensure data integrity.", icon: "cluster-wide-transactions", - url: "#", + url: "/compare-exchange/start", }, { title: "Get started with Counters", description: "Learn how to use counters: track numeric values, such as statistics or metrics, in your application efficiently.", icon: "new-counter", - url: "#", + url: "/document-extensions/counters/overview", }, ]; export default function GetStartedGuides() { + const latestVersion = useLatestVersion(); return (
@@ -88,7 +90,7 @@ export default function GetStartedGuides() { title={guide.title} icon={guide.icon} description={guide.description} - url={guide.url} + url={latestVersion + guide.url} /> ))}
diff --git a/src/components/Homepage/Features/FeaturesLists/DocumentExtensionsFeatures.tsx b/src/components/Homepage/Features/FeaturesLists/DocumentExtensionsFeatures.tsx index a9577bf9fa..e2246b60f0 100644 --- a/src/components/Homepage/Features/FeaturesLists/DocumentExtensionsFeatures.tsx +++ b/src/components/Homepage/Features/FeaturesLists/DocumentExtensionsFeatures.tsx @@ -42,6 +42,20 @@ export default function DocumentExtensionsFeaturesGrid() { url: `/${activeVersion.label}/document-extensions/counters/overview`, description: "Simple, scalable, and conflict-free numeric counters", }, + { + title: "Remote Attachments", + icon: "remote-attachment", + url: `/${activeVersion.label}/document-extensions/attachments/store-attachments/store-attachments-remote`, + description: "Simple, scalable, and conflict-free numeric counters", + minimumSupportedVersion: "7.2", + }, + { + title: "JSON Schema Validation", + icon: "document-schema", + url: `/${activeVersion.label}/documents/schema-validation/schema-validation_overview`, + description: "Simple, scalable, and conflict-free numeric counters", + minimumSupportedVersion: "7.2", + }, ]; return ( diff --git a/src/hooks/useLatestVersion.ts b/src/hooks/useLatestVersion.ts new file mode 100644 index 0000000000..8abaa8b449 --- /dev/null +++ b/src/hooks/useLatestVersion.ts @@ -0,0 +1,6 @@ +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; + +export const useLatestVersion = () => { + const { siteConfig } = useDocusaurusContext(); + return siteConfig.customFields.latestVersion; +};