forked from sourcejs/Source
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.js
More file actions
103 lines (93 loc) · 3.06 KB
/
options.js
File metadata and controls
103 lines (93 loc) · 3.06 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
// Default options for core and assets
module.exports = {
// Restart app after changing core options
core : {
common: {
pathToUser: 'user',
defaultLogLevel: 'INFO',
defaultProdLogLevel: 'ERROR',
port: 8080,
infoFile: 'info.json',
specPaths: ['specs'],
specFiles: ['index.src', 'index.jade', 'index.haml', 'index.md', 'readme.md', 'README.md', 'index.html']
},
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
},
fileTree: {
mainPageTrigger: false
},
watch: {
enabled: true
}
},
// Run `grunt` after changing assets options. Or use`grunt watch-all`.
assets: {
// Core modules
modulesEnabled : {
clarifyInSpec: true,
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
scrollToHash: true,
sections: true,
globalNav: true,
search: true,
loadEvents: true,
navHighlight: true,
auth: false
},
modulesOptions : {
navHighlight: {
updateHash: false, // Hash update on scroll turned off because of performance issues
},
search: {
autoFocus: false,
autoFocusOnNavigationPage: true
}
},
// 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,
globalNav: true,
search: true
},
pluginsEnabled: {},
npmPluginsEnabled: {}
}
},
plugins: {
},
/*
* Please pay your attention. This is demo github applicatio key.
* To get your own one please use github applications service.
* Please visit this link to get more information:
* https://developer.github.com/guides/basics-of-authentication/#registering-your-app
* Current demo key is used in test mode for http://127.0.0.1:8080
*/
github: {
appId: 'cf00a9e7ee5d9d6af36f',
appSecret: 'aebe08e0aa66f6911e4f54df81ce64c9d6e0003b'
}
};