From 08fbfd59004de9b62c57adde7ad06cc52659a51d Mon Sep 17 00:00:00 2001
From: Website Deployment Script More examples of how these components are used can be found in the generated example files as well as in Docusaurus's own repo for its website set-up. More examples of how these components are used can be found in the generated example files as well as in Docusaurus' own repo for its website set-up. When translations are enabled, any pages inside When writing pages that you wish to translate, wrap any strings to be translated inside a You can also provide an optional description attribute to provide context for translators. e.g, Add the following require statement as well:dark
, highlight
, light
"threeColumn"
/>
-
Translating Strings
website/pages/en
will be translated for all enabled languages. Urls for non-English pages will use their language tags as specified in the languages.js
file. E.g. The url for a French page of website/pages/en/help.js
would be found at ${baseUrl}fr/help.html
.<translate>
tag. e.g.,dark
, highlight
, light
<a href="/community">
- <translate desc="footer link to page referring to community github and slack">Community</translate>
+ <translate desc="Footer link to page referring to community GitHub and Slack">Community</translate>
</a>
dark
, highlight
, light
Static assets should be placed into the website/static
folder. They can be accessed by their paths, excluding "static". For example, if the site's baseUrl
is "/docusaurus/", an image in website/static/img/logo.png
is available at /docusaurus/img/logo.png
.
You should configure your site's primary, secondary, and code block colors using the colors
field in siteConfig
as specified here. You can also configure other colors in the same way as described in the siteConfig
doc.
You can provide your own custom styles by adding them anywhere in the website/static
folder. Any .css
files you provide in the static
folder will get concatenated to the end of Docusaurus's provided styles, allowing you to add to or override Docusaurus default styles as you wish.
You can provide your own custom styles by adding them anywhere in the website/static
folder. Any .css
files you provide in the static
folder will get concatenated to the end of Docusaurus' provided styles, allowing you to add to or override Docusaurus default styles as you wish.
An easy way to figure out what classes you wish to override or add to is to start your server locally and use your browser's inspect element tool.