diff --git a/docs/scripts/new.py b/docs/scripts/new.py index d6fcdde..ad9f45b 100755 --- a/docs/scripts/new.py +++ b/docs/scripts/new.py @@ -34,6 +34,8 @@ if os.path.exists(dest_path): print('The %s is exists, skip it.' % dest_path) continue + else: + os.makedirs(os.path.dirname(dest_path), exist_ok=True) # write content content = src.replace(src_content, v) diff --git a/docs/src/en/doc/hello.md b/docs/src/en/doc/hello.md deleted file mode 100644 index afb22a3..0000000 --- a/docs/src/en/doc/hello.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "Hello" -weight: 1 -# geekdocFlatSection: false -# geekdocToc: 6 -# geekdocHidden: false ---- - -Write doc in there diff --git a/docs/src/en/image_provider/compatibility.md b/docs/src/en/image_provider/compatibility.md new file mode 100644 index 0000000..336f488 --- /dev/null +++ b/docs/src/en/image_provider/compatibility.md @@ -0,0 +1,18 @@ +--- +title: "compatibility of photo_manager_image_provider" +weight: 1 +# geekdocFlatSection: false +# geekdocToc: 6 +# geekdocHidden: false +--- + +The [commit][remove-load] of flutter remove `ImageStreamCompleter.load` method. + +Since flutter 3.14.0, the `photo_manager_image_provider` need use 2.0.0 version. + +| image_provider | flutter | photo_manager | +| :---: | :---: | :---: | +| ^1.0.0 | ">=2.0.0 <3.14.0" | ^2.0.0 | +| ^2.0.0 | ^3.14.0 | ^2.0.0 | + +[remove-load]: https://github.com/flutter/flutter/commit/b4f4ece40d956ad86efa340ff7fe9d0fa6deea07 diff --git a/docs/src/zh/doc/hello.md b/docs/src/zh/doc/hello.md deleted file mode 100644 index 20b3485..0000000 --- a/docs/src/zh/doc/hello.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "Hello" -weight: 1 -# geekdocFlatSection: false -# geekdocToc: 6 -# geekdocHidden: false ---- - -在这里写中文文档 diff --git a/docs/src/zh/image_provider/compatibility.md b/docs/src/zh/image_provider/compatibility.md new file mode 100644 index 0000000..5a85d8b --- /dev/null +++ b/docs/src/zh/image_provider/compatibility.md @@ -0,0 +1,18 @@ +--- +title: "photo_manager_image_provider 的兼容性" +weight: 1 +# geekdocFlatSection: false +# geekdocToc: 6 +# geekdocHidden: false +--- + +Flutter 的这个 [提交][remove-load] 移除了 `ImageStreamCompleter.load`。 + +从 flutter 3.14.0 开始, 请使用 `photo_manager_image_provider` 的 2.x 版本。 + +| image_provider | flutter | photo_manager | +| :---: | :---: | :---: | +| ^1.0.0 | ">=2.0.0 <3.14.0" | ^2.6.0 | +| ^2.0.0 | ^3.14.0 | ^2.6.0 | + +[remove-load]: https://github.com/flutter/flutter/commit/b4f4ece40d956ad86efa340ff7fe9d0fa6deea07