Skip to content

Instantly share code, notes, and snippets.

@wu-lee
Forked from ErikGartner/.treehouse
Last active September 2, 2023 09:53
Show Gist options
  • Save wu-lee/9a341c80b58d3dc95a6e16d8548ec793 to your computer and use it in GitHub Desktop.
Save wu-lee/9a341c80b58d3dc95a6e16d8548ec793 to your computer and use it in GitHub Desktop.
dTree Demo
# Cross-platform formatting config
# See https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
[*.{js,mjs,json,md,css,handlebars,html}]
charset = utf-8
indent_style = space
indent_size = 2

Wallace Family Tree

This is an attempt at mapping out my ancstry on the Wallace family side.

Credits

Data was collected from various members of the Wallace family of Gin-Gin QLD, and collated by me (ick Stokoe).

Software

This uses [dTree][1] - an open source graph library written by Erik Gärtner.

[
{
"name": "Gordon Wallace",
"class": "man",
"textClass": "emphasis",
"marriages": [
{
"spouse": {
"name": "Betty Wallace",
"class": "woman"
},
"children": [
{
"name": "Tony Wallace",
"class": "man",
"marriages": []
},
{
"name": "Barry Wallace",
"class": "man",
"marriages": [
{
"spouse": {
"name": "Janet Woolley (ne Stokoe)",
"class": "woman"
},
"children": [
{
"name": "Nicholas Stokoe",
"class": "man",
"marriages": [
]
}
]
},
{
"spouse": {},
"children": [
{
"name": "Samantha Ann Lewis",
"class": "woman",
"marriages": []
}
]
},
{
"spouse": {},
"children": [
{
"name": "Samantha Bidgood (ne )",
"class": "woman",
"marriages": [
{
"spouse": {
"name": "Ross Bidgood",
"class": "man"
},
"children": [
]
}
]
}
]
}
]
},
{
"name": "Judy Wallace",
"class": "woman"
},
{
"name": "Ricky Wallace",
"class": "man"
}
]
}
]
}
]
{{name}}
{{#if extra.favorite_color}}
<br>({{extra.favorite_color}})
{{/if}}
svg {
font: 10px sans-serif;
}
.linage {
fill: none;
stroke: #000;
}
.marriage {
fill: none;
stroke: black;
}
.man {
background-color: whitesmoke;
border-style: solid;
border-width: 1px;
}
.woman {
background-color: whitesmoke;
border-style: solid;
border-width: 1px;
}
.emphasis{
font-style: italic;
}
p {
padding:0;
margin:0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment