Janeway style guide
Janeway style guide pageIn this guide
In this guide sectionIntroduction
Introduction sectionAbout this guide
- This style guide is adapted from the Google style guide (which is available under a CC-BY 4.0 licence) and has been adjusted to meet Janeway’s requirements. It will also follow Google’s structure. This document is NOT intended to cover all issues. It currently contains summaries for ease of access while we adopt the guide, and additions, exceptions, and deviations from the Google guide. In the long term, it will serve solely to outline exceptions, deviations, additions, etc. from the Google guide. (Hopefully, there will not be many)
- This style guide does not follow OLH or OLHJ style - this is as it a) will have different requirements than OLH(J), b) will make this style guide easier to customise and maintain.
- This guide uses UK English.
- This guide uses the Chicago style (17th edition) for citations and referencing (see also Purdue's Online Writing Lab's guidance for Chicago 17th).
Editorial resources and hierarchy
Editorial resources and hierarchy sectionUsing this guide
Use the following resources, including this guide, in this order:-
Project-specific. Specific projects may have their own style guides, outlining exceptions to this guide or terms that are relevant only to your project (such as marketing materials).
-
This style guide. Where project-specific style guides do not provide guidance, follow this style guide.
-
Third-party resources. If the previously listed resources do not provide guidance, you may wish to use the following:
- Technical style: Google documentation style guide
- Spelling: Oxford English Dictionary
- If spelling not covered by OED: Guardian and Observer style guide
- Non-technical style: The Chicago Manual of Style
Other resources that may be helpful (especially when adding to / modifying this guide), but that are not part of the documentation itself:
Other resources
- Microsoft Writing Style Guide
- Write the Docs
- Red Hat supplementary style guide for product documentation
- Mailchimp Content Style Guide
- Strategic writing for UX - Torrey Podmajersky
- Don’t make me think, revisited - Steve Krug
Quick reference
Quick reference sectionThis section provides a brief overview of the content of the Google styleguide, not all sections and issues are covered here. If an issue is not described below, it is likely covered within the full guide.
Note
In terms of direct guidance, this document contains summaries and quick overviews. Additional detail and guidance on issues not covered or summarised in this guide are available in the full Google guide.
Tone and content
Tone and content section- Be conversational and friendly without being frivolous. Remain professional.
- Avoid jargon or (complex) technical language where possible. If a term is required, explain it.
- Don’t pre-announce anything in the documentation.
- Write for a global audience.
- Avoid using phrases like simply, It's that simple, It's easy, or quickly in a procedure.
See: Voice and tone See: Timeless documentation
Spelling and grammar
Spelling and grammar section- Use UK English spelling and punctuation.
- Use the second person (“you” rather than “we”).
- Use active voice.
- Use present tense.
- Put conditions before instructions, not after.
- Use prescriptive documentation standards. To indicate required or optional user actions or process outcomes, select an appropriate auxiliary verb — for example, must, can, or might. Generally, avoid the word should.
Formatting, punctuation, and organisation
Formatting, punctuation, and organisation section- Use sentence case for all headings: capitalise the first word, but do not use a period at the end.
- Use serial commas.
- Numbers guidance
- Use numbered lists for sequences.
- Use bulleted lists for most other lists.
- Lists guide
- Use unambiguous date formatting.
- Put UI elements in bold.
- UI elements and interaction guide
Capitalisation
Capitalisation sectionSee: Capitalisation
Divert from Google:
- Use standard capitalisation rules for UK English.
Janeway-specific guidance: Only capitalise Janeway roles when referring to a button / UI element or when explicitly referring to the role. Do not capitalise Janeway roles when referring to people.
For example:
:heavy_check_mark: Recommended: "The Editor role has permissions for…"
:x: Not recommended: "When you assign the typesetter role…"
:heavy_check_mark: Recommended: "When the typesetter sends the galleys…"
:x: Not recommended: "During review, Section editors require Editors to approve draft decisions."
Accessibility
Accessibility sectionSee: Write accessible documentation
General
General section- Avoid unnecessary font formatting. (Screen readers explicitly describe text modifications.)
- Avoid bias and harm when discussing disability and accessibility.
- Break up walls of text to aid in scannability. For example, separate paragraphs, create headings, and use lists.
- Place distinguishing and important information of a paragraph in the first sentence to aid in scannability.
- Use shorter sentences. Try to use fewer than 26 words per sentence.
- Define acronyms and abbreviations on first usage and if they're used infrequently.
Links
Links section- Use meaningful, descriptive link text.
- If a link downloads a file, indicate this action and the file type in the link text.
Media
Media section- Provide an alt attribute for every image used.
- Provide captions, transcripts, or descriptions of audio and video content.
Tables
Tables section- Avoid tables where possible.
- Introduce tables in the text preceding the table because not all screen readers preannounce tables.
Buttons
Buttons section- Refer to buttons and other elements by their label. For visual elements that have no text, don't try to describe the element. Instead, use the element's
aria-labelattribute if possible.
Note
This can be modified, updated and overwritten as required.
Notes and other notices
Notes and other notices sectionSee: Notes, cautions, warnings, and other notices
Janeway-specific:
The following notices are available in GitHub markdown:
Note
Note.
- An ordinary aside or tip. Provides information that is useful but not critical to the reader. For example, "Generating excessive amounts of traffic to external systems can resemble a denial-of-service attack."
Caution
Caution.
- Tells the reader to proceed carefully. For example, "We don't recommend using a broad
0.0.0.0/0range that would allow all traffic."
Warning
Warning.
- Stronger than a caution notice; it means "Don't do this" or that this step might be irreversible, such as leading to permanent data loss. If readers don't heed the warning, they can lose work or open themselves to a security breach. For example, "Don't put a password on the command line; doing so is a security risk."
Important
Important.
- Can be used to highlight essential information. This information must also be in the main body of the text.
Tip
TIP.
- Provides helpful information that has a practical meaning but may not be obvious to users.