mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 09:43:10 +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
|
||
|---|---|---|
| .. | ||
| nav | ||
| BlogPageLayout.js | ||
| BlogPost.js | ||
| BlogPostLayout.js | ||
| BlogSidebar.js | ||
| CompLibrary.js | ||
| Container.js | ||
| Doc.js | ||
| DocsLayout.js | ||
| DocsSidebar.js | ||
| GridBlock.js | ||
| Head.js | ||
| Header.js | ||
| MarkdownBlock.js | ||
| Redirect.js | ||
| Remarkable.js | ||
| Site.js | ||
| toSlug.js | ||
| unindent.js | ||