Skip to content

Commit 32e0ed8

Browse files
committed
Include additional languages for syntax highlighting
1 parent ed5c8dd commit 32e0ed8

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

docusaurus.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import remarkNpm2Yarn from './src/plugins/remark-npm2yarn.mjs';
21
import rehypeCodeblockMeta from './src/plugins/rehype-codeblock-meta.mjs';
32
import rehypeStaticToDynamic from './src/plugins/rehype-static-to-dynamic.mjs';
43
import rehypeVideoAspectRatio from './src/plugins/rehype-video-aspect-ratio.mjs';
4+
import remarkNpm2Yarn from './src/plugins/remark-npm2yarn.mjs';
55

66
export default {
77
title: 'React Navigation',
@@ -28,6 +28,17 @@ export default {
2828
prism: {
2929
theme: require('prism-react-renderer').themes.oneLight,
3030
darkTheme: require('prism-react-renderer').themes.oneDark,
31+
additionalLanguages: [
32+
'bash',
33+
'json',
34+
'java',
35+
'kotlin',
36+
'groovy',
37+
'ruby',
38+
'swift',
39+
'objectivec',
40+
'toml',
41+
],
3142
magicComments: [
3243
{
3344
className: 'theme-code-block-highlighted-line',

versioned_docs/version-7.x/configuring-links.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,8 @@ const config = {
11461146
11471147
When handling the URL, your params will look like this:
11481148
1149-
```yml
1150-
{ date: '1589842744264' }
1149+
```json
1150+
{ "date": "1589842744264" }
11511151
```
11521152
11531153
Here, the `date` param was parsed as a string because React Navigation doesn't know that it's supposed to be a timestamp, and hence number. You can customize it by providing a custom function to use for parsing:

versioned_docs/version-8.x/configuring-links.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,8 +1135,8 @@ const config = {
11351135
11361136
When handling the URL, your params will look like this:
11371137
1138-
```yml
1139-
{ date: '1589842744264' }
1138+
```json
1139+
{ "date": "1589842744264" }
11401140
```
11411141
11421142
Here, the `date` param was parsed as a string because React Navigation doesn't know that it's supposed to be a timestamp, and hence number. You can customize it by providing a custom function to use for parsing:

0 commit comments

Comments
 (0)