Skip to content

Commit

Permalink
Fix View source links
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Nov 18, 2017
1 parent da6ae0b commit 2525221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs-app/src/tags/reactExamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as TableExamples from "../examples/table-examples";

import { getTheme } from "../components/blueprintDocs";

const SRC_HREF_BASE = "https://github.com/palantir/blueprint/blob/master/packages";
const SRC_HREF_BASE = "https://github.com/palantir/blueprint/blob/master/packages/docs-app/src/examples";

export const reactExamples: IExampleMap = {};

Expand All @@ -28,7 +28,7 @@ function addPackageExamples(
const fileName = exampleName.charAt(0).toLowerCase() + exampleName.slice(1) + ".tsx";
reactExamples[exampleName] = {
render: props => React.createElement(example, { ...props, themeName: getTheme() }),
sourceUrl: [SRC_HREF_BASE, packageName, "examples", fileName].join("/"),
sourceUrl: [SRC_HREF_BASE, `${packageName}-examples`, fileName].join("/"),
};
}
}
Expand Down

0 comments on commit 2525221

Please sign in to comment.