1
+ import { themes as prismThemes } from 'prism-react-renderer' ;
2
+
1
3
module . exports = {
2
4
title : "FAST" ,
3
5
tagline : "The adaptive interface system for modern web experiences" ,
@@ -13,17 +15,20 @@ module.exports = {
13
15
mermaid : true ,
14
16
} ,
15
17
themes : [
16
- require . resolve ( "@docusaurus/theme-live-codeblock" ) ,
18
+ "@docusaurus/theme-live-codeblock" ,
17
19
"@docusaurus/theme-mermaid" ,
18
20
] ,
19
21
staticDirectories : [ "static" ] ,
20
22
themeConfig : {
23
+ prism : {
24
+ theme : prismThemes . vsDark ,
25
+ } ,
21
26
announcementBar : {
22
27
id : 'version' ,
23
28
content :
24
29
'<code>@microsoft/fast-element</code> v2 is out! 🎉️' ,
25
- backgroundColor : 'var(--ifm-color-primary -darkest)' ,
26
- textColor : 'var(--fill -color)' ,
30
+ backgroundColor : 'var(--ifm-color-success -darkest)' ,
31
+ textColor : 'var(--ifm -color-white )' ,
27
32
} ,
28
33
colorMode : {
29
34
defaultMode : "dark" ,
@@ -147,14 +152,7 @@ module.exports = {
147
152
sidebarPath : "./sidebars.js" ,
148
153
// Refer to https://github.com/microsoft/fast/issues/5865 effects of using true
149
154
showLastUpdateTime : false ,
150
- // remarkPlugins: [require("mdx-mermaid")],
151
- // The "includeCurrentVersion" plugin includes the ./docs folder of the docs - setting to false as current docs are in progress
152
- // TODO: remove when ready to display both the current and legacy versions (line 155)
153
- includeCurrentVersion : false ,
154
- // The "lastVersion" plugin sets which version the /docs route refers to
155
- // TODO: update lastVersion to "current" when ready for /docs route to be set to the current version (line 158)
156
155
lastVersion : "current" ,
157
- // TODO: Uncomment to begin displaying the doc versions labels (lines 160-167)
158
156
versions : {
159
157
current : {
160
158
label : "2.x" ,
0 commit comments