Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
corwintines committed Oct 4, 2024
1 parent e513c19 commit c719820
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions src/layouts/Docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,30 +133,26 @@ export const DocsLayout = ({
dir={contentNotTranslated ? "ltr" : "unset"}
>
<SideNav path={relativePath} />
<MainArticle className="min-w-0 flex-1 overflow-hidden px-8 pb-8 pt-8 md:px-16 md:pb-16 md:pt-12">
<div className="max-w-full break-words">
<H1 id="top">{frontmatter.title}</H1>
<FileContributors
contributors={contributors}
lastEditLocaleTimestamp={lastEditLocaleTimestamp}
/>
<TableOfContents
editPath={absoluteEditPath}
items={tocItems}
isMobile
maxDepth={frontmatter.sidebarDepth!}
hideEditButton={!!frontmatter.hideEditButton}
/>
<div className="prose prose-lg max-w-none break-words">
{children}
</div>
{isPageIncomplete && (
<CallToContribute editPath={absoluteEditPath} />
)}
<BackToTop />
<FeedbackCard isArticle />
<DocsNav contentNotTranslated={contentNotTranslated} />
<MainArticle className="min-w-0 flex-1 px-8 pb-8 pt-8 md:px-16 md:pb-16 md:pt-12">
<H1 id="top">{frontmatter.title}</H1>
<FileContributors
contributors={contributors}
lastEditLocaleTimestamp={lastEditLocaleTimestamp}
/>
<TableOfContents
editPath={absoluteEditPath}
items={tocItems}
isMobile
maxDepth={frontmatter.sidebarDepth!}
hideEditButton={!!frontmatter.hideEditButton}
/>
<div className="prose prose-lg max-w-none break-words">
{children}
</div>
{isPageIncomplete && <CallToContribute editPath={absoluteEditPath} />}
<BackToTop />
<FeedbackCard isArticle />
<DocsNav contentNotTranslated={contentNotTranslated} />
</MainArticle>
{tocItems && (
<TableOfContents
Expand Down

0 comments on commit c719820

Please sign in to comment.