Skip to main content

Global Settings

Every WriteDocs documentation site requires a config.json file to handle the essential configuration settings. Explore the available attributes below to get started.

Key details

Click on each key on the JSON examples below (indicated by the Click here! tag below) to see details about each.

1{
2 "websiteName": "MyCompany Docs",
3 "description": "Project Description",
4 "images": {
5 "logo": "media/logo.png",
6 "favicon": "media/favicon.ico"
7 },
8 "styles": {
9 "mainColor": "#3778fd"
10 },
11 "homepage": "/introduction",
12 "navbar": [
13 {
14 "label": "Guides",
15 "sidebarRef": "docs"
16 },
17 {
18 "label": "API Reference",
19 "dropdown": [
20 {
21 "label": "v1.0",
22 "sidebarRef": "apiReference"
23 }
24 ]
25 }
26 ],
27 "sidebars": [
28 {
29 "sidebarRef": "guides",
30 "categories": [
31 {
32 "categoryName": "Getting Started",
33 "pages": [
34 "getting-started/overview",
35 {
36 "page": "getting-started/quickstart/quickstart",
37 "groupName": "Quickstart",
38 "subpages": [
39 "getting-started/quickstart/beginners-guide"
40 ]
41 },
42 "getting-started/global-settings"
43 ]
44 }
45 ]
46 }
47 ]
48}
Click here!