Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demos and docs to Bootstrap 5.x #3300

Merged
merged 9 commits into from
Dec 6, 2023
81 changes: 42 additions & 39 deletions docs/doxy-boot.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,68 @@
$(document).ready(function() {

$("div.headertitle").addClass("page-header");
$("div.headertitle").addClass("pb-2 mt-4 mb-2 border-bottom");
$("div.title").addClass("h1");
$('li > a[href="index.html"] > span').before("<i class='fa fa-cog'></i> ");

$('li > a[href="index.html"] > span').before("<i class='fa-solid fa-gear'></i> ");
// $('li > a[href="index.html"] > span').text("CoActionOS");
$('li > a[href="modules.html"] > span').before("<i class='fa fa-square'></i> ");
$('li > a[href="namespaces.html"] > span').before("<i class='fa fa-bars'></i> ");
$('li > a[href="annotated.html"] > span').before("<i class='fa fa-list-ul'></i> ");
$('li > a[href="classes.html"] > span').before("<i class='fa fa-book'></i> ");
$('li > a[href="inherits.html"] > span').before("<i class='fa fa-sitemap'></i> ");
$('li > a[href="functions.html"] > span').before("<i class='fa fa-list'></i> ");
$('li > a[href="functions_func.html"] > span').before("<i class='fa fa-list'></i> ");
$('li > a[href="functions_vars.html"] > span').before("<i class='fa fa-list'></i> ");
$('li > a[href="functions_enum.html"] > span').before("<i class='fa fa-list'></i> ");
$('li > a[href="functions_eval.html"] > span').before("<i class='fa fa-list'></i> ");
$('img[src="ftv2ns.png"]').replaceWith('<span class="label label-danger">N</span> ');
$('img[src="ftv2cl.png"]').replaceWith('<span class="label label-danger">C</span> ');
$("ul.tablist").addClass("nav nav-pills nav-justified");
$('li > a[href="modules.html"] > span').before("<i class='fa-solid fa-square'></i> ");
$('li > a[href="namespaces.html"] > span').before("<i class='fa-solid fa-bars'></i> ");
$('li > a[href="annotated.html"] > span').before("<i class='fa-solid fa-list-ul'></i> ");
$('li > a[href="classes.html"] > span').before("<i class='fa-solid fa-book'></i> ");
$('li > a[href="inherits.html"] > span').before("<i class='fa-solid fa-sitemap'></i> ");
$('li > a[href="functions.html"] > span').before("<i class='fa-solid fa-list'></i> ");
$('li > a[href="functions_func.html"] > span').before("<i class='fa-solid fa-list'></i> ");
$('li > a[href="functions_vars.html"] > span').before("<i class='fa-solid fa-list'></i> ");
$('li > a[href="functions_enum.html"] > span').before("<i class='fa-solid fa-list'></i> ");
$('li > a[href="functions_eval.html"] > span').before("<i class='fa-solid fa-list'></i> ");
$('img[src="ftv2ns.png"]').replaceWith('<span class="badge bg-danger">N</span> ');
$('img[src="ftv2cl.png"]').replaceWith('<span class="badge bg-danger">C</span> ');

$("ul.tablist").addClass("nav nav-pills nav-fill");
$("ul.tablist").css("margin-top", "0.5em");
$("ul.tablist").css("margin-bottom", "0.5em");
$("li.current").addClass("active");
$("ul.tablist > li").addClass("nav-item");
$("ul.tablist > li > a").addClass("nav-link");
$("li.current").children().addClass("active");
$("iframe").attr("scrolling", "yes");

$("#nav-path > ul").addClass("breadcrumb");

$("table.params").addClass("table");
$("div.ingroups").wrapInner("<small></small>");
$("div.ingroups > small > a").addClass("text-muted");
$("div.levels").css("margin", "0.5em");
$("div.levels > span").addClass("btn btn-default btn-xs");
$("div.levels > span").addClass("btn btn-secondary btn-sm");
$("div.levels > span").css("margin-right", "0.25em");

$("table.directory").addClass("table table-striped");
$("div.summary > a").addClass("btn btn-default btn-xs");
$("div.summary > a").addClass("btn btn-secondary btn-sm");
$("table.fieldtable").addClass("table");
$(".fragment").addClass("well");
$(".memitem").addClass("panel panel-default");
$(".memproto").addClass("panel-heading");
$(".memdoc").addClass("panel-body");
$("span.mlabel").addClass("label label-info");
$(".fragment").addClass("card card-body bg-gray");
$(".memitem").addClass("card");
$(".memproto").addClass("card-header");
$(".memdoc").addClass("card-body");
$("span.mlabel").addClass("badge bg-info");

$("table.memberdecls").addClass("table");
$("[class^=memitem]").addClass("active");
$("div.ah").addClass("btn btn-default");

$("div.ah").addClass("btn btn-secondary");
$("span.mlabels").addClass("pull-right");
$("table.mlabels").css("width", "100%")
$("td.mlabels-right").addClass("pull-right");

$("div.ttc").addClass("panel panel-info");
$("div.ttname").addClass("panel-heading");
$("div.ttdef,div.ttdoc,div.ttdeci").addClass("panel-body");
$('div.tabs').addClass('container well');
$('div.tabs2').addClass('container well');
$('div.tabs3').addClass('container well');
$("div.ttc").addClass("card card-info");
$("div.ttname").addClass("card-header");
$("div.ttdef,div.ttdoc,div.ttdeci").addClass("card-body");

$('div.tabs').addClass('container card card-body bg-gray mb-3');
$('div.tabs2').addClass('container card card-body bg-gray mb-3');
$('div.tabs3').addClass('container card card-body bg-gray mb-3');
$('div.header').addClass('container');
$('div.contents').addClass('container');
$('div.groupHeader').addClass('alert-link').parent().parent().addClass('alert alert-info');

$('#MSearchBox').remove();//.parent().appendTo('#topmenu');

$('code').each(function() { $(this).html($(this).html().replace("–", "--")); } );
Expand Down
55 changes: 27 additions & 28 deletions docs/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,46 @@
<meta name="generator" content="Doxygen $doxygenversion"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>$title</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js"></script>
<script type="text/javascript" src="$relpath^dynsections.js"></script>
$treeview
$search
$mathjax
$extrastylesheet
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/cerulean/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.3.2/cerulean/bootstrap.min.css" rel="stylesheet">
<link href="css/demo.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->

<a href="https://github.com/meetecho/janus-gateway"><img style="position: absolute; top: 0; left: 0; border: 0; z-index: 1001;" src="forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
<a href="https://github.com/meetecho/janus-gateway"><img style="position: absolute; top: 0; left: 0; border: 0; z-index: 2001;" src="forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>

<nav class="navbar navbar-default navbar-static-top">
<div class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href=".">$projectname</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="https://janus.conf.meetecho.com/">Home</a></li>
<li><a href="https://janus.conf.meetecho.com/demos.html">Demos</a></li>
<li class="active"><a href="index.html">Documentation</a></li>
<li><a href="https://janus.conf.meetecho.com/citeus.html">Papers</a></li>
<li><a href="https://janus.conf.meetecho.com/support.html">Need help?</a></li>
<li><a href="https://janus-legacy.conf.meetecho.com/">Janus (0.x)</a></li>
<li><a class="januscon" target="_blank" href="https://januscon.it">JanusCon!</a></li>
<a class="navbar-brand" href="https://janus.conf.meetecho.com/">$projectname</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target=".navbar-collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarResponsive">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="https://janus.conf.meetecho.com/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="https://janus.conf.meetecho.com/">Demos</a></li>
<li class="nav-item"><a class="nav-link active" href="index.html">Documentation</a></li>
<li class="nav-item"><a class="nav-link" href="https://janus.conf.meetecho.com/citeus.html">Papers</a></li>
<li class="nav-item"><a class="nav-link" href="https://janus.conf.meetecho.com/support.html">Need help?</a></li>
<li class="nav-item"><a class="nav-link" href="https://janus-legacy.conf.meetecho.com/">Janus (0.x)</a></li>
<li class="nav-item"><a class="nav-link januscon" target="_blank" href="https://januscon.it">JanusCon!</a></li>
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link meetecho-logo" target="_blank" href="https://www.meetecho.com">
<img src="meetecho-logo.png"/>
</a>
</li>
</ul>
<div class="navbar-header navbar-right">
<ul class="nav navbar-nav">
<li><a target="_blank" href="https://www.meetecho.com" class="navbar-link meetecho-logo"><img src="meetecho-logo.png"/></a></li>
</ul>
</div>
</div>
</div>
</nav>
</div>
Loading