How do you hide recent documents on Mac dock?

Read of a history(?) extension that could be used in the past so that documents wouldn’t show up on the Mac dock but it hasn’t been upgraded in several years and it says it doesn’t work on later versions. I see the File/Recent Docs menu (when right-clicked on the dock LO icon) that can be cleared from the top menu once the program’s open but that doesn’t help with the long list of docs that still shows when you just right click on the LO icon in the Mac/El Capitan dock. Any ideas? Thx.