aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers/asset_buyer_documentation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/containers/asset_buyer_documentation.ts')
-rw-r--r--packages/website/ts/containers/asset_buyer_documentation.ts69
1 files changed, 69 insertions, 0 deletions
diff --git a/packages/website/ts/containers/asset_buyer_documentation.ts b/packages/website/ts/containers/asset_buyer_documentation.ts
new file mode 100644
index 000000000..f794625de
--- /dev/null
+++ b/packages/website/ts/containers/asset_buyer_documentation.ts
@@ -0,0 +1,69 @@
+import { DocsInfo, DocsInfoConfig, SupportedDocJson } from '@0xproject/react-docs';
+import * as React from 'react';
+import { connect } from 'react-redux';
+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 { Translate } from 'ts/utils/translate';
+
+/* tslint:disable:no-var-requires */
+const IntroMarkdown = require('md/docs/asset_buyer/introduction');
+const InstallationMarkdown = require('md/docs/asset_buyer/installation');
+const UsageMarkdown = require('md/docs/asset_buyer/usage');
+/* tslint:enable:no-var-requires */
+
+const markdownSections = {
+ introduction: 'introduction',
+ installation: 'installation',
+ usage: 'usage',
+};
+
+const docsInfoConfig: DocsInfoConfig = {
+ id: DocPackages.AssetBuyer,
+ packageName: '@0xproject/asset-buyer',
+ type: SupportedDocJson.TypeDoc,
+ displayName: 'AssetBuyer',
+ packageUrl: 'https://github.com/0xProject/0x-monorepo',
+ markdownMenu: {
+ introduction: [markdownSections.introduction],
+ install: [markdownSections.installation],
+ usage: [markdownSections.usage],
+ },
+ sectionNameToMarkdownByVersion: {
+ '0.0.1': {
+ [markdownSections.introduction]: IntroMarkdown,
+ [markdownSections.installation]: InstallationMarkdown,
+ [markdownSections.usage]: UsageMarkdown,
+ },
+ },
+ markdownSections,
+};
+const docsInfo = new DocsInfo(docsInfoConfig);
+
+interface ConnectedState {
+ docsVersion: string;
+ availableDocVersions: string[];
+ docsInfo: DocsInfo;
+ translate: Translate;
+}
+
+interface ConnectedDispatch {
+ dispatcher: Dispatcher;
+}
+
+const mapStateToProps = (state: State, _ownProps: DocPageProps): ConnectedState => ({
+ docsVersion: state.docsVersion,
+ availableDocVersions: state.availableDocVersions,
+ translate: state.translate,
+ docsInfo,
+});
+
+const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
+ dispatcher: new Dispatcher(dispatch),
+});
+
+export const Documentation: React.ComponentClass<DocPageProps> = connect(mapStateToProps, mapDispatchToProps)(
+ DocPageComponent,
+);
td>math/octave: Update to 6.3.0.Stephen Montgomery-Smith2021-07-161-1/+1 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 * - Unbreak with patch.Stephen Montgomery-Smith2021-02-222-2/+14 * - Update math/octave to 6.2.0.Stephen Montgomery-Smith2021-02-221-1/+2 * Mark as BROKEN on powerpc64-12. It seems to build everywhere else.Mark Linimon2020-05-301-0/+2 * Bump 46 ports depending on math/openblas because the after the recent math/op...Yuri Victorovich2020-05-071-1/+1 * Fix math/openblas and bump dependent portsSteve Wills2020-01-301-1/+1 * math/openblas: Update to 0.3.7Steve Wills2020-01-221-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1 * - Update math/octave to 5.1.0.Stephen Montgomery-Smith2019-03-101-1/+1 * Fix Qt5 symbol version scripts to put the catch-all clause first. WhenTijl Coosemans2019-01-161-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-1/+1 * - Update math/octave to 4.4.1.Stephen Montgomery-Smith2018-08-121-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-07-301-0/+1 * - Update to 2.3.1.Stephen Montgomery-Smith2018-06-232-4/+4 * - Update to 2.3.0.Stephen Montgomery-Smith2018-05-122-5/+5 * - Update octave to 4.4.0.Stephen Montgomery-Smith2018-05-041-1/+1 * Bump PORTREVISIONs of all users of math/mpc that we just updated toGerald Pfeifer2018-03-111-1/+1 * - Bump portrevision for math/octave-forge-* ports because of update ofStephen Montgomery-Smith2018-02-251-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2017-09-111-1/+1 * Bump PORTREVISIONs for ports depending on the canonical version of GCC andGerald Pfeifer2017-04-011-1/+1 * - Revert to 2.1.2 because 2.2.0 breaks octave forge package installation.Stephen Montgomery-Smith2016-12-262-4/+6 * - Update to 2.2.0.Stephen Montgomery-Smith2016-12-262-4/+4 * Bump PORTREVISIONS for ports depending on the canonical version of GCC andGerald Pfeifer2016-12-071-0/+1 * ${RM} already has -f.Mathieu Arnold2016-10-211-3/+3 * Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.Mathieu Arnold2016-04-011-3/+3 * - Update to 2.1.2.Stephen Montgomery-Smith2016-03-182-4/+3