Add Getting starter sidebar header
This commit is contained in:
@@ -5,7 +5,7 @@ import { Dispatch } from 'redux';
|
||||
import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
|
||||
import { Dispatcher } from 'ts/redux/dispatcher';
|
||||
import { State } from 'ts/redux/reducer';
|
||||
import { DocPackages } from 'ts/types';
|
||||
import { DocPackages, ScreenWidths } from 'ts/types';
|
||||
import { Translate } from 'ts/utils/translate';
|
||||
|
||||
/* tslint:disable:no-var-requires */
|
||||
@@ -39,9 +39,13 @@ const docsInfoConfig: DocsInfoConfig = {
|
||||
displayName: '0x.js',
|
||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||
markdownMenu: {
|
||||
introduction: [markdownSections.introduction],
|
||||
install: [markdownSections.installation],
|
||||
topics: [markdownSections.async, markdownSections.errors, markdownSections.versioning],
|
||||
'getting-started': [
|
||||
markdownSections.introduction,
|
||||
markdownSections.installation,
|
||||
markdownSections.async,
|
||||
markdownSections.errors,
|
||||
markdownSections.versioning,
|
||||
],
|
||||
},
|
||||
sectionNameToMarkdownByVersion: {
|
||||
'0.0.1': {
|
||||
@@ -68,6 +72,7 @@ interface ConnectedState {
|
||||
availableDocVersions: string[];
|
||||
docsInfo: DocsInfo;
|
||||
translate: Translate;
|
||||
screenWidth: ScreenWidths;
|
||||
}
|
||||
|
||||
interface ConnectedDispatch {
|
||||
@@ -79,6 +84,7 @@ const mapStateToProps = (state: State, _ownProps: DocPageProps): ConnectedState
|
||||
availableDocVersions: state.availableDocVersions,
|
||||
docsInfo,
|
||||
translate: state.translate,
|
||||
screenWidth: state.screenWidth,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
|
||||
|
||||
Reference in New Issue
Block a user