See the changelog plugin's `index.js` file about this.

This is for changelog automation inside Docusaurus.