diff --git a/docs/core_concepts/14_audit_logs/index.mdx b/docs/core_concepts/14_audit_logs/index.mdx index a6488b613..14de95f55 100644 --- a/docs/core_concepts/14_audit_logs/index.mdx +++ b/docs/core_concepts/14_audit_logs/index.mdx @@ -16,19 +16,20 @@ Audit Logs can be filtered by Date, Username, Action (Create, Update, Delete, Ex src="/videos/audit_logs.mp4" /> -
+
- +
## Retention Policy The retention policy for audit logs varies depending on your team's plan: + - Community plan: Audit logs are redacted. - Team plan (cloud): Audit logs are retained for 7 days. - Enterprise plan (cloud): Audit logs are retained for 60 days. diff --git a/src/theme/DocSidebarItem/Link/index.js b/src/theme/DocSidebarItem/Link/index.js index 0bd89ef03..765be6bd4 100644 --- a/src/theme/DocSidebarItem/Link/index.js +++ b/src/theme/DocSidebarItem/Link/index.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect, useRef } from 'react'; import clsx from 'clsx'; import { ThemeClassNames } from '@docusaurus/theme-common'; import { isActiveSidebarItem } from '@docusaurus/theme-common/internal'; @@ -14,9 +14,20 @@ export default function DocSidebarItemLink({ index, ...props }) { + const activeItemRef = useRef(null); const { href, label, className, autoAddBaseUrl } = item; const isActive = isActiveSidebarItem(item, activePath); const isInternalLink = isInternalUrl(href); + + useEffect(() => { + if (isActive && activeItemRef.current) { + activeItemRef.current.scrollIntoView({ + behavior: 'smooth', + block: 'nearest' + }); + } + }, [isActive]); + return (