Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Feed baseUrl to all loop components
Browse files Browse the repository at this point in the history
  • Loading branch information
dok committed Nov 30, 2018
1 parent 0e44f4c commit caf4d79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions example/src/Demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ function Demo({ fetchSwagger, status, docs, oas, oauth }) {
'api-setting': Object.assign(extensions.defaults, oas),
}}
baseUrl={'/'}
// Uncomment this if you want to test enterprise-structured URLs
// baseUrl={'/child/v1.0/'}
Logs={Logs}
flags={{ correctnewlines: false }}
// Uncomment this in for column layout
Expand Down
2 changes: 2 additions & 0 deletions packages/api-explorer/lib/create-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// \`\`\`
// This is your <<apiKey>>.

// [link](doc:link)

// [block:code]
// {
// "codes": [
Expand Down
4 changes: 2 additions & 2 deletions packages/api-explorer/src/block-types/Content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ const Content = props => {
<div className="hub-reference-section">
<div className="hub-reference-left">
<div className="content-body">
<Loop content={left} column="left" flags={props.flags} />
<Loop content={left} column="left" flags={props.flags} baseUrl={props.baseUrl} />
</div>
</div>
<div className="hub-reference-right">
<div className="content-body">
<Loop content={right} column="right" />
<Loop content={right} column="right" baseUrl={props.baseUrl} />
</div>
</div>
</div>
Expand Down

0 comments on commit caf4d79

Please sign in to comment.