Skip to content

Commit

Permalink
Merge branch 'master' into preconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored Aug 22, 2023
2 parents f04d127 + 3d7a69b commit 5cab9fb
Show file tree
Hide file tree
Showing 21 changed files with 242 additions and 142 deletions.
28 changes: 18 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: cargo
directory: "/"
schedule:
interval: "weekly"
# Group dependency updates into a single pull request.
groups:
dependencies:
patterns:
- "*"

- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
# Group dependency updates into a single pull request.
groups:
dependencies:
patterns:
- "*"
7 changes: 6 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ jobs:
fetch-depth: 0
- if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
gh release delete ${{ github.event.inputs.tag_name }} --yes --cleanup-tag || true
git tag -d ${{ github.event.inputs.tag_name }} || true
gh release create ${{ github.event.inputs.tag_name }} --title ${{ github.event.inputs.tag_name }} --generate-notes --prerelease
- if: ${{ github.event_name == 'schedule' }}
run: |
if [[ $(git diff nightly --name-only -B -M -C) ]]; then
if [[ -z $(git tag -l nightly) ]]; then
gh release create nightly --title nightly --generate-notes --prerelease
elif [[ $(git diff nightly --name-only -B -M -C) ]]; then
gh release delete nightly --yes --cleanup-tag || true
git tag -d nightly || true
gh release create nightly --title nightly --generate-notes --prerelease
fi
73 changes: 32 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ path = "builder.rs"

[dependencies]
lychee-lib = { path = "../../lychee-lib", version = "0.13.0", default-features = false }
tokio = { version = "1.31.0", features = ["full"] }
tokio = { version = "1.32.0", features = ["full"] }
regex = "1.9.3"
http = "0.2.9"
reqwest = { version = "0.11.18", default-features = false, features = ["gzip"] }
reqwest = { version = "0.11.19", default-features = false, features = ["gzip"] }

[features]
email-check = ["lychee-lib/email-check"]
Expand Down
2 changes: 1 addition & 1 deletion examples/client_pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "client_pool.rs"
futures = "0.3.28"
tokio-stream = "0.1.14"
lychee-lib = { path = "../../lychee-lib", version = "0.13.0", default-features = false }
tokio = { version = "1.31.0", features = ["full"] }
tokio = { version = "1.32.0", features = ["full"] }

[features]
email-check = ["lychee-lib/email-check"]
Expand Down
4 changes: 2 additions & 2 deletions examples/collect_links/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ path = "collect_links.rs"

[dependencies]
lychee-lib = { path = "../../lychee-lib", version = "0.13.0", default-features = false }
tokio = { version = "1.31.0", features = ["full"] }
tokio = { version = "1.32.0", features = ["full"] }
regex = "1.9.3"
http = "0.2.9"
tokio-stream = "0.1.14"
reqwest = { version = "0.11.18", default-features = false, features = ["gzip"] }
reqwest = { version = "0.11.19", default-features = false, features = ["gzip"] }

[features]
email-check = ["lychee-lib/email-check"]
Expand Down
2 changes: 1 addition & 1 deletion examples/extract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ path = "extract.rs"

[dependencies]
lychee-lib = { path = "../../lychee-lib", version = "0.13.0", default-features = false }
tokio = { version = "1.31.0", features = ["full"] }
tokio = { version = "1.32.0", features = ["full"] }

[features]
email-check = ["lychee-lib/email-check"]
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ path = "simple.rs"

[dependencies]
lychee-lib = { path = "../../lychee-lib", version = "0.13.0", default-features = false }
tokio = { version = "1.31.0", features = ["full"] }
tokio = { version = "1.32.0", features = ["full"] }

[features]
email-check = ["lychee-lib/email-check"]
Expand Down
22 changes: 22 additions & 0 deletions fixtures/fragments/file.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>For Testing Fragments</title>
</head>
<body>
<section id="in-the-beginning">
<p>
To start
<a href="file1.md#fragment-1">
let's run away.
</a>
</p>
</section>
<section>
<p id="a-word">Word</p>
<a href="#in-the-beginning">back we go</a>
<a href="#in-the-end">doesn't exist</a>
</section>
</body>
</html>
6 changes: 3 additions & 3 deletions fixtures/fragments/file1.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ This is a test file for the fragment loader.
Explicit fragment links are currently not supported.
Therefore we put the test into a code block for now to prevent false positives.

```
<a name="explicit-fragment"></a>
<a id="explicit-fragment"></a>

[Link to explicit fragment](#explicit-fragment)
```

[To the html doc](file.html#a-word)

## Custom Fragments

Expand Down
Loading

0 comments on commit 5cab9fb

Please sign in to comment.