docs: What’s new & Upgrade guide 10.2 (#75909) * Added 10.2 what's new and upgrade guide * Fixed title and added guidance * add: no basic role feature to whats new * Revert "add: no basic role feature to whats new" This reverts commiteb2e31c3dc. * Add field min/max calculation to what's new * refresh token handling * update * Remove whitespace * Revert "Add field min/max calculation to what's new" This reverts commit9b66ddd0ec. * Revert refresh token handling and move it to separate PR * Docs: Add permission validation enabled by default to what's new (#76376) * Add permission validation enabled by default to whats new * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * update * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix Grafana editions note * run prettier --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fixed typo * Docs: Add No basic role feature description (#76345) * add whats next for cloud * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Auth: Whats new v10.2 (#76369) * add whatsnew auth * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * separate ds and db managed permissions whats new * 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> * What's new in transformations 10.2 (#76430) * first draft * spelling * Add doc links and images * Fix relrefs * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Add information about availability * update availability for string format transform * add field from calc modifications * Fixed link version syntax * 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> Co-authored-by: Victor Marin <victor.marin@grafana.com> * Add field min/max calculation to what's new (#76401) * Add field min/max calculation to what's new * fix whitespace * Fix which editions it's available in * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * change availability * reduce image size --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Removed What's new next addition from this PR * Added alertmanager update (#76584) * Added alertmanager update * Fixed order of items * Added availability info * remove typo Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com> * Remove heading formatting * initial draft of dataviz squad deliverables for 10.2 whats new * add dashgpt (#dashboard-ai) whats new draft * What's New: Correlations in 10.2 (#76505) * What's new about correlations * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update availability * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Updated linking guidance in template and fixed links * Fixed link Co-authored-by: Kate Brenner <32871890+katebrenner@users.noreply.github.com> * Docs: update whats new links (#76639) Replaced relrefs with fully qualified URLs * DashGPT: update availability status to public preview * Update What's New to Include information on Timezone and Applicability changes in transformations (#76571) * Update what's new * Fix misspelling * Update to fix wording Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Remove merge conflict flag Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix capitalization Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix wording Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Sentence casing Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix up wording Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix availability * One last fix :) Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fixed typo (I introduced!) --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Docs: add Cloud what's new items to 10.2 what's new (#76642) * Added Cloud what's new content * Apply suggestions from code review Co-authored-by: Jennifer Villa <jvilla2013@gmail.com> * Updated link formatting * Updated Browse Dashboards with the latest content * Updated availability * Updated wording Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> * Fixed typo Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> --------- Co-authored-by: Jennifer Villa <jvilla2013@gmail.com> Co-authored-by: joshhunt <josh@trtr.co> Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> * Fixed title * Removed all editions language * General edits * Copy edits * Fixed availability note * Copy editing Removed Visualize enum entry Added sharing section Added alerting entry Added introduction Made minor copy edits * Fixed capitalization * Fixed typo * add CTA and gif to AI features * update recorded queries text * Update edition availability Cloud permissions were missing (even though this is an OSS release I think it's important to include details about Cloud availability) and some features listed the wrong availability. * reorder topics for emphasis Emphasize the most exciting improvements * add links to feature toggle docs * move recorded queries * update wording and titles for readability * add visualization media * update wording in dataviz section * dashgpt: finalize whats new for 10.2 (finally) 😬 * Fixed typo * DataViz: finalize whats new content 😬 * Copy edits * update enterprise ds availability * Update whats-new-in-v10-2.md * Fixed style issues and availability note * Added missing Alerting items * Updated availability note * Fixed styling * Reverted what's new link to relref * update availability of No Basic Role I consulted with Eric before making this change. * Removed item not going out in this release * Update Alerting items * Fixed linting --------- Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com> Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com> Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com> Co-authored-by: Jo <joao.guerreiro@grafana.com> Co-authored-by: Victor Marin <victor.marin@grafana.com> Co-authored-by: nmarrs <nathanielmarrs@gmail.com> Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com> Co-authored-by: Kate Brenner <32871890+katebrenner@users.noreply.github.com> Co-authored-by: Kyle Cunningham <codeincarnate@users.noreply.github.com> Co-authored-by: Jennifer Villa <jvilla2013@gmail.com> Co-authored-by: joshhunt <josh@trtr.co> Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com> Co-authored-by: Mitchel Seaman <mitchel.seaman@gmail.com> Co-authored-by: Miguel Palau <mpalauzarza@gmail.com> (cherry picked from commitbe6b407d73) Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Building the docs locally
When you contribute to documentation, it's 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.
To build a local version, you need to run a process in a Docker container.
Grafana periodically updates the Docker image, docs-base, to update the styling of the Docs.
Requirements
- Docker >= 2.1.0.3
- Yarn >= 1.22.4
Build the doc site
First, make sure the Docker daemon is running on your machine. Then, follow these steps:
- 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 thesourcesdirectory.
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
mainbranch syncs to thecontent/docs/grafana/nextdirectory in thewebsiterepository, and publishes tohttps://grafana.com/docs/grafana/next/. - A PR targeting the
latest/currentrelease branch syncs to thecontent/docs/grafana/latestdirectory in thewebsiterepository, 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.