mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
* Add the ability to define a default language
I don't want to have to add the language i'm working on to every single block nor do I want to rely on a default heuristic to find the language.
This adds the ability to write
```
highlight: { defaultLang: 'xxxx' }
```
in `siteConfig.js` to force the language when not specified.
I tested it without a a highlight block, without a defaultLang attribute and with one and with a wrong one. All of them work as expected.
* Move comment around
|
||
|---|---|---|
| .. | ||
| core | ||
| server | ||
| static | ||
| build-files.js | ||
| copy-examples.js | ||
| generate-feed.js | ||
| publish-gh-pages.js | ||
| rename-version.js | ||
| start-server.js | ||
| version.js | ||
| write-translations.js | ||