-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
141 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
# Since 1.8 is not working on Linux, and 1.9 is not released yet. | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1.8' | ||
- name: Install dependencies | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
- name: Build and deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: julia --project=docs/ docs/make.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
# Webviews.jl | ||
|
||
[![CI Test](https://github.com/sunoru/Webviews.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/sunoru/Webviews.jl/actions/workflows/CI.yml) | ||
[![codecov](https://codecov.io/gh/sunoru/WebViews.jl/branch/main/graph/badge.svg?token=55lxcNYhBO)](https://codecov.io/gh/sunoru/WebViews.jl) | ||
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://sunoru.github.io/Webviews.jl/stable) | ||
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://sunoru.github.io/Webviews.jl/dev) | ||
|
||
Julia wrappers for [webview](https://github.com/webview/webview). | ||
Julia wrappers for [webview](https://github.com/webview/webview), | ||
a tiny cross-platform webview library. | ||
|
||
## Installation & Dependencies | ||
|
||
`Webviews.jl` requires Julia v1.8 or later on Windows and macOS, and Julia v1.9 or later on Linux. | ||
|
||
You can install this package with Julia's package manager: | ||
|
||
```julia | ||
(@v1.8) pkg> add Webviews | ||
``` | ||
|
||
For Linux users, you need to install the following dependencies: | ||
|
||
```bash | ||
# Fedora | ||
sudo dnf install gtk3-devel webkit2gtk3-devel | ||
# Debian/Ubuntu | ||
sudo apt install libwebkit2gtk-4.0-dev | ||
# Arch Linux | ||
sudo pacman -S webkit2gtk | ||
``` | ||
|
||
**Note**: `Webviews.jl` downloads its own prebuilt binaries and depends on libraries that are provided by the operating system, instead of using JLL packages. | ||
|
||
## Usage | ||
|
||
See the [docs](https://sunoru.github.io/Webviews.jl/dev/) or [examples](./examples/). | ||
|
||
## LICENSE | ||
[MIT License](./LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
|
||
[compat] | ||
Documenter = "0.27" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Documenter | ||
using Webviews | ||
|
||
makedocs( | ||
sitename = "Webviews", | ||
format = Documenter.HTML(), | ||
modules = [Webviews] | ||
) | ||
|
||
deploydocs( | ||
repo = "github.com/sunoru/Webviews.jl.git" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Webviews.jl | ||
|
||
Julia wrappers for [webview](https://github.com/webview/webview), | ||
a tiny cross-platform webview library. | ||
|
||
## Library Index | ||
|
||
```@index | ||
Pages = ["lib.md"] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Library | ||
|
||
## Index | ||
|
||
```@index | ||
Pages = ["lib.md"] | ||
``` | ||
|
||
## Public Interface | ||
|
||
```@docs | ||
Webviews | ||
Webview | ||
WindowSizeHint | ||
run(::Webview) | ||
terminate | ||
destroy | ||
window_handle | ||
title! | ||
resize!(::Webview) | ||
sizehint!(::Webview, ::WindowSizeHint) | ||
navigate! | ||
html! | ||
init! | ||
eval! | ||
bind(::Function, ::Webview, ::AbstractString) | ||
unbind | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Examples of Webviews.jl | ||
|
||
| Example | Description | | ||
| ------- | ----------- | | ||
| [bind](./bind.jl) | Bind Julia functions and call them from JavaScript. | | ||
| [multiple](./multiple.jl) | Create multiple webviews. | | ||
| [server](./server.jl) | Create a HTTP server asychronously and access it from Webview. | | ||
|
||
## Usage | ||
|
||
It is recommended to use the environment for running the examples: | ||
|
||
```bash | ||
$ julia --project=@. -e 'using Pkg; Pkg.instantiate()' | ||
$ julia --project=@. ./server.jl | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8e7496d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
8e7496d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/72700
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: