Update Pkg1 to Pkg.generate in docs solves #4500
Merge pull request #4504 from bartolsthoorn/patch-1

Update Pkg1 to Pkg.generate in docs solves #4500