tree: 081e3f8940ea117edcacca7b61b90d1b6b6db7ce [path history] [tgz]
  1. helpers/
  2. images/
  3. NEXT_RELEASE_NOTES.md
  4. README.md
packages/devtools_app/release_notes/README.md

Generating Release notes

  • Release notes for DevTools are hosted on the flutter website (see archive).

  • To add release notes for the latest release, create a PR with the appropriate changes for your release.

    • The NEXT_RELEASE_NOTES.md file contains the running release notes for the current version.
    • see example PR for an idea of how to add those to the Flutter website.
    • NOTE: when adding images, be cognizant that the images will be rendered in a relatively small window in DevTools, and should be sized accordingly.
  • Test these changes locally before creating the PR.

  • Once you are satisfied with the release notes

    • stage the Flutter website on Firebase
    • point the DevTools release notes logic to this staged url.

Staging your changes on Firebase

  • In the flutter/website directory,

    • open _config.yml
    • replace https://docs.flutter.dev with https://flutter-website-dt-staging.web.app (line 2).
  • Then run the following rom the website/ directory:

    make setup && \
    DISABLE_TESTS=1 make build && \
    firebase deploy --project devtools-staging --only hosting;
    
  • If the firebase command gives an authentication error or just says it cannot access a URL,

    • try running
      firebase logout && \
      firebase login;
      
    • then retry
      firebase deploy --project devtools-staging --only hosting
      
  • Once you see this message, the deployment was successful and now you can move on to the next step.

    ...
    
    ✔  Deploy complete!
    
    Project Console: https://console.firebase.google.com/project/flutter-website-dt-staging/overview
    Hosting URL: https://flutter-website-dt-staging.web.app
    

Testing the release notes in DevTools

  • In release_notes.dart flip the debugTestReleaseNotes flag to true.

  • from the main devtools/ directory, run the following:

    dart ./tool/build_e2e.dart
    
  • Once DevTools has been successfully built and served, you should see the following the CLI output:

...

Serving DevTools with a local devtools server...
Serving DevTools at http://127.0.0.1:57336.
  • Visit the DevTools link
  • verify the release notes viewer displays the new release notes as expected.