mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
docs(website): add main link to introduction
This commit is contained in:
@@ -100,7 +100,7 @@ Add a dimension by clicking on **Add dimension** and selecting a value in the me
|
||||
In order to render the data you first need to access it through the `useLayout` hook:
|
||||
|
||||
```js
|
||||
import { useElement, useLayout } from `@nebula.js/stardust`;
|
||||
import { useElement, useLayout } from '@nebula.js/stardust';
|
||||
|
||||
// ...
|
||||
component() {
|
||||
|
||||
@@ -11,9 +11,14 @@ const {
|
||||
class Index extends React.Component {
|
||||
render() {
|
||||
// const { config: siteConfig, language = '' } = this.props;
|
||||
// const { baseUrl } = siteConfig;
|
||||
const { baseUrl, docsUrl } = this.props.config;
|
||||
|
||||
const Block = props => (
|
||||
const docUrl = (doc) => {
|
||||
const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`;
|
||||
return `${baseUrl}${docsPart}${doc}`;
|
||||
};
|
||||
|
||||
const Block = (props) => (
|
||||
<Container padding={['bottom', 'top']} id={props.id} background={props.background}>
|
||||
<GridBlock align="center" contents={props.children} layout={props.layout} />
|
||||
</Container>
|
||||
@@ -25,7 +30,7 @@ class Index extends React.Component {
|
||||
<Block>
|
||||
{[
|
||||
{
|
||||
title: 'Under construction',
|
||||
title: `[Getting Started](${docUrl('introduction')})`,
|
||||
},
|
||||
]}
|
||||
</Block>
|
||||
|
||||
Reference in New Issue
Block a user