automatic documentation.
Your "structure" in your xmrig codes is standard.
Why don't you prepare a code that automatically writes the algorithm and cmake and commands etc parameters from within your code. 

such a code can scan the code every time you release it and make the necessary changes to the necessary documents, so you don't have to work on editing documents and removing unnecessary ones every time.

You don't have to deal with it once and never have to deal with it again.

You can achieve this by putting a custom definition in the code.

