Skip to content

Latest commit

 

History

History

documentation-check

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Documentation - checks for links / images / anchors

I was looking at https://github.com/keycloak/keycloak-documentation and noticed nice feature they have implemented.

When the documentation is generated there are checka for its validity - includes, links, images, anchors

I believe similar checks should be implemented any documentation.

Migration PoC

Goal of the experiment is to check https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/7.0.0_release_notes/ content

Steps you need to do:

  1. Get keycloak-documentation
git clone https://github.com/keycloak/keycloak-documentation.git
cd keycloak-documentation
  1. Add mapping
$ git diff
diff --git a/tests/src/test/resources/guide-url-fragments-community b/tests/src/test/resources/guide-url-fragments-community
index a5c8418..8688840 100644
--- a/tests/src/test/resources/guide-url-fragments-community
+++ b/tests/src/test/resources/guide-url-fragments-community
@@ -5,4 +5,5 @@ securing_apps=securing_apps
 server_admin=server_admin
 server_development=server_development
 server_installation=server_installation
-upgrading=upgrading
\ No newline at end of file
+upgrading=upgrading
+7.0.0_release_notes=7.0.0_release_notes
  1. Add test
cat tests/src/test/java/org/keycloak/documentation/test/RN700Test.java
package org.keycloak.documentation.test;

public class RN700Test extends AbstractDocsTest {

    @Override
    public String getGuideDirName() {
        return "7.0.0_release_notes";
    }

}
  1. Run test which specifies guideBaseUrl
cd tests
mvn test -Dtest=RN700Test -DguideBaseUrl=https://access.redhat.com/docuentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/