-
Notifications
You must be signed in to change notification settings - Fork 219
Add Overview content type #4394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9b440b5
Add Overview content type
theletterf 5c47a21
Improve and apply feedback
theletterf 15ceec1
Fix links
theletterf a040d1c
Add example
theletterf 1201dfa
Merge branch 'main' into add-overview-content-type
theletterf 9294a36
Reduce examples
theletterf da1244f
Merge branch 'add-overview-content-type' of github.com:elastic/docs-c…
theletterf b03f7ee
Merge branch 'main' into add-overview-content-type
theletterf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
115 changes: 115 additions & 0 deletions
115
contribute-docs/content-types/_snippets/templates/overview-template.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| --- | ||
| description: "A concise summary highlighting what the feature or concept is and why it matters, fit for search results and tooltips." | ||
| applies_to: | ||
| stack: | ||
| serverless: | ||
| type: overview | ||
| product: | ||
| --- | ||
|
|
||
| <!-- Copy and paste this template to get started writing your overview page, deleting the instructions and comments from your final page. | ||
|
|
||
| For complete guidance, refer to [the overview guide](https://www.elastic.co/docs/contribute-docs/content-types/overviews). | ||
|
|
||
| --> | ||
|
|
||
| # [Feature or concept name] | ||
| <!-- REQUIRED | ||
|
|
||
| A concise, descriptive name for the feature or concept. | ||
|
|
||
| Example: Inference processing | ||
| --> | ||
|
|
||
| <!-- REQUIRED | ||
|
|
||
| Introduction | ||
|
|
||
| Explain what this feature or concept is and why it matters to users. Your introduction should: | ||
|
|
||
| - Answer "What is it?" at a high level | ||
| - Establish the scope — what this overview covers | ||
| - Optionally clarify what's out of scope if that helps set expectations | ||
| - Help readers quickly determine if they're in the right place | ||
|
|
||
| Use the inverted pyramid: lead with the most important information, then add detail. --> | ||
|
|
||
| ## Use cases | ||
| <!-- RECOMMENDED | ||
|
|
||
| Describe concrete scenarios or examples showing how the feature or concept applies in practice. Help users understand when and why they would use this. | ||
|
|
||
| Example structure: | ||
| ### [Use case name] | ||
| [Brief description of the use case and its value] | ||
| --> | ||
|
|
||
| ## How it works | ||
| <!-- RECOMMENDED | ||
|
|
||
| Explain the underlying mechanism, workflow, or architecture. Consider including a diagram to illustrate the concept. | ||
|
|
||
| Example: | ||
| The diagram below shows how [feature] processes [data/requests]: | ||
|
|
||
| [Mermaid diagram or image] | ||
|
|
||
| - [Key point about the workflow] | ||
| - [Another key point] | ||
| --> | ||
|
|
||
| ## Key concepts | ||
| <!-- OPTIONAL | ||
|
|
||
| Define important terms or explain core concepts that are central to understanding this feature. Use this section when terminology might be unfamiliar to users. | ||
|
|
||
| - **[Term 1]:** [Definition] | ||
| - **[Term 2]:** [Definition] | ||
| --> | ||
|
|
||
| ## Background | ||
| <!-- OPTIONAL | ||
|
|
||
| Provide context that helps readers understand the concept more deeply. This might include: | ||
|
|
||
| - Historical context (where the idea originated, why it works the way it does) | ||
| - Industry context (relevant standards, common patterns) | ||
| - Design decisions (why certain choices were made, what alternatives exist) | ||
|
|
||
| Only include this section when context adds meaningful value to understanding. --> | ||
|
|
||
| ## [Comparison or decision section] | ||
| <!-- OPTIONAL | ||
|
|
||
| When helping users choose between options, use this section to compare features, trade-offs, or use cases. Consider using a table for clarity. | ||
|
|
||
| | Option | Best for | Trade-offs | | ||
| |--------|----------|------------| | ||
| | [Option A] | [Use case] | [Trade-off] | | ||
| | [Option B] | [Use case] | [Trade-off] | | ||
| --> | ||
|
|
||
| ## Next steps | ||
| <!-- RECOMMENDED | ||
|
|
||
| Suggestions for what users can do after reading this overview --> | ||
|
|
||
| - [Link to getting started guide or tutorial] | ||
| - [Link to a how-to guide for a common task] | ||
|
|
||
| ## Related pages | ||
| <!-- RECOMMENDED | ||
|
|
||
| Links to related documentation such as how-to guides, reference material, or other overviews --> | ||
|
|
||
| - [Link to how-to guide] | ||
| - [Link to reference material] | ||
| - [Link to related overview] | ||
|
|
||
| <!-- | ||
| Learn more about: | ||
| - Required elements: https://www.elastic.co/docs/contribute-docs/content-types/overviews#required-elements | ||
| - Recommended elements: https://www.elastic.co/docs/contribute-docs/content-types/overviews#recommended-elements | ||
| - Optional elements: https://www.elastic.co/docs/contribute-docs/content-types/overviews#optional-elements | ||
| --> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
theletterf marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| --- | ||
| description: "Guidelines for writing useful and comprehensive overview pages in the Elastic documentation." | ||
| applies_to: | ||
| stack: | ||
| serverless: | ||
| --- | ||
|
|
||
| # Overviews | ||
|
|
||
| This page provides guidelines for writing effective overview pages in the Elastic docs. This page and its associated template can be used by humans and LLMs to draft new overviews, or to evaluate existing pages. | ||
|
|
||
| Use this page to: | ||
|
|
||
| - Help you draft a new overview by copying and pasting the [template](https://github.com/elastic/docs-content/blob/main/contribute-docs/content-types/_snippets/templates/overview-template.md). | ||
| - Understand the structure and best practices for overviews before you write one. | ||
| - Evaluate existing overviews or drafts against the standards outlined here. | ||
|
|
||
| Whether you're a regular contributor or reviewing someone else's work, these guidelines help ensure consistency, completeness, and quality across the Elastic documentation. | ||
|
|
||
| ## What is an overview | ||
|
|
||
| An overview provides conceptual information that helps users understand a feature, product, or concept. It answers two fundamental questions: | ||
|
|
||
| - **What is it?** | ||
| - **How does it work?** | ||
|
theletterf marked this conversation as resolved.
|
||
| - **How does it bring value?** | ||
|
|
||
| Readers of overview pages are typically in a learning state rather than a goal-oriented or problem-solving state. They are often first-time users who want to get up and running quickly. Having effective overview content builds trust and confidence in our products. | ||
|
|
||
| Overviews serve several purposes: | ||
|
|
||
| - Explain what something is and why it matters. | ||
| - Inform users how features and capabilities improve their workflows. | ||
| - Help users navigate to the right content for their needs. | ||
| - Clarify how components, features, or concepts relate to each other. | ||
| - Help users choose between options or understand trade-offs. | ||
|
|
||
|
theletterf marked this conversation as resolved.
|
||
| ## Structure of an overview | ||
|
|
||
| To help users quickly understand a feature or concept, overviews use a consistent structure. A predictable format improves comprehension and makes the content easier to navigate. | ||
|
|
||
| ### Required elements | ||
|
|
||
| Every overview must include the following elements: | ||
|
|
||
| 1. A consistent **filename:** Use descriptive noun-based patterns. Common patterns include: | ||
| - `[feature-name].md` (for example, `text-embedding.md`) | ||
| - `[concept].md` (for example, `data-streams.md`) | ||
| - `index.md` for section landing pages | ||
|
|
||
| 2. Appropriate **[frontmatter](https://elastic.github.io/docs-builder/syntax/frontmatter/):** | ||
| - `applies_to:` [Tags](https://elastic.github.io/docs-builder/syntax/applies) for versioning/availability info per the [cumulative docs guidelines](/contribute-docs/how-to/cumulative-docs/index.md) | ||
| - `description`: A brief summary of the page fit for search results and tooltips | ||
| - `product`: The relevant Elastic product(s) covered in the overview | ||
| % TODO once we have structured types - The `type` field set to `overview` | ||
|
|
||
| 3. A clear **title:** A concise, descriptive name for the feature or concept | ||
| - For example, "Text embedding" or "Data streams" | ||
|
|
||
| 4. An **introduction:** Explain what the feature or concept is and why it matters to users. This should: | ||
| - Answer "What is it?" at a high level. | ||
| - Establish the scope: what the overview covers and, optionally, what it doesn't. | ||
| - Help readers quickly determine if they're in the right place. | ||
|
|
||
| 5. **Core content sections:** The body of the overview explaining how it works, key concepts, components, or use cases. Structure these sections based on what users need to understand. | ||
|
|
||
| ### Recommended sections | ||
|
|
||
| Include the following sections in most overview pages: | ||
|
|
||
| 1. **Use cases or examples:** Concrete scenarios showing how the feature or concept applies in practice. | ||
| 2. **How it works:** A section explaining the underlying mechanism, workflow, or architecture. Consider including a diagram. | ||
| 3. **Next steps:** Suggestions for what users can do next, such as getting started guides or tutorials. | ||
| 4. **Related pages:** Links to related documentation such as how-to guides, reference material, or other overviews. | ||
|
|
||
| ### Optional elements | ||
|
|
||
| Consider including the following when they add value: | ||
|
|
||
| - **Background or context:** Historical context, industry context, or an explanation of why something was designed a certain way. This is especially useful for complex concepts with non-obvious design decisions. | ||
| - **[Diagrams](https://elastic.github.io/docs-builder/syntax/diagrams/):** Architecture diagrams, flowcharts, or other visual aids to illustrate concepts and relationships. | ||
| - **Comparison tables:** When helping users choose between options, use tables to compare features, trade-offs, or use cases. | ||
| - **[Tabs](https://elastic.github.io/docs-builder/syntax/tabs/):** When explaining variations (such as different deployment types or product tiers), use tabs to show the differences. | ||
| - **Key terminology:** Define important terms if they're central to understanding the concept. | ||
|
|
||
| ## Best practices | ||
|
|
||
| When you create overview pages, follow these best practices: | ||
|
|
||
| - **Focus on a single concept:** Each overview should be dedicated to one concept, feature, or topic. If you find yourself explaining a second concept in depth, create a separate overview and link to it. | ||
| - **Lead with user value:** Start by explaining why the feature or concept matters to the user, not just what it does. | ||
| - **Use the inverted pyramid:** Begin with the most important information at a high level, then progressively add detail. This lets readers grasp the essentials quickly and dive deeper as needed. | ||
| - **Keep it conceptual:** Focus on explaining ideas, not on step-by-step instructions. Avoid instructional or reference content. Link to how-to guides and reference pages instead. | ||
| - **Answer the key questions:** Ensure your overview addresses the fundamental questions: What is it? Why does it matter? How does it work? When would I use it? | ||
| - **Use concrete examples:** Abstract concepts become clearer when illustrated with real-world scenarios or use cases. | ||
| - **Provide visual aids:** Diagrams, flowcharts, and architecture illustrations help users grasp complex relationships. | ||
| - **Avoid duplication:** Don't repeat detailed information that belongs in reference or how-to pages. Link to those pages instead. | ||
|
|
||
| ## Template | ||
|
|
||
| To get started writing your overview page, use the [template](https://github.com/elastic/docs-content/blob/main/contribute-docs/content-types/_snippets/templates/overview-template.md). | ||
|
|
||
| ## Examples | ||
|
|
||
| Here are some examples of well-structured overview pages in the Elastic documentation: | ||
|
|
||
| - [Data streams](/manage-data/data-store/data-streams.md) | ||
| - [{{ilm-cap}}](/manage-data/lifecycle/index-lifecycle-management.md) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.