File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import { attachGlobalComponentStyles } from "purs/Lumi.Components.Styles";
2828attachGlobalComponentStyles ( ) ;
2929
3030const repoSourceBasePath = `https://github.com/lumihq/purescript-lumi-components/blob/${ COMMITHASH } ` ;
31+ const pursuitBasePath = `https://pursuit.purescript.org/packages/purescript-lumi-components/${ VERSION . replace ( 'v' , '' ) } ` ;
3132
3233const fromComponentPath = title => ( {
3334 docs : Loadable ( {
@@ -42,7 +43,8 @@ const fromComponentPath = title => ({
4243 title,
4344 path : `/${ changeCase . hyphen ( title ) } ` ,
4445 componentSource : `${ repoSourceBasePath } /src/Lumi/Components/${ title } .purs` ,
45- exampleSource : `${ repoSourceBasePath } /docs/Examples/${ title } .example.purs`
46+ exampleSource : `${ repoSourceBasePath } /docs/Examples/${ title } .example.purs` ,
47+ apiReference : `${ pursuitBasePath } /docs/Lumi.Components.${ title } `
4648} ) ;
4749
4850const componentLoaders = [
@@ -179,11 +181,23 @@ const renderRoute = component => (
179181 target = "_blank"
180182 href = { component . exampleSource }
181183 style = { {
182- marginLeft : "8px"
184+ marginLeft : "8px" ,
185+ marginRight : "8px"
183186 } }
184187 >
185188 Example Source
186189 </ a > ,
190+ "|" ,
191+ < a
192+ className = "lumi"
193+ target = "_blank"
194+ href = { component . apiReference }
195+ style = { {
196+ marginLeft : "8px"
197+ } }
198+ >
199+ API Reference
200+ </ a > ,
187201 < div
188202 style = { {
189203 flex : "1" ,
You can’t perform that action at this time.
0 commit comments