diff --git a/v2/lib/load/config.js b/v2/lib/load/config.js index d6ca704f1654..161e65b546b9 100644 --- a/v2/lib/load/config.js +++ b/v2/lib/load/config.js @@ -30,6 +30,7 @@ const OPTIONAL_FIELDS = [ 'customDocsPath', 'customFields', 'defaultLanguage', + 'disableHeaderTitle', 'docsUrl', 'githubHost', 'highlight', diff --git a/v2/lib/theme/Navbar/index.js b/v2/lib/theme/Navbar/index.js index ea2a8fdf093f..1447749dd279 100644 --- a/v2/lib/theme/Navbar/index.js +++ b/v2/lib/theme/Navbar/index.js @@ -20,11 +20,19 @@ function Navbar(props) { metadata = {}, docsMetadatas = {}, } = context; - const {baseUrl, headerLinks, headerIcon, algolia} = siteConfig; + const { + baseUrl, + headerLinks, + headerIcon, + algolia, + title, + disableHeaderTitle, + } = siteConfig; const {language: thisLanguage, version: thisVersion} = metadata; const translationEnabled = env.translation.enabled; const versioningEnabled = env.versioning.enabled; + const defaultVersion = versioningEnabled && env.versioning.defaultVersion; // function to generate each header link const makeLinks = link => { @@ -111,15 +119,31 @@ function Navbar(props) {