Skip to content

Commit

Permalink
chore: Update documentation. (#596)
Browse files Browse the repository at this point in the history
* chore: Update documentation dependencies.

* Remove local layout and switch to DocumentationPage layout.

* Add favicon.

* Trigger CI build.
  • Loading branch information
Matthias Wagler committed Mar 6, 2020
1 parent 9bdd83e commit bf4c916
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 318 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -177,7 +177,7 @@
"record-stdstreams": "3.0.0",
"roboter": "11.1.2",
"streamtoarray": "3.0.0",
"thenativeweb-ux": "3.4.3",
"thenativeweb-ux": "3.5.0",
"wait-for-signals": "1.1.0"
},
"scripts": {
Expand Down
149 changes: 0 additions & 149 deletions websites/documentation/layouts/Documentation/index.tsx

This file was deleted.

153 changes: 0 additions & 153 deletions websites/documentation/layouts/Documentation/styles.ts

This file was deleted.

22 changes: 22 additions & 0 deletions websites/documentation/layouts/DocumentationPage/index.tsx
@@ -0,0 +1,22 @@
import { DocumentationPage as DocumentationPageLayout } from 'thenativeweb-ux';
import { navigation } from '../../configuration/navigation';
import React, { FunctionComponent, ReactElement } from 'react';

interface DocumentationPageProps {
pageTitle?: string;
}

const DocumentationPage: FunctionComponent<DocumentationPageProps> = ({
children
}): ReactElement => (
<DocumentationPageLayout
productName='docs'
navigation={ navigation }
siteTitle='wolkenkit Documenation'
yearOfCreation={ 2016 }
>
{ children }
</DocumentationPageLayout>
);

export { DocumentationPage };
6 changes: 3 additions & 3 deletions websites/documentation/pages/en-us/index.tsx
@@ -1,10 +1,10 @@
import { Documentation } from '../../layouts/Documentation';
import { DocumentationPage } from '../../layouts/DocumentationPage';
import { News } from '../../components/News';
import { NewsItem } from '../../components/NewsItem';
import React, { ReactElement } from 'react';

export default (): ReactElement => (
<Documentation>
<DocumentationPage>
<News>
<NewsItem
title='Released wolkenkit 3.1.0 🦄'
Expand Down Expand Up @@ -236,5 +236,5 @@ export default (): ReactElement => (

</NewsItem>
</News>
</Documentation>
</DocumentationPage>
);

0 comments on commit bf4c916

Please sign in to comment.