From 31ea315c3c4142265a6e1efe065d751e15e6eaf2 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Tue, 29 Nov 2022 18:29:02 -0800 Subject: [PATCH] Add offline docs, up the h2 size (#116241) --- dev/docs/README.md | 23 +++++++++++++++++++++++ dev/docs/assets/overrides.css | 6 ++++++ 2 files changed, 29 insertions(+) diff --git a/dev/docs/README.md b/dev/docs/README.md index c2d2679447b3..2c20f3d199fd 100644 --- a/dev/docs/README.md +++ b/dev/docs/README.md @@ -18,6 +18,29 @@ the following locations: * [Codelabs](https://flutter.dev/docs/codelabs) * [Contributing to Flutter](https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md) +## Offline Documentation + +In addition to the online sites above, Flutter's documentation can be downloaded +as an HTML documentation ZIP file for use when offline or when you have a poor +internet connection. + +**Warning: the offline documentation files are quite large, approximately 700 MB +to 900 MB.** + +Offline HTML documentation ZIP bundles: + + * [Stable channel](https://api.flutter.dev/offline/flutter.docs.zip) + * [Master channel](https://master-api.flutter.dev/offline/flutter.docs.zip) + +Or, you can add Flutter to the open-source [Zeal](https://zealdocs.org/) app +using the following XML configurations. Follow the instructions in the +application for adding a feed. + + * Stable channel Zeal XML configuration URL: + + * Master channel Zeal XML configuration URL: + + ## Importing a Library ### Framework Libraries diff --git a/dev/docs/assets/overrides.css b/dev/docs/assets/overrides.css index 409ec9972a0d..14758845f9e9 100644 --- a/dev/docs/assets/overrides.css +++ b/dev/docs/assets/overrides.css @@ -19,6 +19,12 @@ h2 { font-size: 24px; } +/* Specifically make all the Markdown h2 headings slightly + bigger, so the Markdown CSS doesn't override it. */ +.markdown h2 { + font-size: 24px; +} + section.summary h2 { color: inherit; border-bottom: none;