aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-06 23:45:25 +0800
committerFabio Berger <me@fabioberger.com>2018-03-06 23:45:25 +0800
commit60d95475ebcfc868e54f90350fcca09e45b976ff (patch)
tree57cb34dadd0835a027624280f854f5c0d02dc68d /packages
parentc8ace2edc017969f405ffaa1293620850ed5fc05 (diff)
downloaddexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.tar
dexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.tar.gz
dexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.tar.bz2
dexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.tar.lz
dexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.tar.xz
dexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.tar.zst
dexon-sol-tools-60d95475ebcfc868e54f90350fcca09e45b976ff.zip
Move DocsInfo out of the components folder
Diffstat (limited to 'packages')
-rw-r--r--packages/react-docs/src/ts/components/documentation.tsx2
-rw-r--r--packages/react-docs/src/ts/components/event_definition.tsx2
-rw-r--r--packages/react-docs/src/ts/components/interface.tsx2
-rw-r--r--packages/react-docs/src/ts/components/method_block.tsx2
-rw-r--r--packages/react-docs/src/ts/components/method_signature.tsx2
-rw-r--r--packages/react-docs/src/ts/components/type.tsx2
-rw-r--r--packages/react-docs/src/ts/components/type_definition.tsx2
-rw-r--r--packages/react-docs/src/ts/docs_info.ts (renamed from packages/react-docs/src/ts/components/docs_info.ts)6
-rw-r--r--packages/react-docs/src/ts/index.ts2
-rw-r--r--packages/react-docs/src/ts/utils/typedoc_utils.ts2
10 files changed, 12 insertions, 12 deletions
diff --git a/packages/react-docs/src/ts/components/documentation.tsx b/packages/react-docs/src/ts/components/documentation.tsx
index f5a117797..5c261a39b 100644
--- a/packages/react-docs/src/ts/components/documentation.tsx
+++ b/packages/react-docs/src/ts/components/documentation.tsx
@@ -15,6 +15,7 @@ import CircularProgress from 'material-ui/CircularProgress';
import * as React from 'react';
import { scroller } from 'react-scroll';
+import { DocsInfo } from '../docs_info';
import {
AddressByContractName,
DocAgnosticFormat,
@@ -30,7 +31,6 @@ import { utils } from '../utils/utils';
import { Badge } from './badge';
import { Comment } from './comment';
-import { DocsInfo } from './docs_info';
import { EventDefinition } from './event_definition';
import { MethodBlock } from './method_block';
import { SourceLink } from './source_link';
diff --git a/packages/react-docs/src/ts/components/event_definition.tsx b/packages/react-docs/src/ts/components/event_definition.tsx
index 8289650f5..68f60ddf9 100644
--- a/packages/react-docs/src/ts/components/event_definition.tsx
+++ b/packages/react-docs/src/ts/components/event_definition.tsx
@@ -4,7 +4,7 @@ import * as React from 'react';
import { Event, EventArg } from '../types';
-import { DocsInfo } from './docs_info';
+import { DocsInfo } from '../docs_info';
import { Type } from './type';
export interface EventDefinitionProps {
diff --git a/packages/react-docs/src/ts/components/interface.tsx b/packages/react-docs/src/ts/components/interface.tsx
index 1c99495d7..92883089a 100644
--- a/packages/react-docs/src/ts/components/interface.tsx
+++ b/packages/react-docs/src/ts/components/interface.tsx
@@ -3,7 +3,7 @@ import * as React from 'react';
import { CustomType, TypeDocTypes } from '../types';
-import { DocsInfo } from './docs_info';
+import { DocsInfo } from '../docs_info';
import { MethodSignature } from './method_signature';
import { Type } from './type';
diff --git a/packages/react-docs/src/ts/components/method_block.tsx b/packages/react-docs/src/ts/components/method_block.tsx
index 5ed7f42a1..529b9f9c7 100644
--- a/packages/react-docs/src/ts/components/method_block.tsx
+++ b/packages/react-docs/src/ts/components/method_block.tsx
@@ -6,7 +6,7 @@ import { Parameter, SolidityMethod, TypeDefinitionByName, TypescriptMethod } fro
import { typeDocUtils } from '../utils/typedoc_utils';
import { Comment } from './comment';
-import { DocsInfo } from './docs_info';
+import { DocsInfo } from '../docs_info';
import { MethodSignature } from './method_signature';
import { SourceLink } from './source_link';
diff --git a/packages/react-docs/src/ts/components/method_signature.tsx b/packages/react-docs/src/ts/components/method_signature.tsx
index e21d82287..6a394dd6d 100644
--- a/packages/react-docs/src/ts/components/method_signature.tsx
+++ b/packages/react-docs/src/ts/components/method_signature.tsx
@@ -5,7 +5,7 @@ import * as ReactDOM from 'react-dom';
import { Parameter, SolidityMethod, TypeDefinitionByName, TypescriptMethod } from '../types';
import { constants } from '../utils/constants';
-import { DocsInfo } from './docs_info';
+import { DocsInfo } from '../docs_info';
import { Type } from './type';
export interface MethodSignatureProps {
diff --git a/packages/react-docs/src/ts/components/type.tsx b/packages/react-docs/src/ts/components/type.tsx
index 780d87eae..504570aad 100644
--- a/packages/react-docs/src/ts/components/type.tsx
+++ b/packages/react-docs/src/ts/components/type.tsx
@@ -8,7 +8,7 @@ import { Type as TypeDef, TypeDefinitionByName, TypeDocTypes } from '../types';
import { constants } from '../utils/constants';
import { utils } from '../utils/utils';
-import { DocsInfo } from './docs_info';
+import { DocsInfo } from '../docs_info';
import { TypeDefinition } from './type_definition';
// Some types reference other libraries. For these types, we want to link the user to the relevant documentation.
diff --git a/packages/react-docs/src/ts/components/type_definition.tsx b/packages/react-docs/src/ts/components/type_definition.tsx
index 944a31f95..20a24495b 100644
--- a/packages/react-docs/src/ts/components/type_definition.tsx
+++ b/packages/react-docs/src/ts/components/type_definition.tsx
@@ -7,7 +7,7 @@ import { utils } from '../utils/utils';
import { Comment } from './comment';
import { CustomEnum } from './custom_enum';
-import { DocsInfo } from './docs_info';
+import { DocsInfo } from '../docs_info';
import { Enum } from './enum';
import { Interface } from './interface';
import { MethodSignature } from './method_signature';
diff --git a/packages/react-docs/src/ts/components/docs_info.ts b/packages/react-docs/src/ts/docs_info.ts
index 509bba89e..84d41f58d 100644
--- a/packages/react-docs/src/ts/components/docs_info.ts
+++ b/packages/react-docs/src/ts/docs_info.ts
@@ -11,9 +11,9 @@ import {
SectionsMap,
SupportedDocJson,
TypeDocNode,
-} from '../types';
-import { doxityUtils } from '../utils/doxity_utils';
-import { typeDocUtils } from '../utils/typedoc_utils';
+} from './types';
+import { doxityUtils } from './utils/doxity_utils';
+import { typeDocUtils } from './utils/typedoc_utils';
export class DocsInfo {
public id: string;
diff --git a/packages/react-docs/src/ts/index.ts b/packages/react-docs/src/ts/index.ts
index ee2950c0e..85b0cca27 100644
--- a/packages/react-docs/src/ts/index.ts
+++ b/packages/react-docs/src/ts/index.ts
@@ -1,5 +1,5 @@
export { Documentation } from './components/documentation';
-export { DocsInfo } from './components/docs_info';
+export { DocsInfo } from './docs_info';
// Exported to give users of this library added flexibility if they want to build
// a docs page from scratch using the individual components.
diff --git a/packages/react-docs/src/ts/utils/typedoc_utils.ts b/packages/react-docs/src/ts/utils/typedoc_utils.ts
index 13798889a..e4cea1e40 100644
--- a/packages/react-docs/src/ts/utils/typedoc_utils.ts
+++ b/packages/react-docs/src/ts/utils/typedoc_utils.ts
@@ -1,6 +1,6 @@
import * as _ from 'lodash';
-import { DocsInfo } from '../components/docs_info';
+import { DocsInfo } from '../docs_info';
import {
CustomType,
CustomTypeChild,