Migrate documentation script out of Lime