Skip to content

Commit 3c61f42

Browse files
Merge branch 'main' into multi-selection
2 parents 59c732f + 90b0c05 commit 3c61f42

Some content is hidden

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

63 files changed

+315
-179
lines changed

mkdocs.yml renamed to .github/mkdocs.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
site_name: Chris Titus LinUtil Official Documentation
22
repo_url: https://github.com/ChrisTitusTech/linutil
3+
docs_dir: '../docs'
34

45
nav:
56
- Introduction: 'index.md'
67
- User Guide: 'userguide.md'
7-
- Contribute: 'contribute.md'
8-
- Known Issues: 'KnownIssues.md'
8+
- Contributing Guide: 'contribute.md'
9+
- Documentation:
10+
- Known Issues: 'KnownIssues.md'
911
- FAQ: 'faq.md'
1012

1113
theme:
1214
name: material
13-
custom_dir: 'overrides'
15+
custom_dir: '../overrides'
1416
features:
1517
- navigation.tabs
1618
- navigation.sections
@@ -25,20 +27,28 @@ theme:
2527
logo: assets/favicon.png
2628
favicon: assets/favicon.png
2729
palette:
30+
# Palette toggle for automatic mode
31+
- media: "(prefers-color-scheme)"
32+
toggle:
33+
icon: material/brightness-auto
34+
name: Switch to light mode
35+
36+
# Palette toggle for light mode
2837
- media: "(prefers-color-scheme: light)"
2938
scheme: default
39+
accent: blue
3040
toggle:
31-
icon: material/toggle-switch-off-outline
41+
icon: material/brightness-7
3242
name: Switch to dark mode
33-
primary: black
34-
accent: purple
43+
44+
# Palette toggle for dark mode
3545
- media: "(prefers-color-scheme: dark)"
3646
scheme: slate
47+
primary: black
48+
accent: blue
3749
toggle:
38-
icon: material/toggle-switch
50+
icon: material/weather-night
3951
name: Switch to light mode
40-
primary: teal
41-
accent: lime
4252
markdown_extensions:
4353
- admonition
4454
- pymdownx.details
@@ -62,4 +72,16 @@ markdown_extensions:
6272
- pymdownx.inlinehilite
6373
- def_list
6474
- pymdownx.tasklist:
65-
custom_checkbox: true
75+
custom_checkbox: true
76+
- toc:
77+
permalink: true
78+
79+
plugins:
80+
- search
81+
- awesome-pages
82+
- git-revision-date-localized
83+
- minify:
84+
minify_html: true
85+
htmlmin_opts:
86+
remove_comments: true
87+
cache_safe: true

.github/requirements.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Babel==2.15.0
2+
bracex==2.5
3+
cairocffi==1.7.1
4+
CairoSVG==2.7.1
5+
certifi==2024.7.4
6+
cffi==1.17.0
7+
charset-normalizer==3.3.2
8+
click==8.1.7
9+
colorama==0.4.6
10+
csscompressor==0.9.5
11+
cssselect2==0.7.0
12+
defusedxml==0.7.1
13+
ghp-import==2.1.0
14+
gitdb==4.0.11
15+
GitPython==3.1.43
16+
htmlmin2==0.1.13
17+
idna==3.7
18+
Jinja2==3.1.4
19+
jsmin==3.0.1
20+
Markdown==3.6
21+
MarkupSafe==2.1.5
22+
mergedeep==1.3.4
23+
mkdocs==1.6.0
24+
mkdocs-awesome-pages-plugin==2.9.3
25+
mkdocs-get-deps==0.2.0
26+
mkdocs-git-revision-date-localized-plugin==1.2.6
27+
mkdocs-material==9.5.31
28+
mkdocs-material-extensions==1.3.1
29+
mkdocs-minify-plugin==0.8.0
30+
natsort==8.4.0
31+
packaging==24.1
32+
paginate==0.5.6
33+
pathspec==0.12.1
34+
pillow==10.4.0
35+
platformdirs==4.2.2
36+
pycparser==2.22
37+
Pygments==2.18.0
38+
pymdown-extensions==10.9
39+
python-dateutil==2.9.0.post0
40+
pytz==2024.1
41+
PyYAML==6.0.2
42+
pyyaml_env_tag==0.1
43+
regex==2024.7.24
44+
requests==2.32.3
45+
six==1.16.0
46+
smmap==5.0.1
47+
tinycss2==1.3.0
48+
urllib3==2.2.2
49+
watchdog==4.0.1
50+
wcmatch==9.0
51+
webencodings==0.5.1

