in website/src/theme/DocPage/index.tsx [13:32]
function DocPage(props: Props): JSX.Element {
const {
route: {routes: docRoutes},
versionMetadata,
location,
} = props;
const currentDocRoute = docRoutes.find((docRoute) =>
matchPath(location.pathname, docRoute),
);
if (!currentDocRoute) {
return <NotFound />;
}
return (
<>
<div id={'docpage'+currentDocRoute.path}>
<OriginalDocPage {...props} />
</div>
</>
);
}