diff --git a/Project.toml b/Project.toml index 786d0df..445ac2f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ImageClipboard" uuid = "6db54171-f50f-4661-a74f-bc514ef16cee" authors = ["hyrodium and contributors"] -version = "0.0.1" +version = "0.0.2" [deps] ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f" diff --git a/docs/src/functionreference.md b/docs/src/functionreference.md index 78bad22..42c42dd 100644 --- a/docs/src/functionreference.md +++ b/docs/src/functionreference.md @@ -1,9 +1,23 @@ +```@meta +CurrentModule = ImageClipboard +``` + # Function reference ## Index ```@index ``` +## Public methods + +```@docs +clipboard_img() +``` + +```@docs +clipboard_img(::Matrix{<:Colorant}) +``` + ## Private methods ```@autodocs Modules = [ImageClipboard] diff --git a/docs/src/index.md b/docs/src/index.md index 296613d..9525368 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -29,16 +29,6 @@ img2 = clipboard_img() img == img2 ``` -## Public methods - -```@docs -clipboard_img() -``` - -```@docs -clipboard_img(::Matrix{<:Colorant}) -``` - ## Sample screenshots ### Copy an image ![](img/screenshot_copy.gif) diff --git a/src/_powershell.jl b/src/_powershell.jl index 109b400..7ba9942 100644 --- a/src/_powershell.jl +++ b/src/_powershell.jl @@ -1,4 +1,6 @@ """ + clipboard_img() -> Matrix{<:Colorant} + Paste an image from clipboard using powershell """ function _powershell() @@ -25,6 +27,8 @@ end """ + clipboard_img(img::Matrix{<:Colorant}) + Copy an image to clipboard using powershell """ function _powershell(img::Matrix{<:Colorant}) diff --git a/src/_wlclipboard.jl b/src/_wlclipboard.jl index 04caf18..987a7de 100644 --- a/src/_wlclipboard.jl +++ b/src/_wlclipboard.jl @@ -3,6 +3,8 @@ function _isavailable_wlclipboard() end """ + clipboard_img() -> Matrix{<:Colorant} + Paste an image from clipboard using wl-paste """ function _wlclipboard() @@ -19,6 +21,8 @@ function _wlclipboard() end """ + clipboard_img(img::Matrix{<:Colorant}) + Copy an image to clipboard using wl-copy """ function _wlclipboard(img::Matrix{<:Colorant}) diff --git a/src/_xclip.jl b/src/_xclip.jl index 37a66a6..2f092ab 100644 --- a/src/_xclip.jl +++ b/src/_xclip.jl @@ -3,6 +3,8 @@ function _isavailable_xclip() end """ + clipboard_img() -> Matrix{<:Colorant} + Paste an image from clipboard using xclip """ function _xclip() @@ -19,6 +21,8 @@ function _xclip() end """ + clipboard_img(img::Matrix{<:Colorant}) + Copy an image to clipboard using xclip """ function _xclip(img::Matrix{<:Colorant})