Skip to content

Commit 0ba3ad0

Browse files
authored
refactor: refactor doc site (#37)
Signed-off-by: Ayush <mail@ayuch.dev>
1 parent abc3fb5 commit 0ba3ad0

16 files changed

Lines changed: 96 additions & 104 deletions

File tree

content/en/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: GITx
2+
title: gitx
33
linkTitle: gitx
44
---
55

6-
{{< blocks/cover title="Welcome to GITx" image_anchor="top" height="full" >}}
6+
{{< blocks/cover title="Welcome to gitx" image_anchor="top" height="full" >}}
77
<a class="btn btn-lg btn-primary me-3 mb-4" href="./learn/">
88
Learn More <i class="fas fa-arrow-alt-circle-right ms-2"></i>
99
</a>
@@ -16,14 +16,14 @@ linkTitle: gitx
1616

1717

1818
{{% blocks/lead color="primary" %}}
19-
GITx provides a single terminal UI providing visibility into your git workflow,
19+
gitx provides a single terminal UI providing visibility into your git workflow,
2020
and providing a guided experience to learning and using Git.
2121
{{% /blocks/lead %}}
2222

2323

2424
{{% blocks/section color="dark" type="row" %}}
2525
{{% blocks/feature icon="fa-lightbulb" title="Interactive Learning" %}}
26-
The GITx UI helps you visualize your git history and workflow.
26+
The gitx UI helps you visualize your git history and workflow.
2727

2828
Please follow this space for updates!
2929
{{% /blocks/feature %}}
@@ -39,4 +39,4 @@ For announcements, support, and to join the community.
3939
{{% /blocks/feature %}}
4040

4141

42-
{{% /blocks/section %}}
42+
{{% /blocks/section %}}
-991 KB
Binary file not shown.

content/en/about/index.md

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

content/en/blog/how-to-contribute.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: "How to Contribute a Blog Post to GITx Documentation"
2+
title: "How to Contribute a Blog Post to gitx Documentation"
33
linkTitle: "Contributing Blog Posts"
44
date: 2025-10-02
5-
description: "A step-by-step guide on how to write and submit your first blog post to the GITx documentation site."
5+
description: "A step-by-step guide on how to write and submit your first blog post to the gitx documentation site."
66
author: "bakayu"
77
---
88

9-
Welcome to the GITx blog! We're excited to have you here and even more excited if you're thinking about contributing your own post. This guide will walk you through the entire process of creating and submitting a blog post to our documentation site.
9+
Welcome to the gitx blog! We're excited to have you here and even more excited if you're thinking about contributing your own post. This guide will walk you through the entire process of creating and submitting a blog post to our documentation site.
1010

1111
## What Should You Write About?
1212

@@ -137,7 +137,7 @@ After you submit your PR:
137137
- Our team will review your submission
138138
- We may provide feedback or suggestions for improvement
139139
- Once everything looks good, we'll merge your post
140-
- Your contribution will be live on the GITx documentation site! 🎉
140+
- Your contribution will be live on the gitx documentation site! 🎉
141141

142142
Tips for Great Blog Posts:
143143

content/en/contribute/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Contributing to GITx"
2+
title: "Contributing to gitx"
33
linkTitle: "Contribute"
44

55
menu: {main: {weight: 30}}

content/en/contribute/roadmap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ type: "docs"
154154
<li><strong>Expanded Git Command Support:</strong> Integrate a wider range of Git commands to provide more comprehensive repository management capabilities.</li>
155155
<li><strong>Bug Fixes:</strong> Address any outstanding bugs to improve stability and reliability.</li>
156156
<li><strong>Command History and Logging:</strong> Allow the secondary panel to store all the git commands history and gitx logs.</li>
157+
<li><strong>Repository Initialization:</strong> Add a feature that allows users to initialize a new Git repository in the current directory if one doesn't already exist.</li>
158+
<li><strong>Safety Warnings:</strong> Implement a warning system to alert users when they are about to initialize a repository in a potentially problematic location.</li>
159+
<li><strong>Custom Keybindings:</strong> Update config.toml logic to allow users to remap keys (currently hardcoded in keys.go).</li>
157160
</ul>
158161
</div>
159162

@@ -167,12 +170,9 @@ type: "docs"
167170
<div class="roadmap-section planned">
168171
<h3>📋 Planned <span class="status-badge planned">Upcoming</span></h3>
169172
<ul>
170-
<li><strong>Repository Initialization:</strong> Add a feature that allows users to initialize a new Git repository in the current directory if one doesn't already exist.</li>
171-
<li><strong>Safety Warnings:</strong> Implement a warning system to alert users when they are about to initialize a repository in a potentially problematic location.</li>
172173
<li><strong>Improved Visual Diff Viewer:</strong> Enhance the diff viewer to provide a more intuitive and detailed representation of changes.</li>
173174
<li><strong>Interactive Staging:</strong> Allow users to stage and unstage individual lines or hunks of code directly from the visual diff viewer.</li>
174175
<li><strong>Merge Conflict Resolver:</strong> Build a tool to help users resolve merge conflicts from within the TUI.</li>
175-
<li><strong>Custom Keybindings:</strong> Update config.toml logic to allow users to remap keys (currently hardcoded in keys.go).</li>
176176
</ul>
177177
</div>
178178

content/en/learn/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ type: "docs"
88
---
99

1010
{{% pageinfo %}}
11-
This is the documentation for GITx, a TUI helper for learning and using Git.
11+
This is the documentation for gitx, a TUI helper for learning and using Git.
1212
{{% /pageinfo %}}
1313

14-
GitX is a Terminal User Interface (TUI) helper designed to simplify the process of learning and using Git, the most widely used version control system (VCS). Instead of typing long and often confusing commands, GitX presents a more guided and interactive interface that helps beginners understand Git concepts while still working inside the terminal. It is especially useful for students, new developers, or anyone who wants to strengthen their Git fundamentals by not only providing an easy access to all the git functions but also educating about doing all the said exercises manually.
14+
gitx is a Terminal User Interface (TUI) helper designed to simplify the process of learning and using Git, the most widely used version control system (VCS). Instead of typing long and often confusing commands, gitx presents a more guided and interactive interface that helps beginners understand Git concepts while still working inside the terminal. It is especially useful for students, new developers, or anyone who wants to strengthen their Git fundamentals by not only providing an easy access to all the git functions but also educating about doing all the said exercises manually.
1515

1616
## Why do I want it?
1717

@@ -23,6 +23,6 @@ Although `gitx` provides an easier and more efficient way to access all the func
2323

2424
## Where should I go next?
2525

26-
- [Getting Started](./overview): Get started with GITx
27-
- [Installation](./docs/getting-started/installation): Install GITx
28-
- [Tutorials](./docs/tutorials/): Check out some tutorials for git!
26+
- [Overview](./overview): Overview
27+
- [Getting Started](./getting-started/): Install and learn how to use gitx.
28+
- [Tutorials](./tutorials/): Check out some tutorials for git!

content/en/learn/getting-started/installation.md renamed to content/en/learn/getting-started/01_installing_gitx.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Getting Started
3-
weight: 2
2+
title: Installing gitx
3+
weight: 1
44
type: "docs"
55
---
66

@@ -12,7 +12,17 @@ The easiest way to install `gitx` is by using the installation script. Open your
1212
curl -sSL https://raw.githubusercontent.com/gitxtui/gitx/master/install.sh | bash
1313
```
1414

15-
This script will automatically detect your operating system and architecture, download the latest release of gitx, and install it to /usr/local/bin.
15+
This script will automatically detect your operating system and architecture, download the latest release of gitx, and install it to `/usr/local/bin`.
16+
17+
## Using go install
18+
19+
Requires `go` to be installed on your system:
20+
21+
```bash
22+
go install github.com/gitxtui/gitx/cmd/gitx@latest
23+
```
24+
25+
This will download the correct binary according to your operating system and place it at `~/go/bin/gitx`.
1626

1727
## Manual Installation
1828

@@ -34,11 +44,10 @@ sudo mv gitx /usr/local/bin/
3444
To verify that gitx is installed correctly, change to a directory containing a git repo and run:
3545

3646
```Bash
37-
gitx
47+
gitx --version
3848
```
3949

50+
## Next steps:
4051

41-
42-
## Where should I go next?
43-
44-
- [Tutorials](/docs/learn/tutorials/): Check out some tutorials for git!
52+
- [Learn gitx](/docs/learn/getting-started/02_using_gitx): Learn how to use gitx!
53+
- [Tutorials](/docs/learn/tutorials/): Check out some tutorials for git!
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Basics
3+
linkTitle: basics
4+
description: Learn the basics of gitx
5+
weight: 1
6+
type: "docs"
7+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Keybinds
3+
linkTitle: keybinds
4+
description: Setting custom keybinds in gitx
5+
weight: 2
6+
type: "docs"
7+
---

0 commit comments

Comments
 (0)