Skip to content

[core] Host own javadoc on docs.pmd-code.org#2417

Merged
adangel merged 7 commits into
pmd:masterfrom
adangel:javadoc
Apr 23, 2020
Merged

[core] Host own javadoc on docs.pmd-code.org#2417
adangel merged 7 commits into
pmd:masterfrom
adangel:javadoc

Conversation

@adangel

@adangel adangel commented Apr 14, 2020

Copy link
Copy Markdown
Member

This PR obsoletes #1769 . It applies on master and can be merged to pmd/7.0.x as well - it should work on the pmd/7.0.x branch exactly the same - it uses the current version number, so the two branches don't override each other

PMD's own documentation is now additionally deployed to https://docs.pmd-code.org/pmd-doc-VERSION/ . On snapshot builds, a symlink is updated, so that https://docs.pmd-code.org/snapshot/ always points to the latest snapshot. Note: This is only done on branch master, so pmd/7.0.x has no symlink.

On a release, the symlink "latest" is created and the old snaphot doc is deleted.

The javadoc linking between modules is solved manually using a relative url. This means, it should work also on javadoc.io (I'm using the same folder hierarchy). Only the linking to the core modules (pmd-core, pmd-test, pmd-lang-test) is enabled. E.g. there should never be a dependency from pmd-core -> pmd-java. But the other way round is valid and the correct linking is generated.

The javadocs of all modules are uploaded and extracted to https://docs.pmd-code.org/apidocs/ . The javadoc_tag uses now this base URL for javadoc links. Now that we have snapshot javadocs, the links in the release notes work now before a release: https://docs.pmd-code.org/snapshot/pmd_release_notes.html

On a release, the snapshot versions of the javadocs are removed.

Open Points:

@ghost

ghost commented Apr 14, 2020

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

@adangel adangel added this to the 6.23.0 milestone Apr 16, 2020
@adangel adangel self-assigned this Apr 23, 2020
@adangel adangel added the in:documentation Affects the documentation [doc] label Apr 23, 2020
@adangel adangel merged commit 53f6633 into pmd:master Apr 23, 2020
@adangel adangel deleted the javadoc branch April 23, 2020 09:37
@adangel adangel mentioned this pull request May 20, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:documentation Affects the documentation [doc]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant