docs(v2): update link to available prism themes (#2218)

* fix: update link to available prism themes

* fix: update link to point to prism themes
This commit is contained in:
JavaScript Joe 2020-01-15 10:00:08 -07:00 committed by Yangshun Tay
parent d7bc0b967e
commit 68035cc7e3
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ Docusaurus uses [Prism React Renderer](https://github.com/FormidableLabs/prism-r
### Theme
By default, we use [Palenight](https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/palenight.js) as syntax highlighting theme. You can specify a custom theme from the [list of available themes](https://github.com/FormidableLabs/prism-react-renderer#theming). If you want to use a different syntax highlighting theme when the site is in dark mode, you may also do so.
By default, we use [Palenight](https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/palenight.js) as syntax highlighting theme. You can specify a custom theme from the [list of available themes](https://github.com/FormidableLabs/prism-react-renderer/tree/master/src/themes). If you want to use a different syntax highlighting theme when the site is in dark mode, you may also do so.
```js {5,6}
// docusaurus/config.js

View file

@ -115,7 +115,7 @@ Docusaurus uses [Prism React Renderer](https://github.com/FormidableLabs/prism-r
### Theme
By default, we use [Palenight](https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/palenight.js) as syntax highlighting theme. You can specify a custom theme from the [list of available themes](https://github.com/FormidableLabs/prism-react-renderer#theming), e.g.:
By default, we use [Palenight](https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/palenight.js) as syntax highlighting theme. You can specify a custom theme from the [list of available themes](https://github.com/FormidableLabs/prism-react-renderer/tree/master/src/themes), e.g.:
```js
// docusaurus/config.js