Skip to content

Commit d92cddf

Browse files
πŸŒ…
0 parents  commit d92cddf

68 files changed

Lines changed: 15769 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.github/dependabot.ymlβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
ci:
13+
uses: langston-barrett/gha/.github/workflows/rust-ci.yml@2836296ce750cde5dcba9866b62f82c019de540d
14+
with:
15+
bench: false
16+
os: ubuntu-latest
17+
18+
lint:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Spell check docs
24+
# We pin a specific version because updates can come with additional
25+
# typo fixes. These could break CI unexpectedly if we just pinned @v1.
26+
uses: crate-ci/typos@v1.34.0
27+
with:
28+
files: doc/
29+
30+
- name: Check for empty files
31+
run: ./x empty ./**/*.{md,py,sh,rs}
32+
33+
- name: Check for trailing whitespace
34+
run: ./x whitespace --check ./**/*.{md,sh}
35+
36+
# ref: xref-ci
37+
- name: Check cross-references
38+
run: ./x xref .github crates doc
39+
40+
- uses: astral-sh/ruff-action@v3
41+
42+
# ref: ruff-format
43+
- name: Check formatting with ruff
44+
run: ruff format --check ./**/*.py
45+
46+
# ref: ruff-check
47+
- name: Lint with ruff
48+
run: ruff check ./**/*.py
49+
50+
- name: Check for broken links
51+
run: |
52+
curl \
53+
--fail \
54+
--location \
55+
--proto '=https' \
56+
--show-error \
57+
--silent \
58+
--tlsv1.2 \
59+
https://github.com/langston-barrett/mdlynx/releases/download/v0.1.0/mdlynx > \
60+
/usr/local/bin/mdlynx
61+
chmod +x /usr/local/bin/mdlynx
62+
cd doc/dev/
63+
mdlynx *.md
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: dependabot
2+
on:
3+
pull_request:
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
dependabot:
11+
uses: langston-barrett/gha/.github/workflows/merge-dependabot-prs.yml@4f8fafe0214311e46be1a86b2ecb8ffc18813e42
12+
with:
13+
only-patch: false

β€Ž.github/workflows/doc.ymlβ€Ž

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: doc
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
# Only run one of these at a time because they update the global pages. Don't
10+
# cancel existing runs.
11+
group: "pages"
12+
cancel-in-progress: false
13+
14+
jobs:
15+
doc:
16+
if: false # TODO
17+
uses: langston-barrett/gha/.github/workflows/mdbook-pages.yml@8453c38f50561612c0baddb16d1438950c4d7473
18+
permissions:
19+
contents: read
20+
id-token: write
21+
pages: write
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- release*
7+
tags:
8+
- v*
9+
10+
jobs:
11+
release:
12+
uses: langston-barrett/gha/.github/workflows/rust-release.yml@8453c38f50561612c0baddb16d1438950c4d7473
13+
permissions:
14+
contents: write
15+
secrets:
16+
crates-io-token: ${{ secrets.CRATES_IO_TOKEN }}
17+
with:
18+
bin: lesshand-cli
19+
package: lesshand

β€Ž.gitignoreβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.cargo
2+
.ruff_cache
3+
*.html
4+
*.txt
5+
target/

0 commit comments

Comments
Β (0)