.github/workflows/github-pages.yml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
name: GitHub Pages Deploy
2+
23
on:
3-
release:
4-
types: [published, prereleased]
5-
workflow_dispatch:
6-
permissions:
7-
contents: write
4+
push:
5+
paths:
6+
- 'mkdocs.yml'
7+
- 'docs/**'
8+
- 'overrides/**'
9+
- 'CONTRIBUTING.md'
10+
workflow_dispatch:
11+
812
jobs:
9-
deploy:
13+
build-and-deploy:
1014
runs-on: ubuntu-latest
15+
1116
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v4
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
1419
with:
15-
python-version: 3.x
16-
- uses: actions/cache@v4
20+
fetch-depth: '0' # Fetch all commit history for all branches as well as tags.
21+
22+
- name: Setup Python
23+
uses: actions/setup-python@v5
1724
with:
18-
key: ${{ github.ref }}
19-
path: .cache
20-
- run: pip install mkdocs-material
21-
- run: pip install pillow cairosvg
22-
- run: mkdocs gh-deploy --force
25+
python-version: 3.x # Install latest Stable release of Python 3
26+
cache: 'pip' # Caching pip dependencies
27+
28+
- name: Install Necessary Dependencies
29+
run: pip install -r .github/requirements.txt
30+
31+
- name: Build & Deploy using mkdocs
32+
run: mkdocs gh-deploy --force -f .github/mkdocs.yml

Cargo.lock

Lines changed: 36 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
1-
[package]
2-
name = "tui"
1+
[workspace.package]
2+
license = "MIT"
33
version = "0.1.0"
4-
edition = "2021"
54

6-
[dependencies]
7-
clap = { version = "4.5.16", features = ["derive"] }
8-
crossterm = "0.28.1"
5+
[workspace.dependencies]
96
ego-tree = "0.6.2"
10-
oneshot = "0.1.8"
11-
portable-pty = "0.8.1"
12-
ratatui = "0.28.1"
13-
tui-term = "0.1.12"
14-
include_dir = "0.7.4"
15-
tempdir = "0.3.7"
16-
serde = { version = "1.0.205", features = ["derive"] }
17-
toml = "0.8.19"
18-
which = "6.0.3"
19-
unicode-width = "0.1.13"
20-
21-
[build-dependencies]
22-
chrono = "0.4.33"
23-
24-
[[bin]]
25-
name = "linutil"
26-
path = "src/main.rs"
27-
287

8+
[workspace]
9+
members = ["tui", "core"]
10+
resolver = "2"
2911

3012
[profile.release]
31-
opt-level = 3
13+
opt-level = "z"
3214
debug = false
3315
lto = true
3416
codegen-units = 1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Version](https://img.shields.io/github/v/release/ChrisTitusTech/linutil?color=%230567ff&label=Latest%20Release&style=for-the-badge)](https://github.com/ChrisTitusTech/linutil/releases/latest)
44
![GitHub Downloads (specific asset, all releases)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/linutil?label=Total%20Downloads&style=for-the-badge)
5+
[![](https://dcbadge.limes.pink/api/server/https://discord.gg/bujFYKAHSp)](https://discord.gg/bujFYKAHSp)
56

67
![Preview](docs/assets/preview.png)
78

build.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

build/linutil

-248 KB
Binary file not shown.

core/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "linutil_core"
3+
edition = "2021"
4+
version.workspace = true
5+
license.workspace = true
6+
7+
[dependencies]
8+
include_dir = "0.7.4"
9+
tempdir = "0.3.7"
10+
serde = { version = "1.0.205", features = ["derive"] }
11+
toml = "0.8.19"
12+
which = "6.0.3"
13+
ego-tree = { workspace = true }

0 commit comments

Comments
 (0)