tektsu / gedcom2hugo Goto Github PK
View Code? Open in Web Editor NEWGenerate Hugo content from a GEDCOM 5.5 file
License: MIT License
Generate Hugo content from a GEDCOM 5.5 file
License: MIT License
Hi @tektsu
after some minor fixes I got your code running, even on a very nasty FTM gedcom file -seems there was a CLI update in the meantime with breaking changes.
I still need to invest some time to adjust it to my requirements but it is a perfect starter!
Therefore and first of: Thank you very much for your effort and making that code publicly available!
I am now wondering, which hugo template you were / are using to render the generated files?
Thanks in advance and best wishes to Phoenix
Markus
Hi!
I gave this a spin tonight, but hit this panic. I used my own gedcom file, but was able to recreate the panic with the GEDCOM 5.5 Torture Test Files:
$ gedcom2hugo --gedcom testdata/AdamIsrael.ged
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
github.com/tektsu/gedcom.makeIndividualParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc420096238, 0x0)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:745 +0x2c7e
github.com/tektsu/gedcom.(*Decoder).popParser(0xc4200d6040, 0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc42000a4a0, 0x0)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:107 +0xae
github.com/tektsu/gedcom.makeCitationParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x40f879, 0xc42000a4c0)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:368 +0xba3
github.com/tektsu/gedcom.(*Decoder).popParser(0xc4200d6040, 0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:107 +0xae
github.com/tektsu/gedcom.makeDataParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc42004f780, 0x4)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:404 +0x453
github.com/tektsu/gedcom.(*Decoder).popParser(0xc4200d6040, 0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc42004f780, 0x43fe8f)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:107 +0xae
github.com/tektsu/gedcom.makeTextParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:1127 +0x30f
github.com/tektsu/gedcom.(*Decoder).scan(0xc4200d6040, 0xc4200c6000)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:75 +0x20b
github.com/tektsu/gedcom.(*Decoder).Decode(0xc4200d6040, 0xc42008a510, 0xc4200d6040, 0x46cfce)
/home/stone/go/src/github.com/tektsu/gedcom/decoder.go:46 +0x446
github.com/tektsu/gedcom2hugo/cmd.readGedcom(0xc4200c42c0, 0xc42008a720, 0x602678, 0x5)
/home/stone/go/src/github.com/tektsu/gedcom2hugo/cmd/generate.go:126 +0x1a8
github.com/tektsu/gedcom2hugo/cmd.Generate(0xc4200c42c0, 0xc4200c42c0, 0xc42004fb77)
/home/stone/go/src/github.com/tektsu/gedcom2hugo/cmd/generate.go:41 +0x6ee
github.com/urfave/cli.HandleAction(0x5bcf00, 0x612460, 0xc4200c42c0, 0xc4200ec180, 0x0)
/home/stone/go/src/github.com/urfave/cli/app.go:501 +0xc8
github.com/urfave/cli.(*App).Run(0xc4200f6000, 0xc42008a060, 0x3, 0x3, 0x0, 0x0)
/home/stone/go/src/github.com/urfave/cli/app.go:268 +0x60c
main.main()
/home/stone/go/src/github.com/tektsu/gedcom2hugo/main.go:48 +0x493
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.