docs.py: create a new list in the preprocessor

Instead of modifying the list passed to the cldoc preprocessor,
create a new list. This allows additional lines to be inserted as
part of the preprocessor phase.