diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 20af2f6..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -// Place your settings in this file to overwrite default and user settings. -{ -} \ No newline at end of file diff --git a/assets/js/tester.js b/assets/js/tester.js deleted file mode 100644 index bbaef40..0000000 --- a/assets/js/tester.js +++ /dev/null @@ -1,608 +0,0 @@ -/* - * octapush.docs / configs.js - * ================================================================================= - * - * Get the latest version of octapush.docs from: - * https://github.com/octapush/octapush.docs - * - * ================================================================================= - * - * Author : Fadhly Permata - * eMail : fadhly.permata@gmail.com - * URLs : - Web Profile => http://fadhly.hol.es - * - LinkedIn => https://www.linkedin.com/in/fadhlypermata - * - StackOverflow => http://stackoverflow.com/users/story/4147978 - * - GitHub => https://github.com/fadhly-permata - * - * ================================================================================= - * - * It's recommended to pack this file to make sure octapush.docs is loaded faster. - * Remove any commented line on this files, except comment lines on the header. - * - * You are not ALLOWED to remove this metadata lines. - * - */ - -(function(w, d, s) { - 'use strict'; - - s = Object.assign(s, { - execScript: true, - animationSpeed: 250, - octapushJS: { - pluginUrl: 'https://cdn.rawgit.com/octapush/octapushJS/418319e3/plugins/', - loadPlugin: ['array'] - }, - specialMime: { - images: ['jpg', 'jpeg', 'gif', 'png', 'svg', 'bmp'], - markup: ['htm', 'html', 'xhtml'] - } - }); - - var oDoc = { - register: function() { - if (s.execScript) - oDoc.events.register.apply(); - }, - ui: { - register: function(eType) { - if (eType === 'load') - oDoc.ui.document.register.apply(); - - else if (eType === 'ready') { - oDoc.ui.sidebar.register.apply(); - oDoc.ui.footer.register.apply(); - } - }, - document: { - register: function() { - oDoc.ui.document.title.apply(); - oDoc.ui.document.replaceWrapperScrollBar.apply(); - }, - title: function() { - $('head > title').text(s.application.title); - }, - update: function(data) { - $('a#document-title').text(_o_.string.capitalize(data.title, true)); - - // handle as image file. - if (s.specialMime.images.indexOf(data.extension) !== -1) { - var img = _o_.string.format('', data.extension, data.content); - $('div#document-wrapper').html(img); - - } else { - data.content = oDoc.helper.common.encoding.base64ToString(data.content); - - // handle as MD file - if (_o_.string.isEqual(_o_.string.toLower(data.extension), 'md')) { - var mdConverter = new showdown.Converter({ - simplifiedAutoLink: s.application.appearances.markdown.convertUrlIntoAnchor, - ghCompatibleHeaderId: true, - tables: true - }); - $('div#document-wrapper').html(mdConverter.makeHtml(data.content)); - } - - // handle as markup file - else if (s.specialMime.markup.indexOf(data.extension) !== -1) { - $('div#document-wrapper').html('
'); - $('#page-iframe').on('load', function() { - $(this).contents().find('body').html(data.content); - }); - } - - // for other file handle as text file - else { - $('div#document-wrapper').html(_o_.string.format( - '
{1}
', - data.content - )); - } - - oDoc.ui.document.hljsReinit.apply(); - oDoc.events.document.register.apply(); - } - - $('div.main-panel').scrollTop(0); - $('div.main-panel').perfectScrollbar('update'); - }, - hljsReinit: function() { - hljs.initHighlighting.called = false; - hljs.initHighlighting(); - - var psAdd = $('pre > code.ps-add, iframe.ps-add'); - if (psAdd.length > 0) - psAdd.perfectScrollbar('destroy'); - - psAdd.perfectScrollbar(); - }, - replaceWrapperScrollBar: function() { - //if (!oDoc.helper.common.isMobileBrowser()) - $('div.main-panel') - .css('overflow', 'hidden !important') - .perfectScrollbar(); - } - }, - sidebar: { - register: function() { - oDoc.ui.sidebar.theme.apply(); - oDoc.ui.sidebar.title.apply(); - - oDoc.helper.common.github.fetchMenuFromRepo.apply(); - }, - title: function() { - $('.sidebar .logo a').text(s.application.title); - }, - style: function() { - $('.sidebar ul.nav p') - .removeClass('capitalize uppercase lowercase') - .addClass(s.application.appearances.sideMenu.textCase); - - $('#sidebar-wrap').perfectScrollbar(); - }, - theme: function() { - $('.sidebar').attr({ - 'data-background-color': s.application.appearances.sideMenu.background, - 'data-active-color': s.application.appearances.sideMenu.color - }); - - $('.off-canvas-sidebar').attr({ - 'data-background-color': s.application.appearances.sideMenu.background, - 'data-active-color': s.application.appearances.sideMenu.color - }); - }, - highlightActive: function(current) { - $('.sidebar ul.nav li').removeClass('active'); - - var cLi = current.parent(); - cLi.addClass('active'); - - var theParent = cLi.parents('li'); - while (theParent.length > 0) { - theParent.addClass('active hide-before-after'); - var theParent = theParent.parents('li'); - } - }, - listMenus: function(url) { - function constructMenu(xhr) { - function buildStruct(dMenu) { - var sMenu = ''; - - _o_.utility.each(dMenu, function(key, val) { - if (_o_.compare.isString(val)) { - var arrName = key.split('.'); - var title = _o_.array.removeLast(arrName, 0).join(''); - var ext = _o_.array.takeLast(arrName).join(''); - - sMenu += _o_.string.format( - '
  • {2}

  • ', - _o_.string.format('#{1}#{2}#{3}', val, ext, _o_.string.toLower(title)), - title, - ext - ); - - } else { - var sTemp = '
  • ' - sTemp += ''; - sTemp += '
  • '; - - sMenu += _o_.string.format(sTemp, key, _o_.string.dasherize(key)); - } - }); - - return sMenu; - } - - xhr = oDoc.helper.sideMenu.dataBuilder(xhr.tree); - $('.sidebar ul.nav').html(buildStruct(xhr)); - - oDoc.events.sideMenu.items.apply(); - oDoc.ui.sidebar.style.apply(); - - var hashes = oDoc.helper.common.getHashes(true); - oDoc.helper.document.initPage.apply(); - } - - _o_.ajax.get({ - url: _o_.string.format('{1}?recursive=1', url), - success: function(xhr) { - if (!xhr.responseText) - return; - - xhr = JSON.parse(xhr.responseText); - constructMenu(xhr); - } - }); - } - }, - footer: { - register: function() { - oDoc.ui.footer.links.apply(); - }, - links: function() { - var sFooter = ''; - - _o_.utility.each(s.application.additionalData.footerLinks, function(key, val) { - sFooter += _o_.string.template('
  • {{title}}
  • ', val); - }); - - $('.footer > .container-fluid > nav').html(_o_.string.format('', sFooter)); - } - } - }, - events: { - register: function() { - oDoc.events.windoc.register.apply(); - }, - windoc: { - register: function() { - w.onLoad = oDoc.events.windoc.onLoad(function() { - oDoc.events.windoc.onReady.apply(); - }); - }, - onLoad: function(cb) { - oDoc.ui.register('load'); - - _o_.settings.pluginsPath = s.octapushJS.pluginUrl; - _o_.utility.importPlugin(s.octapushJS.loadPlugin, function() { - if (cb) - cb(); - }); - }, - onReady: function() { - $(function() { - oDoc.ui.register('ready'); - - oDoc.events.sideMenu.items.apply(); - oDoc.events.sideMenu.toggler.apply(); - oDoc.events.document.register.apply(); - }); - } - }, - sideMenu: { - items: function() { - oDoc.helper.common.jquery.unbindBind( - $('.sidebar ul.nav a'), - 'click', - function() { - var that = $(this); - var isParent = that.data('toggle') !== undefined; - var url = _o_.string.removeLeft(that.attr('href'), 1); - - if (!isParent) { - Pace.restart(); - - oDoc.ui.sidebar.highlightActive(that); - oDoc.helper.common.setHash(url); - - _o_.ajax.get({ - url: url, - success: function(xhr) { - if (!xhr.responseText) - return; - - xhr = JSON.parse(xhr.responseText); - - oDoc.ui.document.update({ - title: that.text(), - extension: that.data('extension'), - content: xhr.content - }); - } - }); - - return false; - - } else { - var expanded = that.attr('aria-expanded'); - var watch = setInterval(function() { - if (expanded !== that.attr('aria-expanded')) { - $('#sidebar-wrap').perfectScrollbar('update'); - - console.log('done'); - clearInterval(watch); - } - }, 10); - } - } - ); - }, - toggler: function() { - $('button.navbar-toggle').on('click', function() { - $('#sidebar-wrap').toggle(0, function() { - if ($('#sidebar-wrap').css('display') === 'none') - $('div.main-panel').css('width', '100%'); - - else { - $('div.main-panel').css('width', 'calc(100% - 260px)'); - $('#sidebar-wrap').perfectScrollbar('update'); - } - }); - }); - } - }, - document: { - register: function() { - oDoc.events.document.links.register.apply(); - }, - links: { - register: function() { - oDoc.events.document.links.click.apply(); - }, - click: function() { - oDoc.helper.common.jquery.unbindBind( - $('div.main-panel a[href]'), - 'click', - function(e) { - e.preventDefault(); - - let that = $(this); - let href = that.attr('href'); - - // handle anchored link - if (_o_.string.isStartsWith(href, '#')) { - oDoc.helper.common.scrollToHash(href, function() { - $('div.main-panel').perfectScrollbar('update'); - }); - - return false; - } - - // handle email link - else if (_o_.string.isStartsWith(href, 'mailto:')) { - return true; - } - - // handle outside link - else { - let win = w.open(href); - if (win) - win.focus(); - else - alert('Please allow popup for this site.'); - - return false; - } - } - ); - } - } - } - }, - helper: { - common: { - appLocation: function(withHash) { - withHash = _o_.utility.ifNull(withHash, false); - return withHash ? (w.location + '').toString() : w.location.toString().replace(w.location.hash, ''); - }, - getHashes: function(outAsArray) { - outAsArray = _o_.utility.ifNull(outAsArray, false); - return outAsArray ? w.location.hash.substr(1).split('#') : w.location.hash; - }, - setHash: function(newHash, removeOld) { - removeOld = _o_.utility.ifNull(removeOld, true); - - if (removeOld) - w.location.hash = newHash; - - else { - if (!_o_.string.isContain(w.location.hash, newHash)) - w.location.hash = _o_.string.format('{1}{2}', oDoc.helper.common.getHashes(), newHash); - } - }, - scrollToHash: function(hash, cb) { - var oldHashes = oDoc.helper.common.getHashes(false); - - if ($(hash).length > 0) { - location.hash = hash; - oDoc.helper.common.setHash(_o_.string.concat(oldHashes, hash)); - - if (cb) cb(); - } - }, - encoding: { - stringToBase64: function(str) { - return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) { - return String.fromCharCode('0x' + p1); - })); - }, - base64ToString: function(str) { - return decodeURIComponent(atob(str).split('').map(function(c) { - return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); - }).join('')); - } - }, - arrayContainString: function(arr, check) { - check = _o_.string.toLower(check); - arr = arr.map(function(i) { - return _o_.string.toLower(i); - }); - - for (let i = 0; i < arr.length; i++) - if (_o_.string.isContain(check, arr[i]) === true) - return true; - - return false; - }, - isMobileBrowser: function() { - if ( - navigator.userAgent.match(/Android/i) || - navigator.userAgent.match(/webOS/i) || - navigator.userAgent.match(/iPhone/i) || - navigator.userAgent.match(/iPad/i) || - navigator.userAgent.match(/iPod/i) || - navigator.userAgent.match(/BlackBerry/i) || - navigator.userAgent.match(/Windows Phone/i) - ) - return true; - else - return false; - }, - jquery: { - unbindBind: function(dom, eventName, fn) { - $(dom).off(eventName).on(eventName, fn); - } - }, - github: { - fetchMenuFromRepo: function() { - _o_.ajax.get({ - url: _o_.string.template('https://api.github.com/repos/{{owner}}/{{project}}/git/trees/{{branch}}', s.application.githubData), - success: function(xhr) { - if (!xhr.responseText) - return; - - xhr = JSON.parse(xhr.responseText); - - xhr.tree = xhr.tree.filter(function(i) { - if (_o_.string.isEqual(i.path, s.application.githubData.documentDirectory)) - return i; - }); - - if ((xhr.tree).length > 0) - oDoc.ui.sidebar.listMenus(xhr.tree[0].url); - } - }); - } - } - }, - sideMenu: { - dataFilter: function(data) { - data = data.filter(function(i) { - if ( - (s.application.additionalData.sideMenu.hideFilesOrDirectory).length > 0 && - !oDoc.helper.common.arrayContainString(s.application.additionalData.sideMenu.hideFilesOrDirectory, i.path) - ) { - if (_o_.string.isEqual(i.type, 'tree')) { - if (!s.application.additionalData.sideMenu.hideEmptyDirectory) - return i; - - } else { - if (!s.application.additionalData.sideMenu.showMdFilesOnly) { - return i; - - } else { - if (_o_.string.isEndsWith(_o_.string.toLower(i.path), '.md')) - return i; - } - } - } - }); - - return oDoc.helper.sideMenu.insertAdditionals(data); - }, - insertAdditionals: function(data) { - let before = (s.application.additionalData.sideMenu.before).reverse(); - if (before.length > 0) - for (let i = 0; i < before.length; i++) - data.unshift({ - path: _o_.string.format('{1}.{2}', before[i].title, before[i].renderAs), - url: before[i].url, - type: 'blob' - }); - - let after = (s.application.additionalData.sideMenu.after).reverse(); - if (after.length > 0) - for (let i = 0; i < after.length; i++) - data.push({ - path: _o_.string.format('{1}.{2}', after[i].title, after[i].renderAs), - url: after[i].url, - type: 'blob' - }); - - return data; - }, - dataBuilder: function(data) { - function mapData(obj, paths, val) { - let path, arrayInfo; - - if (paths.length === 0) - return val; - - obj = obj || {}; - path = paths.shift(); - arrayInfo = path.match(/^(\w+)\((\d+)\)$/); - - if (arrayInfo) { - path = arrayInfo[1]; - - if (!_o_.compare.isArray(obj[path])) - obj[path] = []; - - obj[path][arrayInfo[2]] = mapData(obj[path][arrayInfo[2]], paths, val); - - } else { - obj[path] = mapData(obj[path], paths, val); - } - - return obj; - } - - var result = {}; - data = oDoc.helper.sideMenu.dataFilter(data); - - _o_.utility.each(data, function(key, val) { - result = mapData( - result, - val.path.split('/'), val.type === 'tree' ? {} : val.url - ); - }); - - return result; - } - }, - document: { - loadDocument: function(data) { - _o_.ajax.get({ - url: data.url, - success: function(xhr) { - if (!xhr.responseText) - return; - - xhr = JSON.parse(xhr.responseText); - - oDoc.ui.document.update({ - title: data.title, - extension: data.extension, - content: xhr.content - }); - - oDoc.ui.sidebar.highlightActive($(_o_.string.format('ul.nav a[href*="{1}"]', data.title))) - - if (data.callback) data.callback(); - } - }); - }, - initPage: function() { - var hashes = oDoc.helper.common.getHashes(true); - - // hotlink - if (_o_.compare.isArray(hashes) && hashes.length > 2) - oDoc.helper.document.loadDocument({ - url: hashes[0], - title: hashes[2], - extension: hashes[1], - callback: function() { - if (hashes.length > 3) - oDoc.helper.common.scrollToHash(_o_.string.concat('#', hashes[3])); - } - }); - - else { - if (s.application.additionalData.initialPage.useFirstMenuItem == false) { - oDoc.helper.document.loadDocument({ - url: s.application.additionalData.initialPage.customInitialPage.url, - title: s.application.additionalData.initialPage.customInitialPage.renderAs.title, - extension: s.application.additionalData.initialPage.customInitialPage.renderAs - }); - } - } - } - } - } - }; - - w.octapushDoc = Object.assign(w.octapushDoc, oDoc); - w.octapushDoc.register.apply(); -})(window, document, window.octapushDoc.configurations); \ No newline at end of file diff --git a/dummy-menu.json b/dummy-menu.json deleted file mode 100644 index 97691ae..0000000 --- a/dummy-menu.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "sha": "cdc210ce07e401a80402ad6e6612809e1ab4582f", - "url": "https://api.github.com/repos/octapush/octapush.docs/git/trees/cdc210ce07e401a80402ad6e6612809e1ab4582f", - "tree": [{ "path": "Configuration.MD", "mode": "100644", "type": "blob", "sha": "c8327cf1dc4e07fff2fb0183f9dc265768e0c0b8", "size": 62, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/c8327cf1dc4e07fff2fb0183f9dc265768e0c0b8" }, { "path": "Dependencies.MD", "mode": "100644", "type": "blob", "sha": "8bf6fceecf4b1d316364c1174d9510bc189fddd4", "size": 60, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/8bf6fceecf4b1d316364c1174d9510bc189fddd4" }, { "path": "Editing Documents", "mode": "040000", "type": "tree", "sha": "555228cb7a3732fc5071c79a50bdf9a8cb59dc4b", "url": "https://api.github.com/repos/octapush/octapush.docs/git/trees/555228cb7a3732fc5071c79a50bdf9a8cb59dc4b" }, { "path": "Editing Documents/Create Document.MD", "mode": "100644", "type": "blob", "sha": "c84092a8737b618c907215e85f318da396ad0e9a", "size": 61, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/c84092a8737b618c907215e85f318da396ad0e9a" }, { "path": "Editing Documents/Delete Document.MD", "mode": "100644", "type": "blob", "sha": "72d492945f643f848e7e0cb8544b68a6879636d7", "size": 61, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/72d492945f643f848e7e0cb8544b68a6879636d7" }, { "path": "Editing Documents/Edit Document.MD", "mode": "100644", "type": "blob", "sha": "8c8753206c2ea45806858fd7b409ffb3402fd8b4", "size": 57, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/8c8753206c2ea45806858fd7b409ffb3402fd8b4" }, { "path": "Editing Documents/Hidden File.MD", "mode": "100644", "type": "blob", "sha": "58c6244e763f023d16f5923b5ff2de9f18356dd9", "size": 53, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/58c6244e763f023d16f5923b5ff2de9f18356dd9" }, { "path": "Hidden Directory", "mode": "040000", "type": "tree", "sha": "1d2f6644e9821581f4501d38d40b3361ecafff5c", "url": "https://api.github.com/repos/octapush/octapush.docs/git/trees/1d2f6644e9821581f4501d38d40b3361ecafff5c" }, { "path": "Hidden Directory/File 1.MD", "mode": "100644", "type": "blob", "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "size": 0, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" }, { "path": "Hidden Directory/File 2.MD", "mode": "100644", "type": "blob", "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "size": 0, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" }, { "path": "Installation.MD", "mode": "100644", "type": "blob", "sha": "bc87c9ff0d8eb14fae5cb5bdc86ad8ac9d6d6836", "size": 57, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/bc87c9ff0d8eb14fae5cb5bdc86ad8ac9d6d6836" }, { "path": "Introduction.MD", "mode": "100644", "type": "blob", "sha": "32b7c69ec219bed034f01040b22eab7523e27c14", "size": 60, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/32b7c69ec219bed034f01040b22eab7523e27c14" }, { "path": "License.MD", "mode": "100644", "type": "blob", "sha": "dddc2952f18aa7c258c3d75b8fdff32449933f8b", "size": 50, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/dddc2952f18aa7c258c3d75b8fdff32449933f8b" }, { "path": "Samples", "mode": "040000", "type": "tree", "sha": "34b0e30e415e4abe46e25352bd1d16703ee2b8ec", "url": "https://api.github.com/repos/octapush/octapush.docs/git/trees/34b0e30e415e4abe46e25352bd1d16703ee2b8ec" }, { "path": "Samples/HTML File.html", "mode": "100644", "type": "blob", "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "size": 0, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" }, { "path": "Samples/MD File.MD", "mode": "100644", "type": "blob", "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "size": 0, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" }, { "path": "Samples/js file.js", "mode": "100644", "type": "blob", "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "size": 0, "url": "https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" }], - "truncated": false -} \ No newline at end of file diff --git a/temp-configs.js b/temp-configs.js deleted file mode 100644 index c4ecc5f..0000000 --- a/temp-configs.js +++ /dev/null @@ -1,249 +0,0 @@ -/* - * octapush.docs / configs.js - * ================================================================================= - * - * Get the latest version of octapush.docs from: - * https://github.com/octapush/octapush.docs - * - * ================================================================================= - * - * Author : Fadhly Permata - * eMail : fadhly.permata@gmail.com - * URLs : - Web Profile => http://fadhly.hol.es - * - LinkedIn => https://www.linkedin.com/in/fadhlypermata - * - StackOverflow => http://stackoverflow.com/users/story/4147978 - * - GitHub => https://github.com/fadhly-permata - * - * ================================================================================= - * - * This file is a part of octapush.docs (https://github.com/octapush/octapush.docs). - * And This file will be used as configuration data of octapush.docs. - * - * ================================================================================= - * INFO: - * - * It's recommended to pack this configuration (this is javascript file) file to - * make sure octapush.docs is loaded faster. Remove any commented line on this files, - * except comment lines on the header. - * - * You are not ALLOWED to remove this metadata lines. - * - */ - -(function(w) { - 'use strict'; - - - let configurations = { - // Main application settings - application: { - /** - * Name : title - * Type : String - * DefaultValue : 'OCTAPUSH.DOCS' - * Description : The title of your documentation. - */ - title: 'OCTAPUSH.DOCS', - - - // Your github data property that will be fetched. - githubData: { - /** - * Name : owner - * Type : String - * DefaultValue : 'octapush' - * Description : The owner name of project - */ - // The owner name of project - owner: 'octapush', - - - /** - * Name : project - * Type : String - * DefaultValue : 'octapush.docs' - * Description : The project name - */ - project: 'octapush.docs', - - - /** - * Name : branch - * Type : String - * DefaultValue : 'master' - * Description : The branch name - */ - branch: 'master', - - - /** - * Name : documentDirectory - * Type : String - * DefaultValue : 'docs-data' - * Description : The directory name inside your project that will be used as your - * documentation folder. - * - * Note : DO NOT USE NESTED DIRECTORY. - */ - documentDirectory: 'docs-data' - }, - - - // The sections that will be used for appearancing your documentation - appearances: { - markdown: { - /** - * Name : convertUrlIntoAchor - * Type : Boolean - * DefaultValue : true - * Description : If TRUE, all url that listed on your markdown document will - * be rendered as hyperlink (anchor). - */ - convertUrlIntoAnchor: true - }, - sideMenu: { - /** - * Name : textCase - * Type : String - * DefaultValue : 'capitalize' - * supportedValue : 'uppercase', 'lowercase', 'capitalize' - * Description : The text-case that will be used on side menu - */ - textCase: 'capitalize', // uppercase, lowercase, capitalize - - - /** - * Name : background - * Type : String - * DefaultValue : 'white' - * supportedValue : 'white', 'brown' - * Description : Side menu background color - */ - background: 'brown', // white | brown, - - - /** - * Name : color - * Type : String - * DefaultValue : 'danger' - * supportedValue : 'primary', 'info', 'success', 'warning', 'danger' - * Description : Side menu font color - */ - color: 'danger' // primary | info | success | warning | danger - } - }, - - additionalData: { - /* - * INITIAL PAGE - * When we does not get any query string, we'll be load this - */ - initialPage: { - useFirstMenuItem: true, - - - customInitialPage: { - // The title of your document. - title: 'home', // <== don't bother the case, we'll CAPITALIZE the "title" text. - - - // The url of your initial page. - url: 'https://api.github.com/repos/octapush/octapush.docs/git/blobs/9087473574e115a76a1d313cf59126ba0891da10', - - - // Jus't mention your document file type. So we know how to handle it. - // - // NOTE: - // octapush.docs has ability to render lot file type. - renderAs: 'MD' - } - }, - - - // Your side menu - sideMenu: { - // Display only MD files. - showMdFilesOnly: false, - - - // Hide empty directory. - hideEmptyDirectory: true, - - - /* - * The files that will be hided on side menu. - * Write the github api PATH's only, and write inside quote, and comma separated. - * - * NOTE: - * We don't care about your text case, you can write it freely. - */ - hideFilesOrDirectory: [ - 'Hidden Directory', // <== This Directory will be hidden (include files inside it) - - - 'editing documents/hidden file.MD', // <== This file will be hidden - 'license.md', // <== hide only from documentation directory (but not removing from "before" or "after" section) - ], - - - // Additional menus to put first on side menu. - // The menus will be sorted by position of Array. - // - // NOTE FOR THIS STATIC LINK: - // - Becareful, URL from api.github.com will be changed whenever you updating (create/update/delete) it. - before: [ - // { - // title: 'introduction', - // url: 'https://api.github.com/repos/octapush/octapush.docs/git/blobs/c94e1021e8f80bd434f1b7bbc8c788f8b75ff838', - // renderAs: 'md' - // }, - // { - // title: 'download', // <== please assign extension of your file so we know how to handle it - // url: 'https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391', - // renderAs: 'md' - // } - ], - - - // Additional menus to put below on side menu. - // The menus will be sorted by position of Array. - after: [ - // { - // title: 'authors', // <== please assign extension of your file so we know how to handle it - // url: 'https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391', - // renderAs: 'md' - // }, - // { - // title: 'license', // <== please assign extension of your file so we know how to handle it - // url: 'https://api.github.com/repos/octapush/octapush.docs/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391', - // renderAs: 'md' - // } - ] - }, - - - // Additional links for footer. - // - // NOTE: - // Below links always opened in a new tab - footerLinks: [ - { - title: 'Author', - url: 'http://fadhly.hol.es' - }, - { - title: 'License', - url: 'https://github.com/octapush/octapush.docs/blob/master/LICENSE' - }, , - { - title: 'Download', - url: 'links3.md' - } - ] - } - } - }; - - // DON'T CHANGE BELOW LINES !!! - w.octapushDoc = { configurations: configurations }; -})(window); \ No newline at end of file diff --git a/web.config b/web.config deleted file mode 100644 index fad252c..0000000 --- a/web.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - -