elliotchance / gedcom

👪 A Go library and CLI tools for encoding, decoding, traversing, merging, comparing, querying and publishing GEDCOM files.
MIT License
96 stars 21 forks source link

gedcom2html: Faster and customizable rendering #266

Closed elliotchance closed 5 years ago

elliotchance commented 5 years ago

The code to publish a website has now been moved into the html package as Publisher. This means that the gedcom2html is much lighter.

The Publisher can now be customised to write to the file system, or any other storage mechanism and it can now render the website in parallel making it much faster. This can be configured with the new "-jobs" option.

The "-checksum" option has been removed from the gedcom2html because it was already problematic at best and not needed now that the rendering process is much faster.


This change is Reviewable

codecov-io commented 5 years ago

Codecov Report

Merging #266 into master will increase coverage by 0.85%. The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #266      +/-   ##
=========================================
+ Coverage   64.65%   65.5%   +0.85%     
=========================================
  Files         204     207       +3     
  Lines        6538    6636      +98     
=========================================
+ Hits         4227    4347     +120     
+ Misses       2185    2156      -29     
- Partials      126     133       +7
Impacted Files Coverage Δ
html/source_page.go 0% <0%> (ø) :arrow_up:
html/place_page.go 0% <0%> (ø) :arrow_up:
html/source_list_page.go 0% <0%> (ø) :arrow_up:
html/publish_header.go 0% <0%> (ø) :arrow_up:
html/core/directory_file_writer.go 0% <0%> (ø)
html/core/file.go 0% <0%> (ø)
html/individuals.go 100% <100%> (ø) :arrow_up:
html/surname_list_page.go 31.25% <100%> (+31.25%) :arrow_up:
html/place_list_page.go 12.19% <100%> (+12.19%) :arrow_up:
html/individual_list_page.go 9.83% <16.66%> (+9.83%) :arrow_up:
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f143e50...fb1d111. Read the comment docs.