Improved yrules for doc and package