forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate an index file for DevTools to fetch release notes from (flut…
…ter#10099) The file would be located at `https://docs.flutter.dev/f/devtools-releases.json`. The generated file currently looks like: ```json { "latest": "2.31.0", "releases": { "2.31.0": "/tools/devtools/release-notes/release-notes-2.31.0-src.md", "2.30.0": "/tools/devtools/release-notes/release-notes-2.30.0-src.md", "2.29.0": "/tools/devtools/release-notes/release-notes-2.29.0-src.md", "2.28.5": "/tools/devtools/release-notes/release-notes-2.28.5-src.md", // ... Remaining entries } } ``` I included the full path as it makes it easier for us to migrate their location in the future, but if you think it's not necessary, let me know. Then I can just include a list rather than a map. I'm open to suggestions on the file location, JSON format, and/or information contained :) --- Contributes to flutter/devtools#7114 _As follow-up once migrated away from Jekyll, I will also use this file to generate the page files._
- Loading branch information
Showing
3 changed files
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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,33 @@ | ||
# When adding the release notes for a new DevTools release, | ||
# make sure to add the version number as an entry in this list. | ||
# This step might be eliminated in the future. | ||
releases: | ||
- '2.31.0' | ||
- '2.30.0' | ||
- '2.29.0' | ||
- '2.28.5' | ||
- '2.28.4' | ||
- '2.28.3' | ||
- '2.27.0' | ||
- '2.26.1' | ||
- '2.25.0' | ||
- '2.24.0' | ||
- '2.23.1' | ||
- '2.22.2' | ||
- '2.21.1' | ||
- '2.20.0' | ||
- '2.19.0' | ||
- '2.18.0' | ||
- '2.17.0' | ||
- '2.16.0' | ||
- '2.15.0' | ||
- '2.14.0' | ||
- '2.13.1' | ||
- '2.12.2' | ||
- '2.12.1' | ||
- '2.11.2' | ||
- '2.10.0' | ||
- '2.9.2' | ||
- '2.9.1' | ||
- '2.8.0' | ||
- '2.7.0' |
This file contains 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
This file contains 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,15 @@ | ||
--- | ||
permalink: /f/devtools-releases.json | ||
layout: none | ||
--- | ||
|
||
{%- assign releases = site.data.devtools_releases.releases -%} | ||
{%- assign latest = releases | first -%} | ||
{ | ||
"latest": "{{latest}}", | ||
"releases": { | ||
{%- for release in releases %} | ||
"{{release}}": "/tools/devtools/release-notes/release-notes-{{release}}-src.md"{%- unless forloop.last -%},{%- endunless -%} | ||
{%- endfor %} | ||
} | ||
} |