forked from sourcejs/Source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.js
91 lines (83 loc) · 2.59 KB
/
options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Default options for core and assets
module.exports = {
// Restart app after changing core options
core : {
api: {
specsData: 'core/api/data/pages_tree.json',
htmlData: 'core/api/data/html.json',
specsTestData: 'test/data/api-test-specs.json',
htmlTestData: 'test/data/api-test-html.json'
},
parseHTML: {
onStart: false
},
common: {
pathToUser: 'user',
defaultLogLevel: 'INFO',
defaultProdLogLevel: 'ERROR',
port: 8080,
infoFile: 'info.json',
extensions: ["src", "jade", "haml"]
},
less: {
compress: false
}
},
// Run `grunt` after changing assets options. Or use`grunt watch-all`.
assets: {
// Core modules
modulesEnabled : {
htmlAPISync: true,
headerFooter: true,
specDecorations: true,
codeSource: true,
sectionFolding: true,
innerNavigation: true,
trimSpaces: false, //trimspaces in example sections to emulate HTML minify, off by default
specAssets: true,
scrollToHash: true,
sections: true,
globalNav: true,
search: true,
loadEvents: true,
navHighlight: true
},
modulesOptions : {
globalNav: {
filterEnabled: false
},
innerNavigation : {
hashSymb: '!'
},
specAssets : {
postponedInit : true
},
search: {
autoFocus: false,
autoFocusOnNavigationPage: true,
replacePathBySectionName: false // replace spec's path by root parent's dir name from json.info
}
},
// Page classes
containerClass : 'source_container',
headerClass : 'source_header',
SECTION_CLASS : 'source_section',
exampleSectionClass : 'source_example',
exampleCleanClass : 'source_clean',
mainClass : 'source_main',
mainNav : 'source_main_nav',
colMain : 'source_col-main',
// Landing page options for moduleLoader (override without extend)
navPageModulesBuild: {
modulesEnabled : {
headerFooter: true,
specDecorations: true,
specAssets: true,
globalNav: true,
search: true
},
pluginsEnabled: {},
npmPluginsEnabled: {}
}
}
};