diff options
author | 2017-12-08 23:45:21 +0100 | |
---|---|---|
committer | 2017-12-08 23:45:21 +0100 | |
commit | 6aaaea6df61b853bfe3f9efe2a5e9b18f698aecd (patch) | |
tree | af235cc155bcc6dc1467b09428d87d82c9b68f59 /site/static/js/docs.js | |
parent | 2fbaa301c7539d156763c3abc80a8ca68f4b1983 (diff) | |
parent | 84c61bdf6399a3ddcfce86d340a40d73ec4fd32e (diff) |
Merge branch 'master' of github.com:automotive-grade-linux/docs-agl into sandbox/nieutin
Diffstat (limited to 'site/static/js/docs.js')
-rw-r--r-- | site/static/js/docs.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/site/static/js/docs.js b/site/static/js/docs.js index 1309525..9247cd3 100644 --- a/site/static/js/docs.js +++ b/site/static/js/docs.js @@ -139,4 +139,17 @@ $(document).ready(function () { element.innerText = ''; } }); + + $('#page-toc-source').each(function(index, element) { + // Process section-xxx (eg. section-note or section-config) in order + // to apply right style (see webdocs-agl/site/static/styles/scss/_sections.scss ) + ['section-note', 'section-config', 'section-warning', 'section-todo'].forEach(function (sec) { + try { + res = element.innerHTML.replace(new RegExp('<!--[ ]*end-' + sec + '[ ]*-->', 'g'), '</div>'); + element.innerHTML = res.replace(new RegExp('<!--[ ]*' + sec + '[ ]*-->', 'g'), '<div class="' + sec +'">'); + } catch(err) { } + }); + }); + + }); |