Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions Buildings/Resources/Documentation/userGuide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ html:
regressiontest: clean
@echo "Verify whether all files compile and no uncommitted changes exist"
@rm -rf virEnv
python -m venv virEnv
source virEnv/bin/activate
pip install -r requirements.txt --no-deps
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo "Updating logo URLs in build directory..."
for ff in $$(find build -name "*.html"); do \
sed -i '/navbar-brand/ s/$$/<img src="_static\/lbl-logo.png">/' $$ff; \
done;
python3 -m venv virEnv
source virEnv/bin/activate && \
pip install -r requirements.txt --no-deps && \
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html && \
rm -rf virEnv
git diff --exit-code .

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/* Compatability shim for jQuery and underscores.js.
*
* Copyright Sphinx contributors
* Released under the two clause BSD licence
*/

/**
* small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/
jQuery.urldecode = function(x) {
if (!x) {
return x
}
return decodeURIComponent(x.replace(/\+/g, ' '));
};

/**
* small helper function to urlencode strings
*/
jQuery.urlencode = encodeURIComponent;

/**
* This function returns the parsed url parameters of the
* current request. Multiple values per key are supported,
* it will always return arrays of strings for the value parts.
*/
jQuery.getQueryParameters = function(s) {
if (typeof s === 'undefined')
s = document.location.search;
var parts = s.substr(s.indexOf('?') + 1).split('&');
var result = {};
for (var i = 0; i < parts.length; i++) {
var tmp = parts[i].split('=', 2);
var key = jQuery.urldecode(tmp[0]);
var value = jQuery.urldecode(tmp[1]);
if (key in result)
result[key].push(value);
else
result[key] = [value];
}
return result;
};

/**
* highlight a given string on a jquery object by wrapping it in
* span elements with the given class name.
*/
jQuery.fn.highlightText = function(text, className) {
function highlight(node, addItems) {
if (node.nodeType === 3) {
var val = node.nodeValue;
var pos = val.toLowerCase().indexOf(text);
if (pos >= 0 &&
!jQuery(node.parentNode).hasClass(className) &&
!jQuery(node.parentNode).hasClass("nohighlight")) {
var span;
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
if (isInSVG) {
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
} else {
span = document.createElement("span");
span.className = className;
}
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
document.createTextNode(val.substr(pos + text.length)),
node.nextSibling));
node.nodeValue = val.substr(0, pos);
if (isInSVG) {
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
var bbox = node.parentElement.getBBox();
rect.x.baseVal.value = bbox.x;
rect.y.baseVal.value = bbox.y;
rect.width.baseVal.value = bbox.width;
rect.height.baseVal.value = bbox.height;
rect.setAttribute('class', className);
addItems.push({
"parent": node.parentNode,
"target": rect});
}
}
}
else if (!jQuery(node).is("button, select, textarea")) {
jQuery.each(node.childNodes, function() {
highlight(this, addItems);
});
}
}
var addItems = [];
var result = this.each(function() {
highlight(this, addItems);
});
for (var i = 0; i < addItems.length; ++i) {
jQuery(addItems[i].parent).before(addItems[i].target);
}
return result;
};

