Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Aug 19, 2023
1 parent 8cc4997 commit a023111
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
version: 'latest'
- name: Trunk build
working-directory: fancy-example
run: trunk build --release --public-url egui_dnd
run: trunk build --release --public-url hello_egui
- name: Deploy pages
uses: crazy-max/ghaction-github-pages@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ If you're interested in using one of the experimental crates, open an issue, and
release it on crates.io.

## Example app
An example using most of the crates is available [here](https://lucasmerlin.github.io/egui_dnd/).
An example using most of the crates is available [here](https://lucasmerlin.github.io/hello_egui/).
Source code in [fancy-example](fancy-example).

## **Mature** Crates
Expand Down
3 changes: 2 additions & 1 deletion crates/egui_dnd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name = "egui_dnd"
version = "0.5.0"
edition = "2021"
authors = ["Lucas Meurer"]
repository = "https://github.com/lucasmerlin/egui_dnd"
repository = "https://github.com/lucasmerlin/hello_egui"
homepage = "https://lucasmerlin.github.io/hello_egui/"
keywords = ["egui", "drag", "drop", "ui"]
description = "A drag and drop library for egui"
license = "MIT"
Expand Down
8 changes: 4 additions & 4 deletions crates/egui_dnd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

... is a drag & drop library for [egui](https://github.com/emilk/egui).

Give it a try here: <https://lucasmerlin.github.io/egui_dnd/>
Give it a try here: <https://lucasmerlin.github.io/hello_egui/>



To get started, take a look at the [simple example.](https://github.com/lucasmerlin/egui_dnd/blob/main/examples/simple.rs)
To get started, take a look at the [simple example.](https://github.com/lucasmerlin/hello_egui/blob/main/crates/egui_dnd/examples/simple.rs)

Demo Videos:

<https://github.com/lucasmerlin/egui_dnd/assets/8009393/a05fa961-ef12-479c-a3fd-f765160e048e>
<https://github.com/lucasmerlin/hello_egui/assets/8009393/a05fa961-ef12-479c-a3fd-f765160e048e>


<https://github.com/lucasmerlin/egui_dnd/assets/8009393/4e3b7843-822f-4900-8e8b-d516794590b7>
<https://github.com/lucasmerlin/hello_egui/assets/8009393/4e3b7843-822f-4900-8e8b-d516794590b7>

2 changes: 1 addition & 1 deletion crates/egui_dnd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl<'a> Dnd<'a> {

/// Same as [Dnd::show], but with a fixed size for each item.
/// This allows items to be placed in a horizontal_wrapped ui.
/// For more info, look at the [horizontal example](https://github.com/lucasmerlin/egui_dnd/blob/main/examples/horizontal.rs).
/// For more info, look at the [horizontal example](https://github.com/lucasmerlin/hello_egui/blob/main/crates/egui_dnd/examples/horizontal.rs).
/// If you need even more control over the size, use [Dnd::show_custom] instead, where you
/// can individually size each item. See the sort_words example for an example.
pub fn show_sized<T: DragDropItem>(
Expand Down
2 changes: 1 addition & 1 deletion fancy-example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fn app(ctx: &Context, demo: &mut Demo, items: &mut Vec<Color>, stargazers: &mut

ui.label("This is a demo for egui_dnd, a drag and drop sorting library for egui.");

ui.hyperlink_to("View on GitHub", "https://github.com/lucasmerlin/egui_dnd");
ui.hyperlink_to("View on GitHub", "https://github.com/lucasmerlin/hello_egui/tree/main/crates/egui_dnd");
ui.hyperlink_to("View on Crates.io", "https://crates.io/crates/egui_dnd");
ui.hyperlink_to("View on docs.rs", "https://docs.rs/egui_dnd");
});
Expand Down
4 changes: 2 additions & 2 deletions fancy-example/src/stargazers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Stargazers {


ehttp::fetch(
Request::get(format!("https://api.github.com/repos/lucasmerlin/egui_dnd/stargazers?per_page=100&page={}", cursor.unwrap_or(1))),
Request::get(format!("https://api.github.com/repos/lucasmerlin/hello_egui/stargazers?per_page=100&page={}", cursor.unwrap_or(1))),
move |result| {
dbg!(&result);
if let Ok(data) = result {
Expand Down Expand Up @@ -118,7 +118,7 @@ impl Stargazers {
ui.label("Like");
ui.hyperlink_to(
" egui_dnd on GitHub ",
"https://github.com/lucasmerlin/egui_dnd",
"https://github.com/lucasmerlin/hello_egui/tree/main/crates/egui_dnd",
);
ui.label("to be listed here!");
});
Expand Down

0 comments on commit a023111

Please sign in to comment.