Skip to content

Commit

Permalink
chore: update docusaurus template (#2494)
Browse files Browse the repository at this point in the history
Signed-off-by: aeneasr <aeneasr@users.noreply.github.com>

Co-authored-by: aeneasr <aeneasr@users.noreply.github.com>
  • Loading branch information
aeneasr and aeneasr authored Apr 23, 2021
1 parent c3d705d commit 69a87a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/contrib/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const toHref = (slug, node) => {

let res = request(
'GET',
`https://raw.githubusercontent.com/ory/${slug}/new-doc-nav/docs/docs/${node}.mdx`
`https://raw.githubusercontent.com/ory/${slug}/master/docs/docs/${node}.mdx`
)
if (res.statusCode === 404) {
res = request(
'GET',
`https://raw.githubusercontent.com/ory/${slug}/new-doc-nav/docs/docs/${node}.md`
`https://raw.githubusercontent.com/ory/${slug}/master/docs/docs/${node}.md`
)
}

Expand All @@ -66,7 +66,7 @@ const resolveRefs = (node) => {

const res = request(
'GET',
`https://raw.githubusercontent.com/ory/${slug}/new-doc-nav/docs/sidebar.json`
`https://raw.githubusercontent.com/ory/${slug}/master/docs/sidebar.json`
)
const items = JSON.parse(res.getBody().toString())

Expand Down

0 comments on commit 69a87a5

Please sign in to comment.