Issue #13097: Split annotation xdocs into separate pages#13103
Issue #13097: Split annotation xdocs into separate pages#13103romani merged 4 commits intocheckstyle:masterfrom stoyanK7:issue/13097-annotations
Conversation
|
Checks will fail in a few minutes, there are a couple of tests that would need attention(rewriting, deleting, I don't know yet) |
| @@ -1,1571 +1,94 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
There was a problem hiding this comment.
I would personally rename this file to xdocs/checks/annotation/index.html. What do you think?
|
Github, generate site |
|
Failures to be addressed: https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=14476&view=logs&j=c902ebb4-c9f8-5f09-4e17-ff78fbbc842e&t=9ca98c81-ff64-58f0-9d03-a23ac1c4a111&l=1023 |
|
@stoyanK7 , can you apply your fix for tables rows to be vertical in check group index pages? |
|
@romani The table is available at https://stoyank7.github.io/checks.html. Or do you want me to add the fix in this PR too? |
src/test/java/com/puppycrawl/tools/checkstyle/internal/XdocsPagesTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/internal/utils/XdocUtil.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/internal/utils/XdocUtil.java
Outdated
Show resolved
Hide resolved
Add it to this PR, it can be as separate commit if that is convenient for you to keep it separate. |
|
There are 2 remaining failing tests. Both of them are looking for a section for each module but we remove sections and use table now. @romani @nrmancuso Before I extend these tests, is this what we are going with? A table like the above? |
Done. |
I think test is just strict enforcement of doc to be present. Back in several years, web site was very very very inconsistent. So such hack in Junit helped put situation under control. Now layout are changing, we do not expect new Checks in near future, so we disable this check or some part of it and create issue to come back to it at the end , when we will have already final layout. It was part of project to setup best practices ( wiki page) and enforce some of them. Please create create two issues to deal with it later at summer. |
|
Not enough. |
Done. As #13117 gets approved and merged, I will rebase and push the latest changes and change to "Ready for review." |
|
@stoyanK7 please rebase and prepare for final reivew |
|
Github, generate site |
src/test/java/com/puppycrawl/tools/checkstyle/internal/XdocsPagesTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/internal/utils/XdocUtil.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/internal/utils/XdocUtil.java
Show resolved
Hide resolved
|
Github, generate site |
|
I like layout. But we can definitely this in separate PR. If you agree, please create issue to deal with this later. Created: #13195 |
Let's keep it for now, and we will rethink on it later on. Created: #13194 |
romani
left a comment
There was a problem hiding this comment.
Ok to merge.
I hope we can fix all issues separately before end of month, to not damage user experience
This did not happen in the production page, what caused this change in this PR? Is this the same issue as the missing JS?
Conflicting statements. |
So what is the point of a page that just contains links to other pages? We already had https://checkstyle.org/checks.html and it made sense since it was our master list. I don't see users saying "I wonder which of these checks are only connected to Annotations". Also, are we keeping the master list as well as adding these sub-lists? So we are going to have to verify all of them are correct and always up to date. Also, I don't see any tests being written here. Is there another thing being delayed and is there an issue to do this?
It is about putting things of a similar subject together. I am not talking about moving the entire documentation to the new page. Just add a simple blurb and link. We are reworking documentation already, I see it makes sense to rework some of the other pages that connect to this.
Why? |
|
Still seeing this as my points so far:
======= From looking at the new site generation, https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/8cea5c0_2023162451/checks/annotation/annotationlocation.html#AnnotationLocation
This is not related to your changes, but we should remove the double period in the copyright on the bottom right. |
It is innovation of this PR, that is visible only from mobile phone. I like it , but it needs minor improvement.
I am ok with regression unit end of month for sure and even until end of year.
For now just limitation on our web site structure, and xdoc model. I created context section a long time ago to show all in group, it was very useful. Especially for javadoc group.
There is no automation or any validation in this PR, as we try all agree on how it will look like, so automation to enforce can be done later on in separate issue and PR. We already have issue to think validation.
We can discuss it separately. I do not know what to put there. I do not see it at all, but may be you can show us what you mean. I still believe that better to keep usage doc separately from development doc. This my belief, blocks my mind to accept your idea, but may be I need small PR to show how you see it.
I don't know, this how my brain works, I use it/content section all the time. We can look at history, it might be some feedback from user guide me to spend time to make it. I remember it was not simple to do.
Please provide text to put. I do not know what is good to put here.
Left panel shows location, as in all other pages . Please do image to point where you want more links , and share why left panel is not working for you.
This issue even before this PR. I tried to investigate why it happens long time ago, but it is from site plugin , there is no content that we can change, or I do not know how to do this.
I don't understand. Please point more explicitly.
We have separate issues for this. Let's focus on big picture of this update. After merge of this PR we can start fixing all that issues in parallel, to ease development and review. |
|
@rnveach , please help us to unblock this PR and let us be on same page, let us know if something is not covered by extra issue |
|
Github, generate website |
|
all works good. |
This should be connected to the issue we opened. We should also add more details to it about ==== I am not really against this, I just think more could be done for it either here or in new issues. If it is not done here, then I would like to see new issues added. |
Done.
I added some brief explanation on how it came to be at #13190 (comment) |
|
@romani All these errors are external links. Linkcheck is failing in other PRs that are not related to docs too. |
|
As stated in #13214 (comment), Stackoverflow is having issues, that's why CI is red. |
|
Ok, let's move forward. |


Part of #13097