Skip to content

Commit

Permalink
Adds landing page instructions (#929)
Browse files Browse the repository at this point in the history
* Adds landing page instructions

* updates to shortcodes

* update note markdown

* syntax updates

* escape shortcodes

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: Jack Baldry <[email protected]>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: Jack Baldry <[email protected]>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* vale

* cancelling vale rule

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feedback from julie

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* julies feedback

* julies feedback

Signed-off-by: Jack Baldry <[email protected]>

* Fix first heading

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: Jack Baldry <[email protected]>

* Update docs/sources/structure/topic-types/landing-page/index.md

Co-authored-by: Jack Baldry <[email protected]>

* fix snippet dash

* Fix syntax and highlighting

Signed-off-by: Jack Baldry <[email protected]>

* add landing page to topic types main page

* add text to topic type

* intro text for landing page

* fix alignment

* gets rid of dash

---------

Signed-off-by: Jack Baldry <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jack Baldry <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent 408394b commit 72c6c25
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/sources/structure/topic-types/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Depending on the needs of a particular product area, select a topic type from th
**[Tutorial](https://grafana.com/docs/writers-toolkit/structure/topic-types/tutorial/)**
: Provides procedures that users can safely reproduce and learn from. Answers the question: "Can you teach me to …?"

**[Landing page](https://grafana.com/docs/writers-toolkit/structure/topic-types/landing-page/)**
: Guides users to the documentation they are looking for by introducing topics related to a particular product, product area, or set of features.

<!-- vale Grafana.GoogleFirstPerson = YES -->

For your convenience, there are topic [templates](https://github.com/grafana/writers-toolkit/tree/main/docs/static/templates).
Expand Down
73 changes: 73 additions & 0 deletions docs/sources/structure/topic-types/landing-page/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
date: 2024-12-18
description: Learn how to create a landing page.
keywords:
- topic types
- template
- landing page
review_date: 2024-12-18
title: Create landing pages
---

# Create landing pages

Create a landing page as a starting point for customers to get access to the documentation they're looking for.

To create a landing page, complete the following steps.

1. Go to the folder and `_index.md` file for your landing page topic.
1. Double-check existing front matter. You can leave existing front matter as is.

If there is useful text in the existing landing page, add it to the landing page or create an Introduction topic nested underneath the landing page.

1. Add the `hero` shortcode to the front matter.

This shortcode becomes the banner at the top of the landing page.

Example:

```yaml
hero:
title: Grafana Alerting
level: 1
image: /media/docs/grafana-cloud/alerting-and-irm/grafana-icon-alerting.svg
width: 100
height: 100
description: Grafana Alerting allows you to learn about problems in your systems moments after they occur.
```
{{< admonition type="note" >}}
You may have to adjust the width or height to 100/110 depending on the spacing.
{{< /admonition >}}
1. Add the `card-grid` shortcode to the front matter. This shortcode is for the tiles that appear below the Explore heading.

Example:

```yaml
cards:
title_class: pt-0 lh-1
items:
- title: Grafana Alerting
href: /docs/grafana-cloud/alerting-and-irm/alerting/
description: Allows you to learn about problems in your systems moments after they occur. Monitor your incoming metrics data or log entries and set up your Alerting system to watch for specific events or circumstances and then send notifications when those things are found.
logo: /media/docs/grafana-cloud/alerting-and-irm/grafana-icon-alerting.svg
height: 24
```

{{< admonition type="note" >}}

- Start each description with a verb.

If left empty, the description for the tile is automatically inherited from the short description front matter in the linked page. The descriptions in the front matter, however, are often short and it might be a good idea to add more context, making sure they all start with a verb for consistency.

- If you are creating a landing page that appears in both Cloud and OSS, use a relative path, for example, `./set-up/`.

- Icons are only required for products. If you don't have an icon, delete `logo` from the front matter.

{{< /admonition >}}

1. To display the banner at the top of the page, add `{{</* docs/hero-simple key="hero" */>}}` after the front matter. This needs to come before the first heading.
1. Add the `## Overview` heading and your content.
1. Add the `## Explore` heading and this syntax `{{</* card-grid key="cards" type="simple" */>}}` to display the tiles below.
1. Save your topic and build your documentation to review your changes.

0 comments on commit 72c6c25

Please sign in to comment.