GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing pmd.github.io — Writing documentation | PMD Source Code Analyzer
Release date: 28-December-2026
Writing documentationTable of ContentsPMD’s documentation uses Jekyll with the I’d rather be writing Jekyll Theme. Here are some quick tips. FormatThe pages are in general in Github Flavored Markdown. StructureThe documentation sources can be found in two places based on how they are generated:
Handwritten documentationAll handwritten documentation is stored in the subfolders under Rule documentationThe categories for a language Modifying the documentation of a rule should thus not be done on the markdown page,
but directly on the XML The XML documentation of rules can contain GitHub flavoured markdown. Just wrap the markdown inside CDATA section in the xml. CDATA sections preserve all formatting inside the delimiters, and allow to write code samples without escaping special xml characters. For example: Custom Liquid TagsWe have some additional custom liquid tags that help in writing the documentation. Here’s a short overview:
For the javadoc tags, the standard PMD maven modules are already defined as namespaces, e.g. For the implementation of these tags, see the _plugins folder. BuildingThere are two ways, to execute jekyll:
The built site is stored locally in the (git ignored) directory Alternatively, you can start the local webserver, that will serve the documentation. Just go to http://localhost:4005. If a page is modified, the documentation will automatically be rendered again and all you need to do, is refreshing the page in your browser. See also the script pmd-jekyll.sh. It starts the jekyll server in the background and doesn’t block the current shell. The sidebarThe sidebar is stored as a YAML document under Make sure to add an entry there, whenever you create a new page. The frontmatterEach page in jekyll begins with a YAML section at the beginning. This section
is separated by 3 dashes ( There are a couple of possible fields. Most important and always required are title and permalink. By default, a page toc (table of contents) is automatically generated. You can prevent this with “toc: false”. You can add keywords, that will be used for the on-site search: “keywords: documentation, jekyll, markdown” It’s useful to maintain a last_updated field. This will be added at the bottom of the page. A summary can also be provided. It will be added in a box before the content. For a more exhaustive list, see Pages - Frontmatter. Alerts and CalloutsFor alerts, you can use the GitHub-flavored Markdown admonitions like this: It renders as: Note This is a note. See GFM Admonitions for details. The available types are:
A callout is created like this: It renders as: This is a callout of type default.
There are the following types available: danger, default, primary, success, info, and warning. Code samples with syntax highlightingThis is as easy as: This looks as follows: Checking for dead links
Tags:
devdocs
| ||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |