Adobe I/O Style Guide
Over time, different publishing communities have written standards for the style and grammar they prefer in their publications. These standards are called style guides. Generally, Adobe's developer documentation uses the standards described in the Associated Press's (AP) style guide. If a question about syntactical, grammatical, or lexical practice comes up, refer to the AP guide first. If you don’t have a copy of (or online subscription to) the AP guide, you can almost always find an answer to a specific question by searching the web. If you can’t find an answer, please ask Colene and we will find the answer.
That said, please don't get too hung up on using correct style. We'd rather have you submit good information that doesn't conform to the guide than no information at all. Adobe I/O's tech writers and authors are always happy to help you with the prose, and we promise not to judge or use a red pen.
Note: The documentation is often written with paragraphs wrapped at 80 column lines to make it easier for terminal use. You can probably set up your favorite text editor to do this automatically for you. This is not a requirement, though.
In general, try to write simple, declarative prose. We prefer short, single-clause sentences and brief three-to-five sentence paragraphs. Try to choose vocabulary that is straightforward and precise. Avoid creating new terms, using obscure terms or, in particular, using a lot of jargon. For example, use "use" instead of leveraging "leverage".
That said, don’t feel like you have to write for localization or for English-as-a-second-language (ESL) speakers specifically. Assume you are writing for an ordinary speaker of English with a basic university education. If your prose is simple, clear, and straightforward it will translate readily.
One way to think about this is to assume developers working with Adobe's APIs are generally university educated and read at least a "16th" grade level (meaning they have a university degree). You can use a readability tester to help guide your judgment. For example, the readability score for the phrase "Containers should be ephemeral" is around the 13th grade level (first year at university), and so is acceptable.
You should not assume that readers have completed a computers science degree, as many developers are self-taught or have learned at coding bootcamps. This means that you do not have to introduce or define simple concepts and acronyms like API or "importing a module". More complex, and formal concepts can be used, but should be followed by an explanation.
- "Containers should be ephemeral, they can be stopped at any time."
- "HTTP PUT requests are idempotent, this means making the same request twice will yield the same result."
sortmethod has linear time complexity, sorting twice as many items will take two times as long"
In all cases, we prefer clear, concise communication over stilted, formal language. Don't feel like you have to write documentation that "sounds like technical writing." Technical documentation should read like the explanations of a friendly, helpful experienced co-worker that you just reached out to via chat.
Content on Adobe I/O should be written as if passed in a conversation “from developer to developer”.
Imagine Adobe I/O as the helpful colleague in the office next door, who is always willing to explain, but never condescending, who always has an answer, but never makes you feel like she knows it better, who can always find humor in a difficult situation, but never avoids the hard questions.
Put the user first, the developer second, the technology third – our technology does not matter, what matters is what you can do with it for your user.
Metaphor and Figurative Language
One exception to the "don’t write directly for ESL" rule is to avoid the use of metaphor or other figurative language to describe things. There are too many cultural and social issues that can prevent a reader from correctly interpreting a metaphor. This is especially the case for sports metaphors.
Other Style Tips
Use active voice in instructions and when describing system behavior. Instead of "The API Gateway is used to apply rate limits to incoming HTTP requests" write "The API Gateway applies rate limits to incoming HTTP requests.
Address the reader directly and write "you can do this" instead of "this can be done".
Do not use buzzwords and adjectives that do not describe the concept at hand, the purpose of our documentation is to explain and educate, not to sell.
Documentation is read by developers in different ways, depending on the situation. Good documentation supports the situation and helps the developer find the information needed to complete the task at hand.
The first big distinction in documentation styles is between narrative documentation and and reference documentation. Reference documentation is made up of short articles that describe one item in a structured way. This kind of documentation will frequently be looked up and consumed bit by bit.
Narrative documentation, on the other hand, can be read and understood as one document, to be read in parts or in whole. You might skip a chapter or section, but reading the whole narrative documentation will help you get the complete picture.
The two kinds of narrative documentation we create for developers at Adobe are explanatory, helping developers to understand a field, a concept or an architecture and guiding documentation, helping developers to fulfill a particular task.
Some developers prefer to read explanatory documentation first and fully before delving into instructive documentation, while other developers start with instructive documentation, and dip into explanatory documentation only as needed. All developers use reference documentation to look up the specifics of APIs as they work with them. No developer ever reads the entire reference documentation.
All technical documentation should be made available on the Adobe I/O Website in HTML format that is directly accessible from a browser, that means no download of ZIP or PDF files.
Explanatory Documentation: Help me understand
This kind of documentation is best used for explaining the big picture and the design constraints of the system. It should explain what an API or component is for, what developers can achieve with it, and what considerations have been made when designing it.
This kind of documentation should always be written from the perspective of the developer that is using the APIs, not from the perspective of the developer who has built it, or even from the perspective of "the system".
In explanatory documentation it is advisable to use simple architecture charts and drawings. See the section Graphics below for details on usage of graphics in documentation.
Explanatory and instructive documentation should mention and link to the standards and APIs that are being used, so that developers have a point of further reference in case more information is needed. When implementations differ from commonly accepted standards, this should be mentioned, too. We want to minimize surprise and frustration.
To help developers find conceptual and explanatory documentation, page titles should contain keywords like "architecture overview", "core concepts", "understanding". The page title should also include the name of the product or API. Good page titles are:
- Understanding Adobe I/O Authentication
- Creative Cloud Extensibility Core Concepts
- Adobe I/O Events Architecture Overview
Instructive Documentation: Help me do
Instructive documentation is meant to help a developer perform a specific task. The most common form of instructive documentation is the "getting started guide" that takes a developer through the prerequisites, set of of development environment, installation and use of an API, up to a first, small application. Developers read instructive documentation with a specific goal in mind, so we should write it to help them get from A to B in the shortest time possible. Instead of in-depth explanations of concepts, instructive documentation should explain concepts that are touched in one or two sentences and refer to explanatory documentation for details.
Every instructive documentation should start with a goal: explain what the developer will be able to achieve by following the guide. Make the instructive documentation you write easy to follow by minimizing assumptions and listing all prerequisites. This includes familiarity with programming languages, concepts, installed developer tools, required user accounts, and so on. Instructive documentation can be followed easily by structuring it into step-by-step guidelines.
Instructive documentation should contain no magic, i.e. steps, commands or configuration parameters that need to be followed, applied, or set, but that are not explained. Instead, each step of the instructions should make clear why it needs to be followed.
Examples are absolutely crucial in making instructive documentation easy to follow. Many developers simply copy and paste the examples, so make sure that there is an example for each step along the guide, and that the examples can be copied, pasted and executed. Whenever the developer needs to replace values in the example, highlight these placeholders.
Adobe I/O has page templates for documentation that put a heavy emphasis on examples. In these templates, code samples (starting with triple backticks (`)) and example introductions (each line starts with a closing angle bracket (>)) are put on the right side.
> First line explaining the example > second line explaining the example ```bash $ echo "Hello World" ```
To help developers find instructive documentation, create page titles with search engine optimization (SEO in mind). This means, include the programming languages and APIs that are being used and explained in the title, include the action that will be performed. Many search engines cut titles off after 60 characters, so keep titles shorter by leaving off "how to". Good examples for page titles for instructive documentation are:
- Authenticating Adobe APIs Using OAuth in node.js
- Subscribing to Creative Cloud API Events in Ruby
- Creating an AEM Polling Importer Component
- Generating Markdown documentation from JavaDoc Annotations
- Getting Started with Serverless Integrations on Adobe I/O Runtime
You can furthermore increase the discoverability of your guides by giving your pages concise page names. Your page name will become part of the URL, which search engines include in their ranking. On Adobe I/O, all URLs for product documentation will already include the keywords "Adobe", "API", and the name of your product, so there is no need to repeat them.
Reference Documentation: Help me remember
Reference documentation is consumed like a dictionary or encyclopedia. You don't read the dictionary, you consult it. Like instructive documentation, reference documentation is task-oriented, but the task at hand is a smaller fragment that typically involves refreshing a developer's memory on API usage or configuration parameters.
Write reference documentation so that each item (class, method, API function) can stand on it's own. Make references to other items browsable through links. The Adobe I/O documentation templates support you by having related items, such as classes in the same package easily browsable.
Just like instructive documentation, reference documentation is much easier to follow and much more useful when it includes examples. Adobe I/O provides documentation templates that support reference documentation with many examples, such as
curl commands for each method and resource in a REST API.
Also, just like instructive documentation, write reference documentation from the perspective of the developer who is using it, not from the perspective of the developer that built it. The consuming developer typically knows nothing, and should not need to know anything about the implementation of the API.
Reference documentation for the same items should follow the same structure, so that a developer who has read a reference entry for one class or function will not get confused when reading another class or function entry. When you generate reference documentation using standards tools like Swagger, Javadoc, Appledoc, etc. a standard structure will get applied and you can keep reference documentation up to date.
Adobe I/O is able to import following reference documentation formats:
- OpenAPI (Swagger)
Markdown is a very flexible direct and intermediate documentation format. The list Awesome Markdown contains pointers to tutorials and tools that can generate Markdown from many programming languages.
Making Content Easy to Find and Read
Your documentation is not useful if it cannot be found and if it will not be read. To make your documentation easy to find:
- Publish it in HTML, not as PDF or in ZIP files
- Publish it on Adobe I/O, where it benefits from good SEO rankings, integrated site search, and comprehensive navigation
- Use page titles and URLs (as described above) that include keywords a developer would search for
- Restrict your documentation to one topic per page. As developers are searching for specific topics, search engines will rank pages higher that are all about that one topic, not multiple things at once.
To make your documentation easy to read:
- Follow the writing tips in this style guide
- Keep your documents short: five minutes reading time per page (about 6,000 words) is ideal
- Don't make your documents too long: documents longer than 10 minutes reading time (about 12,000 words) work better when split in two
- Introduce links between documents, for instance a "Getting Started Guide" and a "Production Readiness Guide" or "Core Concepts" and "Deep Dives"
- Concentrate on one topic per document or guide
Adobe I/O has templates for narrative documentation that encourage continuous reading, so order your pages in an order that allows them to be read from beginning to end.
Below are some specific recommendations (and a few deviations) from AP style that we use in our documentation.
As long as your prose does not become too slangy or informal, it's perfectly acceptable to use contractions in our documentation. Make sure to use apostrophes correctly.
Use of Dashes in a Sentence.
Dashes refers to the en dash (–) and the em dash (—). Dashes can be used to separate parenthetical material.
Usage Example: This is an example of a PhoneGap client – which uses the Big Widget to run – and does x, y, and z.
Use dashes cautiously and consider whether commas or parentheses would work just as well. We always emphasize short, succinct sentences.
More info from the always handy Grammar Girl site.
It's okay to use first and second person pronouns, especially if it lets you avoid a passive construction. Specifically, always use "we" to
refer to Adobe and "you" to refer to the user. For example, "We built the
exec command so you can resize a TTY session." That said, in general, try to write simple, imperative sentences that avoid the use of pronouns altogether. Say "Now, enter your SSH key" rather than "You can now enter your SSH key."
As much as possible, avoid using gendered pronouns ("he" and "she", etc.). Either recast the sentence so the pronoun is not needed or, less preferably, use "they" instead. If you absolutely can't get around using a gendered pronoun, pick one and stick to it. Which one you choose is up to you. One common convention is to use the pronoun of the author's gender, but if you prefer to default to "he" or "she", that's fine too.
Only proper nouns should be capitalized in body text. In general, strive to be as strict as possible in applying this rule. Avoid using capitals for emphasis or to denote "specialness".
Because code samples should always be written exactly as they would appear on-screen, you should avoid starting sentences with a code sample.
Headings take title case to differentiate from sentence case in normal text and to increase readability and to make it easier to skim text.
- Capitalize the first word of the title/heading and of any subtitle/subheading;
- Capitalize all “major” words (nouns, verbs, adjectives, adverbs, and pronouns) in the title/heading, including the second part of hyphenated major words (e.g., Self-Report not Self-report)
Important Proper Nouns
- Open Source is a proper noun and should be capitalized.
- Inner Source is a proper noun and should be capitalized, too. Avoid the camel case contraction "InnerSource".
- internet is not a proper noun and should be lowercase, unless at the beginning of a sentence.
We prefer one space after a period at the end of a sentence, not two.
See lists below for how to punctuate list items.
Exclamation Marks and Semicolons
Both should be avoided. If you need a semicolon, try to rewrite your sentence as two, shorter sentences. The need for an exclamation mark is often an indicator for deeper issues in the content:
"This feature is really cool!" should be rewritten as "With this feature, you can do this …, which is useful, because …"
"Don't forget to call
Session.save()!" can be better written as a note or warning in a separate paragraph.
"Click the button labeled next!" works just as well as "Click the button labeled next" and reads much nicer.
Abbreviations and Acronyms
Exempli gratia (e.g.) and id est (i.e.): these should always have periods and are always followed by a comma.
Acronyms are pluralized by simply adding "s", e.g., PCs, OSs, APIs. Do not use apostrophes to pluralize acronyms
On first use on a given page, the complete term should be used, with the abbreviation or acronym in parentheses. E.g., Red Hat Enterprise Linux (RHEL). The exception is common, non-technical acronyms like AKA or ASAP. Note that acronyms other than i.e. and e.g. are capitalized.
Other than "e.g." and "i.e." (as discussed above), acronyms do not take periods, PC not P.C.
Do not Abbreviate These Words
Do not abbreviate these words, as they can introduce colloquialisms, make writing less clear, and lead to confusion:
- developer, developers (not dev or devs)
- administrator, administration, or administrative (not admin)
- repository, repositories (not repo or repos)
- configuration, configurations (not config or configs)
- authentication (not auth)
- authorization (not auth)
- documentation (not docs)
When writing lists, keep the following in mind:
Use bullets when the items being listed are independent of each other and the order of presentation is not important.
Use numbers for steps that have to happen in order or if you have mentioned the list in introductory text. For example, if you wrote "There are three config settings available for SSL, as follows:", you would number each config setting in the subsequent list.
In all lists, if an item is a complete sentence, it should end with a period. Otherwise, we prefer no terminal punctuation for list items. Each item in a list should start with a capital.
Avoid deep nesting of document structure. Three levels of headings are usually enough.
The same applies to lists: avoid lists that are nested too deeply, in most cases two levels should be enough.
Write out numbers in body text and titles from one to twelve. From 13 on, use numerals.
Use notes sparingly and only to bring things to the reader's attention that are critical or otherwise deserving of being called out from the body text. Please format all notes as follows:
###### Note One line of note text another line of note text
When possible, use examples to make it easier to understand complex concepts. Examples can be either text or code examples.
Some of the technical documentation templates provide special formatting for examples, so please format text examples in Markdown as follows:
> One line of example text > another line of example text
Avoid excess use of "i.e."
Minimize your use of "i.e.". It can add an unnecessary interpretive burden on the reader. Avoid writing "This is a thing, i.e., it is like this". Just say what it is: "This thing is …"
Login vs. Log In.
A "login" is a noun (one word), as in "Enter your login". "Log in" is a compound verb (two words), as in "Log in to the terminal".
One way in which we differ from AP style is that Adobe's developer documentation uses the Oxford comma in all cases.
Code and UI Text Styling
code font styling (monospace, sans-serif) for all text that refers
to a command or other input or output from the CLI. This includes file paths
/etc/hosts/docker.conf). If you enclose text in backticks (`), markdown
will style the text as code.
Text from a CLI should be quoted verbatim, even if it contains errors or its style contradicts this guide. You can add "(sic)" after the quote to indicate the errors are in the quote and are not errors in our documentation.
Text taken from a GUI, such as menu text or button text, should be bold. Use the text exactly as it appears in the GUI. For example:
Click **Continue** to save the settings.
Text that refers to a keyboard command or hotkey should be capitalized and bold. For example: Ctrl-D.
When writing CLI examples, give the user hints by making the examples resemble exactly what they see in their shell:
- Add three backticks (`) before and after shell examples so they get rendered as code blocks.
- Start typed commands with
$(dollar space), so that they are easily differentiated from program output.
- Program output has no prefix.
- Comments begin with
Please test all code samples to ensure that they are correct and functional so that users can successfully copy-and-paste samples directly into the CLI.
Trademarks and Brand Names
Our documentation is served with a trademark and copyright disclaimer, so that there is no need to add (TM), (R), ©, ™, etc. after every mention of a product name. This does not help with readability and does not mean that readers will take the content more seriously.
When referring to Adobe products, follow these guidelines:
- Use the full product name on first mention on a page, e.g. "Adobe Photoshop"
- You can use the abbreviated product name on further mentions on the page, e.g. "Photoshop"
- Some product names, like "Adobe Sensei" or "Adobe I/O" are never abbreviated, so don't leave off "Adobe" and don't just write "Sensei" or "I/O"
- For Adobe I/O product functionality, refer to it with the full, capitalized name on the first mention, e.g. "Adobe I/O Console" and use the capitalized functionality name on all subsequent mentions, e.g. "Console". Never use "I/O Console".
- The full product name can be used when it helps with clarity and understanding, e.g. "You can use the Amazon Web Services (AWS) Console to configure an Amazon API Gateway proxy for the URL found in the Adobe I/O Console".
The pull request (PR) process is in place so that we can ensure changes made to the documentation are the best changes possible. A good PR will do some or all of the following:
- Explain why the change is needed
- Point out potential issues or questions
- Ask for help from experts in the company or the community
- Encourage feedback from core developers and others involved in creating the software being documented.
Writing a PR that is singular in focus and has clear objectives will encourage all of the above. Done correctly, the process allows reviewers (maintainers and community members) to validate the claims of the documentation and identify potential problems in communication or presentation.
In order to write clear, useful commit messages, please follow these recommendations.
For accessibility and usability reasons, avoid using phrases such as "click here" for link text. Recast your sentence so that the link text describes the content of the link, as we did in the "Commit messages" section above.
When you need to add a graphic, try to make the file size as small as possible.
If you need help reducing file size of a high-resolution image, feel free to
contact us for help.
Usually, graphics should go in the same directory as the
.md file that
references them, or in a subdirectory for images if one already exists.
The preferred file format for graphics is PNG, but GIF and JPG are also acceptable.
If you are referring to a specific part of the UI in an image, use call-outs (circles and arrows or lines) to highlight what you’re referring to. Line width for call-outs should not exceed five pixels. The preferred color for call-outs is red.
Be sure to include descriptive alt-text for the graphic. This greatly helps users with accessibility issues.
Lastly, be sure you have permission to use any included graphics.
How to Handle These Common Words
- add-on (noun, adjective), add on (verb)
- back end (noun), back-end (adjective)
- blog post (a single entry in a blog), blog (a collection of blog posts)
- drop-down (noun, adjective), drop down (verb)
- email (never hyphenate, never capitalize unless it begins a sentence)
- front end (noun), front-end (adjective)
- online (never capitalize unless it begins a sentence)
- opt-in (noun, adjective) , opt in (verb)
- pop-up (noun, adjective), pop up (verb)
- signup (noun, adjective), sign up (verb)
Avoid These Buzzwords
Avoid These Tautologies
- Developer API (all APIs are for developers)