Article format
Consistent article formatting ensures that the Lucidworks documentation content looks the same across the entire docs site.
Consult the AsciiDoc documentation for a general guide to AsciiDoc syntax.
Article length
The docs site strives to avoid articles that are excessively short or long. It’s okay to have some short pages and some long pages in the docs site because the goal is to create pages that users read and learn from. However, very short articles provide little value or discoverability in the docs site search.
Articles should be at least 200 words long, not including ordered lists of links.
Steps in how-to articles count toward the 200-word total. If the article is included in the sidebar with articles nested under it, include more than just links to the nested articles.
If an article can’t reach at least 200 words under these conditions, consider whether the content should be in its own article at all. Articles that are shorter than 200 words are usually uninformative.
If an article is very long, split it into multiple articles if possible. Do not split the article solely to create shorter articles. If a long article does discuss one topic, then it should remain one article regardless of length.
Frontmatter
The AsciiDoc frontmatter contains metadata keys and values. It appears at the top of each document. Docs team members can view the documentation repository for full details on the frontmatter fields.
Use the subtitle
field in the frontmatter when all of the following are true:
-
Multiple articles have the same title
-
A user needs to differentiate between multiple articles with the same title in the search results and article title
-
All articles appear in the sidebar for the same product
Titles and subtitles
Use sentence-style capitalization for titles, subtitles, and section headers.
- Recommended
-
✅ Built-in SQL aggregation jobs
- Not recommended
-
✘ Built-In SQL Aggregation Jobs
Do not start a how-to title, subtitle, or section header with "How to." Do not start a title, subtitle, or section header with a gerund.
- Recommended
-
✅ Add rules in Predictive Merchandiser
- Not recommended
-
✘ How to add rules in Predictive Merchandiser
✘ Adding rules in Predictive Merchandiser
If a product name appears in the title or subtitle, treat it as a proper noun. Capitalize the term as stated in the glossary.
Examples:
Consult the Google Developer Documentation Style Guide for more information on headers and titles.
Section headers
Use section headers to divide an article’s content into hierarchical sections. In Asciidoc, the H1 HTML tag corresponds to =
, H2 corresponds to ==
, and so on. The docs site automatically creates a table of contents from the section headers.
Do not use the H1 tag in your documents. The H1 tag is reserved for the article title.
Use H3 and more nested tags wisely.
Do not use bolded text to title a section.
Do not use numbers as numerals to lead an article title or section header unless a product name begins with a number.
- Recommended
This article describes a concept.
== Section 1
Content goes here.
== Section 2
Content goes here.
- Not recommended
This article describes how to complete a task.
== Here are the instructions
Here are the steps. This is the entire article.
- Not recommended
This article describes how to complete a task.
**This is a bolded section header**
Here are the steps.
- Not recommended
This article describes how to complete a complex task.
== 1. Create an application
Content goes here.
== 2. Create a data source
Content goes here.
If an item that would typically be formatted in code format appears in a section header, do not use code formatting if the item appears at the beginning of the section header. It’s okay to use code format if the item appears elsewhere in the section header. If possible, reword the section header so the code-formatted item does not appear at the beginning.
- Recommended
== What's the difference between `searchahead` and `search`?
- Not recommended
== `400` - Request body contains field 'FIELD_NAME' which cannot be repeated
Discrete headings
If the article has only one heading, consider using a discrete heading, which displays the heading like a regular heading in the article but does not display the heading in the table of contents.
Discrete headings are useful in articles where the only heading is an "Additional Information" heading. This lone heading doesn’t need to appear in the table of contents if it’s the only heading, but separating the additional information from the rest of the article is important.
- Recommended
[discrete]
== This is a discrete heading
This is a section. The section title does not appear in the table of contents.
Text formatting
Bold
Use bold format for UI elements that the user must interact with.
Do not use bold format to introduce a new term or a heading.
- Recommended
-
✅ Click Continue.
✅ Navigate to Collections > Collections Manager.
- Not recommended
-
✘ A primary collection contains the data that your users search.
Italic
Use italic format to refer to words as the word itself.
- Recommended
-
✅ This term is often used synonymously with data source ingestion.
- Not recommended
-
✘ This term is often used synonymously with "data source ingestion."
Use italic format to indicate version variables.
- Recommended
-
✅ To upgrade from version 5.4.x to 5.5.0, follow these instructions.
- Not recommended
-
✘ To upgrade from version 5.4.x to 5.5.0, follow these instructions.
Admonitions
Asciidoc supports admonition syntax, which calls out the text on a separate line with a note. Learn more about admonition syntax.
Use admonition syntax wisely. Using too many admonitions dulls their impact.
Type | Description |
---|---|
|
Features a useful fact something that most users would want to know. |
|
Features a helpful tip that is beneficial for most users to know. |
|
Features important information. |
|
Advises the reader to exercise care in their decision or process. |
|
Warns the reader of harm, breakage, or consequences that exist. Limit this admonition to situations where deviating from the process has direct consequences to the user’s software, such as breaking the application, deleting data, exposing private information, or creating an issue they would need to call support to fix. Limit warnings to "don’t do this at all" scenarios. |
|
A sub-admonition of |
To use an admonition, use the admonition type in capital letters followed by a colon (:
).
NOTE: This is a note that users may want to know about.
The admonition displays as follows.
This is a note that users may want to know about. |
The TIP.faq
admonition is custom-built for the Lucidworks docs site. Its syntax differs from standard admonitions.
[TIP.faq]
.How do I create an FAQ admonition?
====
Copy the full text of this code sample box and paste it into an article. Replace the sample question and answer with your actual question and answer.
====
How do I create an FAQ admonition?
Copy the full text of this code sample box and paste it into an article. Replace the sample question and answer with your actual question and answer. |
Tables and lists
Tables and lists are two ways to lay out similarly structured information on a single topic.
Consult the Google Developer Documentation Style Guide for information on when to use a table or a list. In general:
-
Use a list when each item is a single unit. These items may be instructional steps or lists of Fusion features.
-
Use a table when each item has three or more sub-items. These items may include, for example, a name, a data type, and a description. This is common for configuration reference pages.
-
If each item consists of exactly two sub-items, use your best judgment. A table is better when similar items use tables or if one item is particularly long for each value—for example, the descriptions in the preceding admonitions table.
Tables
Use a table to display a group of items that consist of three or more items. Consult the Asciidoc documentation for more information on Asciidoc table syntax.
[cols="1,1,1"]
|===
|Cell in column 1, row 1
|Cell in column 2, row 1
|Cell in column 3, row 1
|Cell in column 1, row 2
|Cell in column 2, row 2
|Cell in column 3, row 2
|Cell in column 1, row 3
|Cell in column 2, row 3
|Cell in column 3, row 3
|===
Ordered lists
Use an ordered list when enumerating steps to be performed in a specific order. Use +
in between lines to use mulitple lines within one list item or to include an admonition in between steps while maintaining the numbering scheme.
. This is the first item.
+
NOTE: This is an admonition in between the first and second steps.
+
. This is the second step.
.. This is an option within the second step.
.. This is another option within the second step.
Unordered lists
Use an unordered list when listing items that are not in a sequence.
* This is the first item.
* This is the second item.
* This is the third item.
Description lists
Use a description list instead of headings for a group of items that consist of an item and a description. Description lists display as lists without the preceding character of an ordered or unordered list.
List item 1::
Definition of the list item
List item 2::
Definition of the list item