Commit f7206f62 authored by stuart nelson's avatar stuart nelson

Ditch sidebar layout

parent 5a3e1d45
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
title: Routing tree editor title: Routing tree editor
sort_rank: 4 sort_rank: 4
nav_icon: sliders nav_icon: sliders
layout: docs
--- ---
<style> <style>
body { .routing-table {
font: 12px sans-serif; font: 12px sans-serif;
} }
......
// Setup // Setup
// Modify the diameter to expand/contract space between nodes. // Modify the diameter to expand/contract space between nodes.
var anchor = document.querySelector(".doc-content").parentElement; var anchor = document.querySelector(".page-header").parentElement;
var diameter = anchor.clientWidth; var diameter = anchor.clientWidth;
var color = "#e6522c"; var color = "#e6522c";
...@@ -39,10 +39,11 @@ function parseSearch(searchString) { ...@@ -39,10 +39,11 @@ function parseSearch(searchString) {
function resetSVG() { function resetSVG() {
d3.select(anchor).select("svg").remove() d3.select(anchor).select("svg").remove()
svg = d3.select(anchor).append("svg") svg = d3.select(anchor).append("svg")
.classed("routing-table", true)
.attr("width", diameter) .attr("width", diameter)
.attr("height", diameter - 150) .attr("height", diameter - 150)
.append("g") .append("g")
.attr("transform", "translate(" + diameter / 2 + "," + (diameter / 2 - 250) + ")"); .attr("transform", "translate(" + diameter / 2 + "," + (diameter / 2 - 200) + ")");
} }
// Click handler for reading config.yml // Click handler for reading config.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment