@docusaurus/theme-bootstrap
caution
This section is a work in progress.
#
HooksuseLogo
#
React hook to access the logo asset.
Usage example:
#
Navbar#
Navbar title & logoYou can add a logo and title to the navbar via themeConfig.navbar
. Logo can be placed in static folder. Logo URL is set to base URL of your site by default. Although you can specify your own URL for the logo, if it is an external link, it will open in a new tab. In addition, you can override a value for the target attribute of logo link, it can come in handy if you are hosting docs website in a subdirectory of your main website, and in which case you probably do not need a link in the logo to the main website will open in a new tab.
#
Navbar linksYou can add links to the navbar via themeConfig.navbar.links
:
React Router should automatically apply active link styling to links, but you can use activeBasePath
in edge cases. For cases in which a link should be active on several different paths (such as when you have multiple doc folders under the same sidebar), you can use activeBaseRegex
. activeBaseRegex
is a more flexible alternative to activeBasePath
and takes precedence over it -- Docusaurus parses it into a regular expression that is tested against the current URL.
Outbound (external) links automatically get target="_blank" rel="noopener noreferrer"
attributes.
#
FooterYou can add logo and a copyright to the footer via themeConfig.footer
. Logo can be placed in static folder. Logo URL works in the same way of the navbar logo.
#
Footer LinksYou can add links to the navbar via themeConfig.footer.links
: