diff --git a/src/components/ComponentFactory.js b/src/components/ComponentFactory.js index 7a11226b0..71ba80340 100644 --- a/src/components/ComponentFactory.js +++ b/src/components/ComponentFactory.js @@ -61,6 +61,7 @@ import Subscript from './Subscript'; import SubstitutionReference from './SubstitutionReference'; import Superscript from './Superscript'; import Tabs from './Tabs'; +import TabSelectors from './Tabs/TabSelectors'; import Target from './Target'; import Text from './Text'; import Time from './Time'; @@ -88,7 +89,6 @@ const IGNORED_NAMES = new Set([ 'raw', 'short-description', 'tabs-pillstrip', - 'tabs-selector', 'toctree', 'meta', 'facet', @@ -183,6 +183,7 @@ const componentMap = { strong: Strong, substitution_reference: SubstitutionReference, tabs: Tabs, + 'tabs-selector': TabSelectors, target: Target, text: Text, time: Time, diff --git a/src/components/DocumentBody.js b/src/components/DocumentBody.js index aced08aea..b50009310 100644 --- a/src/components/DocumentBody.js +++ b/src/components/DocumentBody.js @@ -86,6 +86,7 @@ const DocumentBody = (props) => { const { location, data, pageContext } = props; const page = data?.page?.ast; const { slug, template, repoBranches } = pageContext; + const tabsMainColumn = page?.options?.['tabs-selector-position'] === 'main'; const initialization = () => { const pageNodes = getNestedValue(['children'], page) || []; @@ -150,7 +151,7 @@ const DocumentBody = (props) => { > - +