Skip to content

Commit 2c063e6

Browse files
committed
docs: base index and structure
1 parent 87ce3fc commit 2c063e6

File tree

14 files changed

+201
-435
lines changed

14 files changed

+201
-435
lines changed

.github/workflows/create-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ jobs:
2525
github_token: ${{ secrets.GITHUB_TOKEN }}
2626
goos: ${{ matrix.goos }}
2727
goarch: ${{ matrix.goarch }}
28+
ldflags: "-w -s"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ CHANGELOG.md
33
.DS_Store
44
dist
55
commitlog
6-
lab
6+
lab
7+
api_urls.json

docs/_sidebar.md

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

docs/download.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- meta -->
2+
<title>
3+
commitlog | downloads
4+
</title>
5+
<meta name="description" content="commits to changelog generator">
6+
<!-- meta end -->
7+
8+
### [commitlog](/)
9+
10+
[Manual](/manual)\
11+
[Download &darr;](/download)
12+
13+
#### Downloads
14+
15+
[commitlog-v2.0.0-beta.0-darwin-amd64.tar.gz]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-darwin-amd64.tar.gz")
16+
17+
[commitlog-v2.0.0-beta.0-darwin-amd64.tar.gz.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-darwin-amd64.tar.gz.md5")
18+
19+
[commitlog-v2.0.0-beta.0-darwin-arm64.tar.gz]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-darwin-arm64.tar.gz")
20+
21+
[commitlog-v2.0.0-beta.0-darwin-arm64.tar.gz.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-darwin-arm64.tar.gz.md5")
22+
23+
[commitlog-v2.0.0-beta.0-linux-386.tar.gz]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-linux-386.tar.gz")
24+
25+
[commitlog-v2.0.0-beta.0-linux-386.tar.gz.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-linux-386.tar.gz.md5")
26+
27+
[commitlog-v2.0.0-beta.0-linux-amd64.tar.gz]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-linux-amd64.tar.gz")
28+
29+
[commitlog-v2.0.0-beta.0-linux-amd64.tar.gz.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-linux-amd64.tar.gz.md5")
30+
31+
[commitlog-v2.0.0-beta.0-linux-arm64.tar.gz]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-linux-arm64.tar.gz")
32+
33+
[commitlog-v2.0.0-beta.0-linux-arm64.tar.gz.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-linux-arm64.tar.gz.md5")
34+
35+
[commitlog-v2.0.0-beta.0-windows-386.zip]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-windows-386.zip")
36+
37+
[commitlog-v2.0.0-beta.0-windows-386.zip.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-windows-386.zip.md5")
38+
39+
[commitlog-v2.0.0-beta.0-windows-amd64.zip]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-windows-amd64.zip")
40+
41+
[commitlog-v2.0.0-beta.0-windows-amd64.zip.md5]("https://github.com/barelyhuman/commitlog/releases/download/v2.0.0-beta.0/commitlog-v2.0.0-beta.0-windows-amd64.zip.md5")

docs/index.md

Lines changed: 116 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,126 @@
1-
<p align="center">
2-
<img src="https://raw.githubusercontent.com/barelyhuman/commitlog/main/assets/commitlog.png" height="64">
3-
<p align="center">Changelog generator using Commit History</p>
1+
<!-- meta -->
2+
<title>
3+
commitlog
4+
</title>
5+
<meta name="description" content="commits to changelog generator">
6+
<!-- meta end -->
47

5-
[![Go Report Card](https://goreportcard.com/badge/github.com/barelyhuman/commitlog)](https://goreportcard.com/report/github.com/barelyhuman/commitlog)
8+
### [commitlog](/)
69

7-
## Philosophy
10+
[Manual](/manual)\
11+
[Download &darr;](/download)
812

9-
- Work on all major operating systems
10-
- Not platform dependent, not tied to Github, Gitlab, or anything. It's just markdown.
11-
- Ability to generate change logs between version tags
12-
- Handle release versioning of the project
13-
- Stay small
13+
#### Index
1414

15-
## Why
15+
- [Source](https://github.com/barelyhuman/commitlog)
16+
- [Quick Start](#quick-start)
17+
- [About](#about)
18+
- [Philosophy](#philosophy)
19+
- [Installation](#installation)
20+
- [Manual](#manual)
21+
- [License](#license)
1622

17-
Every language has it's own isolated version of a tool like this, for someone who works with multiple languages, it's easier to
18-
have the same tool working everywhere, without having to setup something get it working. There's an even tighter scoped version of this, [nimclog](https://github.com/barelyhuman/nimclog).
23+
<h4 id="quick-start">Quick Start</h4>
1924

20-
The point of the tool is not to create super descriptive changelogs for you but to help your changelogs have enough information for you as a developer to be able to write proper changelogs while having references to the changes in one place.
25+
For the one's who already know the tool and wanna get started quickly.
2126

22-
## Documentation
27+
You can get the CLI in the following ways
2328

24-
The documentation can be read from the `docs` folder of the repository, or on the [website](https://barelyhuman.github.io/commitlog)
29+
1. You can get the binaries from the [download section](/download)
2530

26-
## License
31+
2. Using `go get`
2732

28-
[MIT](/LICENSE)
33+
```sh
34+
go get -u github.com/barelyhuman/commitlog
35+
```
36+
37+
3. Using goblin
38+
39+
```sh
40+
curl -sf https://goblin.barelyhuman.xyz/github.com/barelyhuman/commitlog | sh
41+
```
42+
43+
Once installed you can just run `commitlog generate` or the shorter version
44+
`commitlog g` to get all the changes between the recent tags.
45+
46+
<h4 id="about">About</h4>
47+
48+
<h5 id="philosophy">Philosophy</h5>
49+
50+
**_commitlog_** simply exists because I wasn't able to find a decent enough tool
51+
to do this without being bound to a specific programming language and it's
52+
toolset. The closes one to this is the `git`'s own `shortlog` and `log` commands
53+
54+
- **Language Agnostic** - No one needs the entire programming toolset or the
55+
language to be setup on the system to be able to just generate logs
56+
57+
- **Decently Sized** - Not everyone has a powerful system and CI systems are
58+
still very limited in terms of resources since they give you shared spaces and
59+
automating generating this is a common practice so it doesn't make sense for
60+
it to install a runtime worth 100MB to run it.
61+
62+
The binary itself is around 10-13MB which is fairly big for a tool like this
63+
but this is due to go's nature of embedding the platform runtime with the
64+
binary and this might not be ideal for some and so there's another similar
65+
smaller scoped version [nimclog](https://github.com/barelyhuman/nimclog) which
66+
is in KB's
67+
68+
- **Flexible** - There are no set standards for how you write commit messages.
69+
Commitlint is a good standard and pretty widely used and also what commitlog
70+
v1 used as the base for categorizing.
71+
72+
V2 however, doesn't have a set commit category standard, it accepts regex's
73+
that you will categorize your commits for you.
74+
75+
This is more for experienced developers who have a their own pattern of
76+
writing commits and would like a tool that'd work with their pattern instead
77+
of creating friction
78+
79+
- **Extensible** - The entire thing is open source and MIT licenses,
80+
specifically for you to be able to fix and add things as needed. Each command
81+
has been kept away from the domain logic to be able to use `commitlog` even as
82+
a library and build your own tool if you wish to, though if there's something
83+
you wish the CLI supported, you are free to open issues and I really like
84+
people helping with the development since that helps keeping the tool alive
85+
longer.
86+
87+
<h5 id="installation">Installation</h5>
88+
89+
The installation is pretty straightforwad. You [download](/download) the binary
90+
from the download section of this website or use something like
91+
[goblin](https://goblin.barelyhuman.xyz) to build the binary for your specific
92+
system (rarely needed) since the releases actually accommodate the most used
93+
operating systems and architectures already.
94+
95+
**Linux/Mac (Unix Systems)**
96+
97+
Once downloaded, you can use the `install` command on *nix systems to link the
98+
binary to a location that's already in your PATH variable.
99+
100+
eg:
101+
102+
```bash
103+
# install commitlog from current directory to the /usr/local/bin directory
104+
install $(pwd)/commitlog /usr/local/bin
105+
```
106+
107+
This should give you the ability to use the `commitlog` command anywhere in your
108+
system
109+
110+
**Windows**
111+
112+
Similar to the linux setup, you can download the `.exe` file and add it to a
113+
location that your environment path already has. An easier thing to do is to
114+
store the entire thing in your secondary partition and add that location to your
115+
PATH. You can use this resource from Java docs to help you with modifying the
116+
PATH variables
117+
118+
- [Modifying PATH in Windows](https://www.java.com/en/download/help/path.html)
119+
120+
<h4 id="manual">Manual</h4>
121+
122+
[Read Manual &rarr;](/manual)
123+
124+
<h4 id="license">License</h4>
125+
126+
commitlog is MIT Licensed and you can read the entire license in the [source code](https://github.com/barelyhuman/commitlog)

docs/install.md

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

docs/manual.md

Lines changed: 11 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,15 @@
1-
### [commitlog](/)
2-
3-
## Manual
4-
5-
```
6-
$ commitlog <subcommand> [flags]
7-
```
8-
9-
### Subcommands
10-
11-
- `log`
12-
- `release` (added in v0.0.7-dev.7)
1+
<!-- meta -->
2+
<title>
3+
commitlog | manual
4+
</title>
5+
<meta name="description" content="commits to changelog generator">
6+
<!-- meta end -->
137

14-
#### `commitlog log`
15-
16-
```sh
17-
eg:
18-
$ commitlog log -p .
19-
## or the shorthand
20-
$ commitlog
21-
```
22-
23-
```sh
24-
Usage of commitlog:
25-
-e string
26-
commit hash string / revision (ex. HEAD, HEAD^, HEAD~2)
27-
to stop collecting commit message at
28-
-i string
29-
commit types to be includes (default "ci|refactor|docs|fix|feat|test|chore|other")
30-
-p string
31-
path to the repository, points to the current working directory by default (default ".")
32-
-promo
33-
if enabled will add a "generated by" promotional tag to the changelog
34-
-s string
35-
commit hash string / revision (ex. HEAD, HEAD^, HEAD~2)
36-
to start collecting commit messages from
37-
-skip
38-
if enabled will skip trying to classify and just give a list of changes
39-
```
40-
41-
<small>`-promo` (added in v1.0.0)</small>
8+
### [commitlog](/)
429

43-
#### `commitlog release`
10+
[Manual](/manual)\
11+
[Download &darr;](/download)
4412

45-
```sh
46-
$ commitlog release [init | <flags>]
47-
```
13+
# Manual
4814

49-
```sh
50-
Usage of release:
51-
-beta
52-
If the release is a beta/prerelease
53-
-beta-suffix -beta.x
54-
If the release is a beta, to add/increment tag with -beta.x or mentioned string
55-
-major
56-
If release is a *major* one, will increment the x.0.0
57-
-minor
58-
If release is a *minor* one, will increment the 0.x.0
59-
-patch
60-
If release is a *patch*, will increment the 0.0.x
61-
```
15+
TBD

docs/quick-start.md

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

0 commit comments

Comments
 (0)