chore: Make External exports clickable on sidebar
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
|||||||
SectionsMap,
|
SectionsMap,
|
||||||
SupportedDocJson,
|
SupportedDocJson,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
import { constants } from './utils/constants';
|
||||||
|
|
||||||
export class DocsInfo {
|
export class DocsInfo {
|
||||||
public id: string;
|
public id: string;
|
||||||
@@ -64,7 +65,7 @@ export class DocsInfo {
|
|||||||
const docSections = _.keys(this.sections);
|
const docSections = _.keys(this.sections);
|
||||||
_.each(docSections, sectionName => {
|
_.each(docSections, sectionName => {
|
||||||
const docSection = docAgnosticFormat[sectionName];
|
const docSection = docAgnosticFormat[sectionName];
|
||||||
if (_.isUndefined(docSection)) {
|
if (_.isUndefined(docSection) || sectionName === constants.EXTERNAL_EXPORTS_SECTION_NAME) {
|
||||||
return; // no-op
|
return; // no-op
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user