Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
f7206f62
Commit
f7206f62
authored
Apr 11, 2016
by
stuart nelson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ditch sidebar layout
parent
5a3e1d45
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
routing-tree-editor.html
content/docs/alerting/routing-tree-editor.html
+1
-2
routing-tree.js
static/routing-tree.js
+3
-2
No files found.
content/docs/alerting/routing-tree-editor.html
View file @
f7206f62
...
...
@@ -2,10 +2,9 @@
title: Routing tree editor
sort_rank: 4
nav_icon: sliders
layout: docs
---
<style>
body
{
.routing-table
{
font
:
12px
sans-serif
;
}
...
...
static/routing-tree.js
View file @
f7206f62
// Setup
// 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
color
=
"
#e6522c
"
;
...
...
@@ -39,10 +39,11 @@ function parseSearch(searchString) {
function
resetSVG
()
{
d3
.
select
(
anchor
).
select
(
"
svg
"
).
remove
()
svg
=
d3
.
select
(
anchor
).
append
(
"
svg
"
)
.
classed
(
"
routing-table
"
,
true
)
.
attr
(
"
width
"
,
diameter
)
.
attr
(
"
height
"
,
diameter
-
150
)
.
append
(
"
g
"
)
.
attr
(
"
transform
"
,
"
translate(
"
+
diameter
/
2
+
"
,
"
+
(
diameter
/
2
-
2
5
0
)
+
"
)
"
);
.
attr
(
"
transform
"
,
"
translate(
"
+
diameter
/
2
+
"
,
"
+
(
diameter
/
2
-
2
0
0
)
+
"
)
"
);
}
// Click handler for reading config.yml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment