Removes #content from sidebar links and from within pages (#170)

This commit is contained in:
Eric Nakagawa 2017-10-24 15:15:52 -07:00 committed by Joel Marcey
parent c2243a3c20
commit 867a49dd1c
3 changed files with 21 additions and 30 deletions

View file

@ -35,8 +35,7 @@ class DocsLayout extends React.Component {
}
description={content.trim().split("\n")[0]}
language={metadata.language}
version={metadata.version}
>
version={metadata.version}>
<div className="docMainWrapper wrapper">
<DocsSidebar metadata={metadata} />
<Container className="mainContainer">
@ -56,30 +55,30 @@ class DocsLayout extends React.Component {
language={metadata.language}
/>
<div className="docs-prevnext">
{metadata.previous_id &&
{metadata.previous_id && (
<a
className="docs-prev button"
href={metadata.previous_id + ".html#content"}
>
href={metadata.previous_id + ".html"}>
{" "}
{i18n
? translation[this.props.metadata.language][
"localized-strings"
]["previous"] || "Previous"
: "Previous"}
</a>}
{metadata.next_id &&
</a>
)}
{metadata.next_id && (
<a
className="docs-next button"
href={metadata.next_id + ".html#content"}
>
href={metadata.next_id + ".html"}>
{i18n
? translation[this.props.metadata.language][
"localized-strings"
]["next"] || "Next"
: "Next"}{" "}
</a>}
</a>
)}
</div>
</Container>
</div>