add documentation browser (Ox.DocPanel, demo, more documentation)
This commit is contained in:
parent
16dce2e517
commit
698d57abb0
11 changed files with 1610 additions and 1179 deletions
19
demos/doc2/js/doc.js
Normal file
19
demos/doc2/js/doc.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
Ox.load('UI', {
|
||||
debug: true,
|
||||
theme: 'classic'
|
||||
}, function() {
|
||||
Ox.Theme('classic');
|
||||
Ox.DocPanel({
|
||||
files: ['Ox.js', 'Ox.UI/js/Map/Ox.Map.js'],
|
||||
getModule: function(item) {
|
||||
var file = item.file.replace(Ox.PATH, '');
|
||||
return file == 'Ox.js' ? 'Ox' : file.split('/')[0];
|
||||
},
|
||||
getSection: function(item) {
|
||||
var file = item.file.replace(Ox.PATH, '');
|
||||
return item.section || file.split('/')[2];
|
||||
},
|
||||
path: Ox.PATH
|
||||
})
|
||||
.appendTo(Ox.UI.$body);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue