Skip to content

Commit

Permalink
docs: re-compile with compodoc v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Apr 10, 2018
1 parent 6341788 commit f8181bb
Show file tree
Hide file tree
Showing 26 changed files with 14,059 additions and 13,952 deletions.
783 changes: 392 additions & 391 deletions docs/additional-documentation/code-editor.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/colors.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/configuration.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/errors.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/font-size.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/image-uploader.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/insert-video.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/prerequisites.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/resizer.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/additional-documentation/toolbar.html

Large diffs are not rendered by default.

3,491 changes: 1,745 additions & 1,746 deletions docs/components/NgxEditorComponent.html

Large diffs are not rendered by default.

1,051 changes: 529 additions & 522 deletions docs/components/NgxEditorMessageComponent.html

Large diffs are not rendered by default.

3,427 changes: 1,713 additions & 1,714 deletions docs/components/NgxEditorToolbarComponent.html

Large diffs are not rendered by default.

1,251 changes: 629 additions & 622 deletions docs/components/NgxGrippieComponent.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/dependencies.html

Large diffs are not rendered by default.

783 changes: 392 additions & 391 deletions docs/index.html

Large diffs are not rendered by default.

2,351 changes: 1,174 additions & 1,177 deletions docs/injectables/CommandExecutorService.html

Large diffs are not rendered by default.

1,090 changes: 548 additions & 542 deletions docs/injectables/MessageService.html

Large diffs are not rendered by default.

255 changes: 168 additions & 87 deletions docs/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,112 +6,193 @@ document.addEventListener('DOMContentLoaded', function() {
return el.className && new RegExp("(\\s|^)" + cls + "(\\s|$)").test(el.className);
}

document.getElementById('btn-menu').addEventListener('click', function() {
if (menuCollapsed) {
mobileMenu.style.display = 'none';
} else {
mobileMenu.style.display = 'block';
document.getElementsByTagName('body')[0].style['overflow-y'] = 'hidden';
var processLink = function(link, url) {
if (url.charAt(0) !== '.') {
let prefix = '';
switch(COMPODOC_CURRENT_PAGE_DEPTH) {
case 5:
prefix = '../../../../../';
break;
case 4:
prefix = '../../../../';
break;
case 3:
prefix = '../../../';
break;
case 2:
prefix = '../../';
break;
case 1:
prefix = '../';
break;
case 0:
prefix = './';
break;
}
link.setAttribute('href', prefix + url);
}
menuCollapsed = !menuCollapsed;
});
}

var processMenuLinks = function(links, dontAddClass) {
for (var i = 0; i < links.length; i++) {
var link = links[i];
var linkHref = link.getAttribute('href');
if (linkHref.toLowerCase().indexOf(COMPODOC_CURRENT_PAGE_URL.toLowerCase()) !== -1 && link.innerHTML.indexOf('Getting started') == -1 && !dontAddClass) {
link.classList.add('active');
}
processLink(link, linkHref);

// collapse menu
var classnameMenuToggler = document.getElementsByClassName('menu-toggler'),
faAngleUpClass = 'fa-angle-up',
faAngleDownClass = 'fa-angle-down',
toggleItemMenu = function(e) {
var element = $(e.target),
parent = element[0].parentNode,
parentLink,
elementIconChild;
if (parent) {
if (!$(parent).hasClass('linked')) {
e.preventDefault();
} else {
parentLink = parent.parentNode;
if (parentLink && element.hasClass('link-name')) {
$(parentLink).trigger('click');
}
}
var chapterLinks = document.querySelectorAll('[data-type="chapter-link"]');
processMenuLinks(chapterLinks);
var entityLinks = document.querySelectorAll('[data-type="entity-link"]');
processMenuLinks(entityLinks);
var indexLinks = document.querySelectorAll('[data-type="index-link"]');
processMenuLinks(indexLinks, true);
var entityLogos = document.querySelectorAll('[data-type="compodoc-logo"]');
var processLogos = function(entityLogo) {
for (var i = 0; i < entityLogos.length; i++) {
var entityLogo = entityLogos[i];
if (entityLogo) {
var url = entityLogo.getAttribute('data-src');
if (url.charAt(0) !== '.') {
let prefix = '';
switch(COMPODOC_CURRENT_PAGE_DEPTH) {
case 5:
prefix = '../../../../../';
break;
case 4:
prefix = '../../../../';
break;
case 3:
prefix = '../../../';
break;
case 2:
prefix = '../../';
break;
case 1:
prefix = '../';
break;
case 0:
prefix = './';
break
}
entityLogo.src = prefix + url;
}
elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0];
if (!elementIconChild) {
elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0];
}
if (elementIconChild) {
elementIconChild = $(elementIconChild)
if (elementIconChild.hasClass(faAngleUpClass)) {
elementIconChild.addClass(faAngleDownClass);
elementIconChild.removeClass(faAngleUpClass);
}
}
}
processLogos(entityLogos);

setTimeout(function() {
document.getElementById('btn-menu').addEventListener('click', function() {
if (menuCollapsed) {
mobileMenu.style.display = 'none';
} else {
mobileMenu.style.display = 'block';
document.getElementsByTagName('body')[0].style['overflow-y'] = 'hidden';
}
menuCollapsed = !menuCollapsed;
});

// collapse menu
var classnameMenuToggler = document.getElementsByClassName('menu-toggler'),
faAngleUpClass = 'fa-angle-up',
faAngleDownClass = 'fa-angle-down',
toggleItemMenu = function(e) {
var element = $(e.target),
parent = element[0].parentNode,
parentLink,
elementIconChild;
if (parent) {
if (!$(parent).hasClass('linked')) {
e.preventDefault();
} else {
elementIconChild.addClass(faAngleUpClass);
elementIconChild.removeClass(faAngleDownClass);
parentLink = parent.parentNode;
if (parentLink && element.hasClass('link-name')) {
$(parentLink).trigger('click');
}
}
elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0];
if (!elementIconChild) {
elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0];
}
if (elementIconChild) {
elementIconChild = $(elementIconChild)
if (elementIconChild.hasClass(faAngleUpClass)) {
elementIconChild.addClass(faAngleDownClass);
elementIconChild.removeClass(faAngleUpClass);
} else {
elementIconChild.addClass(faAngleUpClass);
elementIconChild.removeClass(faAngleDownClass);
}
}
}
}
};
};

for (var i = 0; i < classnameMenuToggler.length; i++) {
classnameMenuToggler[i].addEventListener('click', toggleItemMenu, false);
}
for (var i = 0; i < classnameMenuToggler.length; i++) {
classnameMenuToggler[i].addEventListener('click', toggleItemMenu, false);
}

// Scroll to active link
var menus = document.querySelectorAll('.menu'),
i = 0,
len = menus.length,
activeMenu,
activeMenuClass,
activeLink;
// Scroll to active link
var menus = document.querySelectorAll('.menu'),
i = 0,
len = menus.length,
activeMenu,
activeMenuClass,
activeLink;

for (i; i<len; i++) {
if (getComputedStyle(menus[i]).display != 'none') {
activeMenu = menus[i];
activeMenuClass = activeMenu.getAttribute('class').split(' ')[0];
for (i; i<len; i++) {
if (getComputedStyle(menus[i]).display != 'none') {
activeMenu = menus[i];
activeMenuClass = activeMenu.getAttribute('class').split(' ')[0];
}
}
}

if (activeMenu) {
activeLink = document.querySelector('.' + activeMenuClass + ' .active');
if (activeLink) {
var linkType = activeLink.getAttribute('data-type');
var linkContext = activeLink.getAttribute('data-context');
if (linkType === 'entity-link') {
var parentLi = activeLink.parentNode,
parentUl,
parentChapterMenu;
if (parentLi) {
parentUl = parentLi.parentNode;
if (parentUl) {
parentChapterMenu = parentUl.parentNode;
if (parentChapterMenu) {
var toggler = parentChapterMenu.querySelector('.menu-toggler'),
elementIconChild = toggler.getElementsByClassName(faAngleUpClass)[0];
if (toggler && !elementIconChild) {
toggler.click();
if (activeMenu) {
activeLink = document.querySelector('.' + activeMenuClass + ' .active');
if (activeLink) {
var linkType = activeLink.getAttribute('data-type');
var linkContext = activeLink.getAttribute('data-context');
if (linkType === 'entity-link') {
var parentLi = activeLink.parentNode,
parentUl,
parentChapterMenu;
if (parentLi) {
parentUl = parentLi.parentNode;
if (parentUl) {
parentChapterMenu = parentUl.parentNode;
if (parentChapterMenu) {
var toggler = parentChapterMenu.querySelector('.menu-toggler'),
elementIconChild = toggler.getElementsByClassName(faAngleUpClass)[0];
if (toggler && !elementIconChild) {
toggler.click();
}
}
}
}
}
if (linkContext && linkContext === 'sub-entity') {
// Toggle also the master parent menu
var linkContextId = activeLink.getAttribute('data-context-id');
var toggler = activeMenu.querySelector('.chapter.' + linkContextId + ' a .menu-toggler');
if (linkContext && linkContext === 'sub-entity') {
// Toggle also the master parent menu
var linkContextId = activeLink.getAttribute('data-context-id');
var toggler = activeMenu.querySelector('.chapter.' + linkContextId + ' a .menu-toggler');
if (toggler) {
toggler.click();
}
}
} else if (linkType === 'chapter-link') {
var toggler = activeLink.querySelector('.menu-toggler');
if (toggler) {
toggler.click();
}
}
} else if (linkType === 'chapter-link') {
var toggler = activeLink.querySelector('.menu-toggler');
if (toggler) {
toggler.click();
}
setTimeout(function() {
activeMenu.scrollTop = activeLink.offsetTop;
if (activeLink.innerHTML.toLowerCase().indexOf('readme') != -1 || activeLink.innerHTML.toLowerCase().indexOf('overview') != -1) {
activeMenu.scrollTop = 0;
}
}, 300);
}
setTimeout(function() {
activeMenu.scrollTop = activeLink.offsetTop;
if (activeLink.innerHTML.toLowerCase().indexOf('readme') != -1 || activeLink.innerHTML.toLowerCase().indexOf('overview') != -1) {
activeMenu.scrollTop = 0;
}
}, 300);
}
}
}, 0);
});
2 changes: 1 addition & 1 deletion docs/js/search/search_index.js

Large diffs are not rendered by default.

Loading

0 comments on commit f8181bb

Please sign in to comment.