mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -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:
|
In order to render the data you first need to access it through the `useLayout` hook:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { useElement, useLayout } from `@nebula.js/stardust`;
|
import { useElement, useLayout } from '@nebula.js/stardust';
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
component() {
|
component() {
|
||||||
|
|||||||
@@ -11,9 +11,14 @@ const {
|
|||||||
class Index extends React.Component {
|
class Index extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
// const { config: siteConfig, language = '' } = this.props;
|
// 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}>
|
<Container padding={['bottom', 'top']} id={props.id} background={props.background}>
|
||||||
<GridBlock align="center" contents={props.children} layout={props.layout} />
|
<GridBlock align="center" contents={props.children} layout={props.layout} />
|
||||||
</Container>
|
</Container>
|
||||||
@@ -25,7 +30,7 @@ class Index extends React.Component {
|
|||||||
<Block>
|
<Block>
|
||||||
{[
|
{[
|
||||||
{
|
{
|
||||||
title: 'Under construction',
|
title: `[Getting Started](${docUrl('introduction')})`,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
</Block>
|
</Block>
|
||||||
|
|||||||
Reference in New Issue
Block a user