This collection was built in a series of OmniGraffle files.
The Graffle files can be downloaded here:
The web site is generated from those files by exporting content in PDF, PNG, and SVG format, and then running a set of build scripts which process and upload the exported files.
A copy of the build scripts is available at http://heraldicart.org/build.zip.
To generate the heraldicart.org web site and related materials you need:
• A Mac running a recent version of MacOS.
• OmniGraffle 7 Pro ($199 from https://www.omnigroup.com/omnigraffle)
• The free software listed below.
• A working directory containing the Graffle files and build scripts.
Specifically, the working directory should contain:
• a folder named "Book" with the the individual Graffle files.
• a folder named "Build" with the build scripts and static files.
Install Chrome, or make sure your existing installation is on version 59 or later.
Download from https://www.google.com/chrome/
Download from https://brew.sh or run
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Download from https://nodejs.org/en/download/ or run
$ brew install node
$ brew install yarn
$ yarn add puppeteer
Make sure CPAN is configured
If you've never configured CPAN before, you'll be asked if you'd like to configure automatically; press return for yes, and when asked "What approach do you want?," either press return to choose local::lib, or choose sudo and run the below commands:
cpan> o conf makepl_arg "INSTALLBIN=/usr/local/bin INSTALLSCRIPT=/usr/local/bin"
cpan> o conf commit
The build folder includes a Perl script named make.pl that reads and combines the source files to create the web site. There's also a related configuration file, make.conf, which contains definitions used by the script.
Adjust the configuration in Build/make.conf to include your web hosting target in the "[Web Destination]" section. If the web hosting target is on a remote server, you may want to set up SSH keys or hold a session open so that you're not prompted to re-enter your password every time you re-generate the site.
Within the working folder, make empty folders named PNG and SVG.
In OmniGraffle, open each file and export it three times using the default file name and the following settings:
• As PDF in "Entire Document" and "Multi-Page" mode into the Book folder.
• As PNG in "Artboards only" mode at 300 DPI into the PNG folder.
• As SVG in "Artboards only" mode into the SVG folder.
• As PDF in "Artboards only" mode set to "Individual Files" into the PDF folder.
Any time you edit one of the Graffle files, export it again in the same way.
(I have my fingers crossed that Omni will eventually expose the artboard export feature to AppleScript so that this process can be automated.)
Then run "perl Build/make.pl" and wait a few minutes for it to finish. The amount of time required depends on how many of the source files have been edited since the last run; on my computer this process takes around fifteen minutes if starting from scratch, and about two minutes if running it again without any changes to the source documents.
The build process will generate a file named Output/index.txt; if you've added or renamed pages, you should copy-n-paste this into the relevant pages of the Vol0 Graffle file and re-run the export and build process.
The Graffle files are currently about 225 MB. The full web build is about 2 GB for over eleven thousand files.