As of the 3.6 release of Evergreen, we are using Antora as a new "framework" for the Evergreen docs. Antora requires some changes to the directory structure, and it reveals some AsciiDoc syntax errors (since it uses the more strict AsciiDoctor for converting to HTML).
In addition, DIG recommends the following changes.
This simply means adding this AsciiDoc line near the top of each .adoc
file. The toc designation should go on the 2nd line of your file, just below the top header. (The old system added this during the HTML build process.)
= Heading = :toc:
The basic reasons are:
Example: Change this
Heading 1 ---------
To this
== Heading 1 ==
Here's a Python script that could help with the conversion (only adds prefix; we'd need to modify it to add the suffix):
Antora requires a new cross-reference structure. All existing cross references were converted via script, but new docs will need to indicate cross references in this manner:
xref:reports:reporter_folder.adoc#reporter_creating_folders[Creating Folders]
The above breaks down as follows:
xref
- indicates a cross referencereports
- indicates the folder in the docs/modules/ directoryreporter_folder.adoc
- indicates the specific file being referencedreporter_creating_folders
- indicates the subheading or anchor being linked to within the file [Creating Folders]
- the link text that is displayedFor historical purposes, the old xref syntax is below
The below is an example of the now-deprecated cross reference style. DO NOT USE THIS!
<<reporter_creating_folders,Creating Folders>>
To prevent breaking internal links:
Header Prefix Syntax
= Header Level 0 = == Header Level 1 == === Header Level 2 === ==== Header Level 3 ==== ===== Header Level 4 =====
Header Underline Syntax
As noted above, we are no longer using the header underline syntax as of the 3.6 documentation due to the Antora move.
.Optional Title [source,perl] ---- # This is a *source* block print "Hello world!"; ----
[[section_id]]
(on its own line)reporter_creating_folders
create_a_provider_details
.xref:module:filename.adoc#section_id[caption]
(can be inline)Read about xref:reports:reporter_folder.adoc#reporter_creating_folders[Creating Folders] for more details.
indexterm:[<primary>,<secondary>,<tertiary>]
indexterm:[Tigers,Big cats]
When you want to document why a particular feature might be used, it's helpful to put that in an Asciidoc "sidebar" (though it often is displayed as a callout block). Syntax:
Use Case ************************************************ This feature is useful in cases where your library wants to catalog books about tigers and other big cats. ************************************************
image::images/ascii_doc_name/imagename.png[alt text]
. Example for an image in the Cloning Shared Templates documentation: image::images/reporter_cloning_shared_templates/clone-report-template-3.png[Clone Selected Template]
.Here's a list: . Item 1 . Item 2 . Item 3
<1>
and not as <––! <1> ––>
+
preceding and following the image or block so the numbering continues in the correct order. See example below.To edit a Receipt: . Select *Administration -> Workstation -> Print Templates*. . Choose the Receipt in the drop down list. . If you are using Hatch, you can choose different printers for different types of receipts with the Force Content field. If not, leave that field blank. Printer Settings can be set at *Administration -> Workstation -> Printer Settings*. + image::media/receipt1.png[select checkout] + . Make edits to the Receipt on the right hand side.
Note how this preserves the numbering:
This introduction to writing accessible documents for Evergreen covers the basics. This guide is not exhaustive. Use the resources available at the end of this document to continue learning more. Remember, accessibility is an ongoing process. As you continue to learn, take time to bring the new information into your regular work and workflows!
The document has four sections: a quick action summary, more details on accessibility, a checklist for reviewing docs, and resources.
Make sure that your content is clear and understandable for a wide range of people. Use plain language when writing to make it easier for people to understand your message. Plain language helps people with disabilities, novices, and people who are not fluent. Avoid using technical words or phrases that need shared cultural knowledge or inside jokes. If you do use complex words, provide more context or definitions.
Write your instructions using the names and words users will see in the interface you are describing. When possible, make sure that the words match section to section. See the Wording and Standard Terminology sections for preferred terminology.
Break your content into smaller pieces when you need to share a lot of information. Use bulleted lists and small labeled sections. This helps people focus on the most important pieces of information. Label the sections using headings to make the document easier to navigate. See the Headers section for how to format sections headings
Each page should have a single level one heading. Additional headings should be nested in a logical order and not skip levels. A good guideline when considering headings is to treat them like a document outline.
Use descriptive text to make it easier for folks to understand where the URL will take them. Do not use “click here” or “read more” as the text for links. In the example, “See Viewing Report Output for more information,” the words “viewing report output” should be the linked text.
Include images and screenshots to aid with understanding. Avoid excessive use of images. Too many images can be distracting when people are trying to follow a set of instructions.
Alternative text, also called alt text, is a brief text description of an image. Alt text provides a text alternative for people with disabilities using screen readers. Alt text can also help people with a low bandwidth internet connection.
Alt text descriptions should be brief. There is no standard length for alt text. Typical length suggestions are 125 - 250 characters. The description should include the information you are expecting sighted people to gain from the image. Ask yourself:
In the example below, the contents of the screen were partially described in the document text. This means that the alt text should focus on the information a sighted user would get from the image, such as the fact that part of the screen has been highlighted.
In the left pane under My Folders a subfolder has been highlighted. In the other pane, the check mark next to a template has been selected.
If the image is part of a larger set with repeated content across multiple steps, then begin your alt text with a note that this is part of a set. Then describe what is unique about this image. This allows you to focus on the essential information instead of repeating information already noted in the first item in the series. For example, > Image 3 of 5 showing Edit Prediction Pattern. MFHD Indicators tab has been selected. The Compression Display Options field is set to can compress or expand. The Caption Evaluation is set as captions verified all levels present. Including information on the set of images also allows screen reader users to skip a known number of images if they do not need the information in those instructions.
This checklist is intended to help you spot signs of common accessibility problems. Answering No to these question may be a sign of an accessibility issue.