Skip to content

Commit 14fec43

Browse files
authored
Revert "Refactor Linutil Docs with mdBook (#8)" (#9)
This reverts commit e5a8b09.
1 parent e5a8b09 commit 14fec43

Some content is hidden

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

41 files changed

+278
-517
lines changed

.github/workflows/deploy.yml

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

.github/workflows/hugo.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.128.0
35+
steps:
36+
- name: Install Hugo CLI
37+
run: |
38+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+
- name: Install Dart Sass
41+
run: sudo snap install dart-sass
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
- name: Setup Pages
47+
id: pages
48+
uses: actions/configure-pages@v5
49+
- name: Install Node.js dependencies
50+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51+
- name: On the fly path replacement for images
52+
run: |
53+
grep -rl "/images/" ./content | xargs sed -i s@"/images/"@"/linutil-docs/images/"@g
54+
- name: Build with Hugo
55+
env:
56+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
57+
HUGO_ENVIRONMENT: production
58+
run: |
59+
hugo \
60+
--minify \
61+
--baseURL "${{ steps.pages.outputs.base_url }}/"
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: ./public
66+
67+
# Deployment job
68+
deploy:
69+
environment:
70+
name: github-pages
71+
url: ${{ steps.deployment.outputs.page_url }}
72+
runs-on: ubuntu-latest
73+
needs: build
74+
steps:
75+
- name: Deploy to GitHub Pages
76+
id: deployment
77+
uses: actions/deploy-pages@v4

.github/workflows/xtask.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
name: XTasks
22

33
on:
4-
workflow_dispatch:
4+
pull_request:
5+
paths:
6+
- "xtask"
7+
- "Cargo.toml"
8+
- "Cargo.lock"
9+
- ".cargo"
10+
- "core/tabs"
11+
- "docs"
12+
push:
13+
paths:
14+
- "xtask"
15+
- "Cargo.toml"
16+
- "Cargo.lock"
17+
- ".cargo"
18+
- "core/tabs"
19+
- "docs"
520

621
env:
722
CARGO_TERM_COLOR: always
@@ -48,5 +63,5 @@ jobs:
4863
run: |
4964
git config user.name "GitHub Actions"
5065
git config user.email "actions@github.com"
51-
git add /src/userguide.md
66+
git add /content/userguide.md
5267
git commit -m "Commit the user guide" || echo "No changes to commit"

.gitignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
book
1+
# Generated files by hugo
2+
/public/
3+
/resources/_gen/
4+
/assets/jsconfig.json
5+
hugo_stats.json
6+
7+
# Executable may be added to repository
8+
hugo.exe
9+
hugo.darwin
10+
hugo.linux
11+
12+
# Temporary lock file while building
13+
/.hugo_build.lock

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[submodule "themes/relearn"]
2+
path = themes/relearn
3+
url = https://github.com/McShelby/hugo-theme-relearn.git
14
[submodule "linutil"]
25
path = linutil
36
url = https://github.com/ChrisTitusTech/linutil.git

README.md

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

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++

book.toml

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

content/_index.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
+++
2+
title = "Welcome to the LinUtil Documentation!"
3+
type = "home"
4+
+++
5+
6+
[![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)
7+
![GitHub Downloads (specific asset, all releases)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/linutil?label=Total%20Downloads&style=for-the-badge)
8+
[![](https://dcbadge.limes.pink/api/server/https://discord.gg/bujFYKAHSp)](https://discord.gg/bujFYKAHSp)
9+
10+
[![Crates.io Version](https://img.shields.io/crates/v/linutil_tui?style=for-the-badge&color=%23af3a03)](https://crates.io/crates/linutil_tui) [![linutil AUR Version](https://img.shields.io/aur/version/linutil?style=for-the-badge&label=%5BAUR%5D%20linutil&color=%23230567ff)](https://aur.archlinux.org/packages/linutil) [![linutil-bin AUR Version](https://img.shields.io/aur/version/linutil-bin?style=for-the-badge&label=%5BAUR%5D%20linutil-bin&color=%23230567ff)](https://aur.archlinux.org/packages/linutil-bin)
11+
12+
## Running the latest release of LinUtil
13+
14+
To get started, run the following command in your terminal:
15+
16+
### Stable branch
17+
18+
```
19+
curl -fsSL https://christitus.com/linux | sh
20+
```
21+
---
22+
23+
### Installation
24+
25+
LinUtil is also available as a package in various repositories:
26+
27+
[![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions)
28+
29+
<details>
30+
<summary>Arch Linux</summary>
31+
32+
LinUtil can be installed on [Arch Linux](https://archlinux.org) with three different [AUR](https://aur.archlinux.org) packages:
33+
34+
- `linutil` - Stable release compiled from source
35+
- `linutil-bin` - Stable release pre-compiled
36+
- `linutil-git` - Compiled from the last commit (not recommended)
37+
38+
by running:
39+
40+
```bash
41+
git clone https://aur.archlinux.org/<package>.git
42+
cd linutil
43+
makepkg -si
44+
```
45+
46+
Replace `<package>` with your preferred package.
47+
48+
If you use [yay](https://github.com/Jguer/yay), [paru](https://github.com/Morganamilo/paru) or any other [AUR Helper](https://wiki.archlinux.org/title/AUR_helpers), it's even simpler:
49+
50+
```bash
51+
paru -S linutil
52+
```
53+
54+
Replace `paru` with your preferred helper and `linutil` with your preferred package.
55+
56+
</details>
57+
58+
<details>
59+
<summary>Cargo</summary>
60+
61+
LinUtil can be installed via [Cargo](https://doc.rust-lang.org/cargo) with:
62+
63+
```bash
64+
cargo install linutil
65+
```
66+
67+
Note that crates installed using `cargo install` require manual updating with `cargo install --force` (update functionality is [included in LinUtil](https://christitustech.github.io/linutil/userguide/#applications-setup))
68+
69+
</details>
70+
71+
---
72+
73+
After you've ran the command, you should see a GUI on your screen; It will look something like this:
74+
75+
![preview](/images/preview.gif)
76+
77+
> [!INFO]
78+
LinUtil is updated weekly as of the time of writing. Consequently, features and functionalities may evolve, and the documentation may not always reflect the most current images or information.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Contributing Guidelines for Linutil
2-
3-
<img src="../assets/contribute.png" width="50">
1+
+++
2+
date = '2024-10-31T18:30:23Z'
3+
title = 'Contributing'
4+
+++
45

56
Thank you for considering contributing to Linutil! We appreciate your effort in helping improve this project. To ensure that your contributions align with the goals and quality standards of Linutil, please follow these guidelines:
67

@@ -69,5 +70,4 @@ cd linutil
6970

7071
- **Agree to the license**: By contributing to Linutil, you agree that your contributions will be licensed under the project's MIT license.
7172

72-
We appreciate your contributions and look forward to collaborating with you to make Linutil better!
73-
73+
We appreciate your contributions and look forward to collaborating with you to make Linutil better!

0 commit comments

Comments
 (0)