1
1
// @ts -check
2
2
// Note: type annotations allow type checking and IDEs autocompletion
3
3
4
- const lightCodeTheme = require ( ' prism-react-renderer/themes/github' )
5
- const darkCodeTheme = require ( ' prism-react-renderer/themes/dracula' )
4
+ const lightCodeTheme = require ( " prism-react-renderer/themes/github" ) ;
5
+ const darkCodeTheme = require ( " prism-react-renderer/themes/dracula" ) ;
6
6
7
7
/** @type {import('@docusaurus/types').Config } */
8
8
const config = {
9
- title : ' Create Rust App' ,
10
- tagline : ' Set up a modern rust+react web app by running one command.' ,
11
- url : ' https://create-rust-app.dev' ,
12
- baseUrl : '/' ,
13
- onBrokenLinks : ' throw' ,
14
- onBrokenMarkdownLinks : ' warn' ,
15
- favicon : ' img/favicon.ico' ,
16
- organizationName : ' Wulf' ,
17
- projectName : ' create-rust-app' ,
9
+ title : " Create Rust App" ,
10
+ tagline : " Set up a modern rust+react web app by running one command." ,
11
+ url : " https://create-rust-app.dev" ,
12
+ baseUrl : "/create-rust-app/" ,
13
+ onBrokenLinks : " throw" ,
14
+ onBrokenMarkdownLinks : " warn" ,
15
+ favicon : " img/favicon.ico" ,
16
+ organizationName : " Wulf" ,
17
+ projectName : " create-rust-app" ,
18
18
presets : [
19
19
[
20
- ' @docusaurus/preset-classic' ,
20
+ " @docusaurus/preset-classic" ,
21
21
/** @type {import('@docusaurus/preset-classic').Options } */
22
22
( {
23
23
docs : {
24
- sidebarPath : require . resolve ( ' ./sidebars.js' ) ,
24
+ sidebarPath : require . resolve ( " ./sidebars.js" ) ,
25
25
// Please change this to your repo.
26
- editUrl : ' https://github.com/Wulf/create-rust-app/edit/main/docs/' ,
26
+ editUrl : " https://github.com/Wulf/create-rust-app/edit/main/docs/" ,
27
27
} ,
28
28
blog : {
29
29
showReadingTime : true ,
30
30
// Please change this to your repo.
31
31
editUrl :
32
- ' https://github.com/Wulf/create-rust-app/edit/main/docs/blog/' ,
32
+ " https://github.com/Wulf/create-rust-app/edit/main/docs/blog/" ,
33
33
} ,
34
34
theme : {
35
- customCss : require . resolve ( ' ./src/css/custom.css' ) ,
35
+ customCss : require . resolve ( " ./src/css/custom.css" ) ,
36
36
} ,
37
37
} ) ,
38
38
] ,
@@ -42,53 +42,53 @@ const config = {
42
42
/** @type {import('@docusaurus/preset-classic').ThemeConfig } */
43
43
( {
44
44
navbar : {
45
- title : ' Create Rust App' ,
45
+ title : " Create Rust App" ,
46
46
logo : {
47
- alt : ' Create Rust App Logo' ,
48
- src : ' img/cra-logo-rust.svg' ,
49
- srcDark : ' img/cra-logo-rust-white.svg' ,
47
+ alt : " Create Rust App Logo" ,
48
+ src : " img/cra-logo-rust.svg" ,
49
+ srcDark : " img/cra-logo-rust-white.svg" ,
50
50
} ,
51
51
items : [
52
52
{
53
- type : ' doc' ,
54
- docId : ' intro' ,
55
- position : ' left' ,
56
- label : ' Docs' ,
53
+ type : " doc" ,
54
+ docId : " intro" ,
55
+ position : " left" ,
56
+ label : " Docs" ,
57
57
} ,
58
- { to : ' /blog' , label : ' Blog' , position : ' left' } ,
58
+ { to : " /blog" , label : " Blog" , position : " left" } ,
59
59
{
60
- href : ' https://github.com/Wulf/create-rust-app' ,
61
- label : ' GitHub' ,
62
- position : ' right' ,
60
+ href : " https://github.com/Wulf/create-rust-app" ,
61
+ label : " GitHub" ,
62
+ position : " right" ,
63
63
} ,
64
64
] ,
65
65
} ,
66
66
footer : {
67
- style : ' dark' ,
67
+ style : " dark" ,
68
68
links : [
69
69
{
70
- title : ' Links' ,
70
+ title : " Links" ,
71
71
items : [
72
72
{
73
- label : ' Blog' ,
74
- to : ' /blog' ,
73
+ label : " Blog" ,
74
+ to : " /blog" ,
75
75
} ,
76
76
{
77
- label : ' Docs' ,
78
- to : ' /docs/intro' ,
77
+ label : " Docs" ,
78
+ to : " /docs/intro" ,
79
79
} ,
80
80
] ,
81
81
} ,
82
82
{
83
- title : ' More' ,
83
+ title : " More" ,
84
84
items : [
85
85
{
86
- label : ' GitHub' ,
87
- href : ' https://github.com/Wulf/create-rust-app' ,
86
+ label : " GitHub" ,
87
+ href : " https://github.com/Wulf/create-rust-app" ,
88
88
} ,
89
89
{
90
- label : ' Crates.io' ,
91
- href : ' https://crates.io/crates/create-rust-app' ,
90
+ label : " Crates.io" ,
91
+ href : " https://crates.io/crates/create-rust-app" ,
92
92
} ,
93
93
] ,
94
94
} ,
@@ -99,6 +99,6 @@ const config = {
99
99
darkTheme : darkCodeTheme ,
100
100
} ,
101
101
} ) ,
102
- }
102
+ } ;
103
103
104
- module . exports = config
104
+ module . exports = config ;
0 commit comments