Skip to content

Commit

Permalink
Merge pull request #17 from hyrodium/feature/doc
Browse files Browse the repository at this point in the history
Update docs, bump version to 0.0.2
  • Loading branch information
hyrodium authored Jun 7, 2021
2 parents 7f4e5ec + 76eca71 commit e07cb1c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ImageClipboard"
uuid = "6db54171-f50f-4661-a74f-bc514ef16cee"
authors = ["hyrodium <hyrodium@gmail.com> and contributors"]
version = "0.0.1"
version = "0.0.2"

[deps]
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
Expand Down
14 changes: 14 additions & 0 deletions docs/src/functionreference.md
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
10 changes: 0 additions & 10 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/_powershell.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""
clipboard_img() -> Matrix{<:Colorant}
Paste an image from clipboard using powershell
"""
function _powershell()
Expand All @@ -25,6 +27,8 @@ end


"""
clipboard_img(img::Matrix{<:Colorant})
Copy an image to clipboard using powershell
"""
function _powershell(img::Matrix{<:Colorant})
Expand Down
4 changes: 4 additions & 0 deletions src/_wlclipboard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ function _isavailable_wlclipboard()
end

"""
clipboard_img() -> Matrix{<:Colorant}
Paste an image from clipboard using wl-paste
"""
function _wlclipboard()
Expand All @@ -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})
Expand Down
4 changes: 4 additions & 0 deletions src/_xclip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ function _isavailable_xclip()
end

"""
clipboard_img() -> Matrix{<:Colorant}
Paste an image from clipboard using xclip
"""
function _xclip()
Expand All @@ -19,6 +21,8 @@ function _xclip()
end

"""
clipboard_img(img::Matrix{<:Colorant})
Copy an image to clipboard using xclip
"""
function _xclip(img::Matrix{<:Colorant})
Expand Down

0 comments on commit e07cb1c

Please sign in to comment.