
* added what's new and upgrade guide 9.5 and updated whats new index page * Added new nav and nested folders. * added empty dashboard state and dashboards section * fixed caption * fixed formatting of link and UI element * Add: onlyExternalOrgRoleSync * Adds Alerting entries * Adds alerting screenshots * More alerting screenshots * add dashboard panel redesign * Update _index.md * Adds search to notification policy entry * deletes old line * Removed nested folders (will be private preview and not part of what's new) * Docs: support bundle section for 9.5 What's New (#65641) * support bundle section for 9.5 what's new * Update whats-new-in-v9-5.md * Update docs/sources/whatsnew/whats-new-in-v9-5.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * doc feedback --------- Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com> Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Influxdb database field deprecation notice * Update reasoning * fixed typo * Docs: what's new API keys UI update (#65720) * API keys deprecation * Update docs/sources/whatsnew/whats-new-in-v9-5.md Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v9-5.md Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> --------- Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> * Docs: API keys UI updates (#65723) update * Docs: add dashboard previews deprecation notice (#65692) * previews deprecation notice * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * we set the FF emptyDashboardPage ON by default, so it's available by default * Update docs/sources/whatsnew/whats-new-in-v9-5.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * add whats new toggle for prom browser cache feature * Prometheus: metric encyclopedia feature toggle * spell check * Product editorial pass Adds hyperlinks, notes release stages, updates intro, Adds content to upgrade guide * add blurb for prom query cache * Add more context to org role sync Add more context to organization role sync about the ability to change a user's organization role even then sync is enabled. Also outlined why this is valuable and when it should be used. * copy edit of upgrade guide * copy edit and link fixes * Update docs/sources/whatsnew/whats-new-in-v9-5.md Makes it clear what can happen after sign in. Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v9-5.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v9-5.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Apply suggestions from code review * fixes link * Adds dark screenshot for alerting * fixes alerting title * Update whats-new-in-v9-5.md * added missing quotation mark * trigger linting * small change to trigger linting * fix title to follow pattern * Update whats-new-in-v9-5.md * Clearer explanation * wording edits * fixed heading levels * fix title wording * wording edit and availability fix * remove extra space * final copy edit --------- Co-authored-by: Zsofia <zsofia.komaromi@gmail.com> Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com> Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Co-authored-by: Ieva <ieva.vasiljeva@grafana.com> Co-authored-by: ismail simsek <ismailsimsek09@gmail.com> Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com> Co-authored-by: polinaboneva <polina.boneva@grafana.com> Co-authored-by: Galen <galen.kistler@grafana.com> Co-authored-by: bohandley <brendan.ohandley@gmail.com> Co-authored-by: Mitchel Seaman <mitchel.seaman@gmail.com> Co-authored-by: danielkenlee <115471695+danielkenlee@users.noreply.github.com> Co-authored-by: Chris Moyer <chris.moyer@grafana.com> Co-authored-by: Fabrizia Rossano <117294258+frossano-grafana@users.noreply.github.com>
Building the docs locally
When you contribute to documentation, it is a good practice to build the docs on your local machine to make sure your changes appear as you expect. This README explains the process for doing that.
Requirements
Docker >= 2.1.0.3 Yarn >= 1.22.4
Build the doc site
- On the command line, first change to the docs folder:
cd docs
. - Run
make docs
. This launches a preview of the website with the current grafana docs athttp://localhost:3002/docs/grafana/latest/
which will refresh automatically when changes are made to content in thesources
directory.
If you have the grafana/website repo checked out in the same directory as the grafana repo, then you can run make docs-local-static
to use local assets (such as images).
Content guidelines
Edit content in the sources
directory.
Contributing
Using relref
for internal links
Use the Hugo shortcode relref any time you are linking to other internal docs pages.
Syntax is:
{{< relref "example.md" >}}
You might need to add more context for the link (containing folders and so on, folder/example.md
) if Hugo says the relref is ambiguous.
Managing redirects
When moving content around or removing pages it's important that users following old links are properly redirected to the new location. We do this using the aliases feature in Hugo.
If you are moving a page, add an aliases
entry in the front matter referencing the old location of the page which will redirect the old url to the new location.
If you are removing a page, add an aliases
entry in the front matter of the most-applicable page referencing the location of the page being removed.
If you are copying an existing page as the basis for a new one, be sure to remove any aliases
entries in the front matter in your copy to avoid conflicting redirects.
Edit the side menu
The side menu is automatically build from the file structure. Use the weight front matter parameter to order pages.
To specify different menu text from the page title, use the front matter parameter menuTitle
.
Add images
Please see our help documentation on Image, diagram, and screenshot guidelines for comprehensive information.
Deploy changes to grafana.com
When a PR is merged with changes in the docs/sources
directory, those changes are automatically synced by a GitHub action (.github/workflows/publish.yml
) to the grafana/website repo.
- A PR that targets the
main
branch syncs to thecontent/docs/grafana/next
directory in thewebsite
repository, and publishes tohttps://grafana.com/docs/grafana/next/
. - A PR targeting the
latest/current
release branch syncs to thecontent/docs/grafana/latest
directory in thewebsite
repository, and publishes tohttps://grafana.com/docs/grafana/latest/
.
Once the sync is complete, the website will automatically publish to production - no further action is needed.