/*
* backward compatibility for jQuery.browser
* This will be supported until firefox bug is fixed.
*/
if (!jQuery.browser) {
jQuery.uaMatch = function(ua) {
ua = ua.toLowerCase();

var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
/(msie) ([\w.]+)/.exec(ua) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
[];

return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
jQuery.browser = {};
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ body{
color: #022e4d;
border-radius: 4px;
box-shadow: 2px -2px 5px 0px rgba(0,0,0,0.4);
padding-top: 100px;
}

.starter-template {
Expand All @@ -21,18 +22,55 @@ body{
top: 5px;
}
.navbar {
height: 82px;
max-height: 82px;
width: 100%;
left: 0;
right: 0;
height: 80px;
max-height: 80px;
box-sizing: border-box;
margin: 0;
padding: 0;
/* border: none;*/
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;user-select:none;
}

.navbar > .container-fluid {
display: flex;
align-items: center;
width: 100%;
box-sizing: border-box;
padding: 0 15px;
}

.navbar > .container-fluid .navbar-brand,
.navbar-brand {
display: flex;
align-items: center;
padding: 10px 15px;
height: auto;
min-height: 60px;
margin: 0;
}

.navbar-logo {
max-height: 60px;
height: 60px;
width: auto;
margin-right: 20px;
display: inline-block;
vertical-align: middle;
}


.navbar .navbar-nav{
background: #f8f8f8;
margin-bottom: 0px;
margin-left: -20px;
/* margin-left: -15px; */
/* margin-right: -15px; */
/* padding-left: 20px; */
width: 100%;
}


Expand Down Expand Up @@ -71,8 +109,61 @@ body{
.navbar-collapse{
border-style: none;
position: absolute;
top: 50px;
top: 80px;
z-index: 100;
overflow: visible;
width: calc(100% - 30px);
left: 15px;
}

/* Dropdown menu styling */
.navbar .navbar-nav > .dropdown {
position: relative;
}

.dropdown-toggle {
position: relative;
}

.dropdown-menu {
display: none !important;
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 0;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.dropdown-menu.show {
display: block !important;
}

.open > .dropdown-menu,
.navbar .navbar-nav > .open > .dropdown-menu {
display: block !important;
}

.dropdown-toggle::after {
display: inline-block;
width: 0;
height: 0;
margin-left: 0.385em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
border-left: 0.3em solid transparent;
}
/* ---------------------------------- */

Expand All @@ -81,12 +172,6 @@ img{
max-width: 100%;
}

.navbar > .container-fluid .navbar-brand > img{
position: absolute;
left: 10px;
height: 30px;
}

.footer{
/* background-color: white;
border-color: white; */
Expand Down Expand Up @@ -199,5 +284,98 @@ table.citation{
.page-content{
margin: 10px;
}

/* Adjust main content for fixed sidebar */
.body.col-md-9 {
margin-left: 26%;
margin-top: 10px;
}

/* Position sidebar column to not interfere */
.col-md-3 {
width: 0;
padding: 0;
margin: 0;
}

/* Sidebar list styling fix */
.bs-sidenav {
position: fixed;
top: 100px;
left: 15px;
width: 25%;
max-height: calc(100vh - 100px);
overflow-y: auto;
overflow-x: hidden;
}

.bs-sidenav ul {
list-style: none;
padding-left: 0;
margin-left: 0;
}

.bs-sidenav li {
list-style: none;
padding-left: 0;
margin-left: 0;
}

.bs-sidenav > ul > li {
list-style: none;
padding-left: 0;
margin-left: 0;
line-height: 1.5;
}

.bs-sidenav > ul > li > a {
display: block;
padding-left: 0;
margin-left: 0;
}

.bs-sidenav ul ul {
list-style: none;
padding-left: 20px;
margin-left: 0;
}

.bs-sidenav ul ul li {
list-style: none;
padding-left: 0;
margin-left: 0;
}

/* Fix for navigation list items (Previous/Next Chapter) outside ul */
.bs-sidenav > li {
list-style: none;
padding-left: 0;
margin-left: 0;
display: block;
}

.bs-sidenav > li > a {
display: block;
color: #716b7a;
padding: 5px 20px;
text-decoration: none;
}

.bs-sidenav > li > a:hover,
.bs-sidenav > li > a:focus {
text-decoration: none;
background-color: #e5e3e9;
border-right: 1px solid #dbd8e0;
}
/* End stylesheet from main web site -------------------- */
/* ------------------------------------------------------ */


/* Fix mobile dropdown expansion for globaltoc's nested <ul> */
@media (max-width: 767px) {
.navbar-logo {
max-height: 45px;
height: 45px;
margin-right: 15px;
}
}

Large diffs are not rendered by default.

Loading
Loading