feat(plugin-docs): Add id attribute of page container and header title
MODIFY
packages/plugin-docs/client/theme-doc/Layout.tsx
packages/plugin-docs/client/theme-doc/Layout.tsx
@@ -44,7 +44,10 @@ export default (props: any) => {
location: props.location,
}}
>
- <div className="flex flex-col dark:bg-gray-900 min-h-screen transition-all">
+ <div
+ className="flex flex-col dark:bg-gray-900 min-h-screen transition-all"
+ id={isHomePage ? 'home-page' : 'doc-page'}
+ >
<div
id="head-container"
className="z-30 sticky top-0 dark:before:bg-gray-800 before:bg-white before:bg-opacity-[.85]

MODIFY
packages/plugin-docs/client/theme-doc/Logo.tsx
packages/plugin-docs/client/theme-doc/Logo.tsx
@@ -14,7 +14,10 @@ export default () => {
<img src={Logo} className="w-8 h-8" alt="logo" />
)}
{typeof Logo === 'function' && <Logo />}
- <div className="text-xl font-extrabold ml-2 dark:text-white">
+ <div
+ id="header-title"
+ className="text-xl font-extrabold ml-2 dark:text-white"
+ >
{themeConfig.title}
</div>
</div>

feat(plugin-docs): Add id attribute of page container and header title (#684)