Remove comments logic
Migrated issue
Reported by: esolitos
Problem/Motivation
Currently each minor release of Drupal 8 creates a separate documentation page on api.drupal.org. This is a very good thing when it comes to code documentation, however creates an issue with the comments.
Very good tips and tricks are gathered from user comments on the class/method/function page on that site and this was very easy in D7 since the function/hook documentation page never changed from D7 release day, so several years of comments are accumulated per each page. This will not happen with D8, considering that every ~6months a new minor release will be generated and will not have any reference to the comments done in the previous version, even 'tho most of the comments will be still valid for the new release as well.
Naturally the comments aren't lost, they are simply in the "old" page, which is still accessible, but the need to navigate through all the minor version pages to check if there are comments it's definitely a bad DX experience.
Proposed resolution
I have two options in mind as solutions:
1. Add a "comment count" to the page link:

2. Share the comments among D8 major release and add a text like "api version X.y" to ad reference on which page is the comment posted on.

Remaining tasks
TBD
User interface changes
Depending on chosen solution: TBD!