Skip to content

Commit f81923e

Browse files
committed
Merge branch 'pks/docs-improvements'
2 parents 8a2de35 + 432dfda commit f81923e

File tree

9 files changed

+47
-19
lines changed

9 files changed

+47
-19
lines changed

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,27 @@ with any kind of software without having to release its source code.
2727
Additionally, the example code has been released to the public domain (see the
2828
[separate license](examples/COPYING) for more information).
2929

30+
Table of Contents
31+
=================
32+
33+
* [Quick Start](#quick-start)
34+
* [Getting Help](#getting-help)
35+
* [What It Can Do](#what-it-can-do)
36+
* [Optional dependencies](#optional-dependencies)
37+
* [Initialization](#initialization)
38+
* [Threading](#threading)
39+
* [Conventions](#conventions)
40+
* [Building libgit2 - Using CMake](#building-libgit2---using-cmake)
41+
* [Building](#building)
42+
* [Installation](#installation)
43+
* [Advanced Usage](#advanced-usage)
44+
* [Compiler and linker options](#compiler-and-linker-options)
45+
* [MacOS X](#macos-x)
46+
* [Android](#android)
47+
* [Language Bindings](#language-bindings)
48+
* [How Can I Contribute?](#how-can-i-contribute)
49+
* [License](#license)
50+
3051
Quick Start
3152
===========
3253

@@ -48,8 +69,8 @@ Quick Start
4869
2. Create the cmake build environment: `cmake ..`
4970
3. Build libgit2: `cmake --build .`
5071

51-
Trouble with these steps? Read `TROUBLESHOOTING.md`. More detailed build
52-
guidance is available below.
72+
Trouble with these steps? Read our (troubleshooting guide)[docs/troubleshooting.md].
73+
More detailed build guidance is available below.
5374

5475
Getting Help
5576
============
@@ -149,12 +170,12 @@ require assistance coordinating this, simply have the worker threads call
149170
Threading
150171
=========
151172

152-
See [THREADING](THREADING.md) for information
173+
See [threading](docs/threading.md) for information
153174

154175
Conventions
155176
===========
156177

157-
See [CONVENTIONS](CONVENTIONS.md) for an overview of the external
178+
See [conventions](docs/conventions.md) for an overview of the external
158179
and internal API/coding conventions we use.
159180

160181
Building libgit2 - Using CMake
@@ -196,7 +217,7 @@ run the index tests:
196217
$ ./libgit2_clar -sindex
197218

198219
To run a single test named `index::racy::diff`, which corresponds to the test
199-
function (`test_index_racy__diff`)[https://github.com/libgit2/libgit2/blob/master/tests/index/racy.c#L23]:
220+
function [`test_index_racy__diff`](https://github.com/libgit2/libgit2/blob/master/tests/index/racy.c#L23):
200221

201222
$ ./libgit2_clar -sindex::racy::diff
202223

@@ -233,6 +254,15 @@ The following CMake variables are declared:
233254
- `THREADSAFE`: Build libgit2 with threading support (defaults to ON)
234255
- `STDCALL`: Build libgit2 as `stdcall`. Turn off for `cdecl` (Windows; defaults to ON)
235256

257+
To list all build options and their current value, you can do the
258+
following:
259+
260+
# Create and set up a build directory
261+
$ mkdir build
262+
$ cmake ..
263+
# List all build options and their values
264+
$ cmake -L
265+
236266
Compiler and linker options
237267
---------------------------
238268

@@ -343,10 +373,10 @@ We welcome new contributors! We have a number of issues marked as
343373
and
344374
["easy fix"](https://github.com/libgit2/libgit2/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3A%22easy+fix%22)
345375
that are good places to jump in and get started. There's much more detailed
346-
information in our list of [outstanding projects](PROJECTS.md).
376+
information in our list of [outstanding projects](docs/projects.md).
347377

348-
Please be sure to check the [contribution guidelines](CONTRIBUTING.md) to
349-
understand our workflow, and the libgit2 [coding conventions](CONVENTIONS.md).
378+
Please be sure to check the [contribution guidelines](docs/contributing.md) to
379+
understand our workflow, and the libgit2 [coding conventions](docs/conventions.md).
350380

351381
License
352382
==================================
File renamed without changes.
File renamed without changes.

CONTRIBUTING.md renamed to docs/contributing.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Before wrapping up a PR, you should be sure to:
9797

9898
* Write tests to cover any functional changes
9999
* Update documentation for any changed public APIs
100-
* Add to the [`CHANGELOG.md`](CHANGELOG.md) file describing any major changes
100+
* Add to the [`changelog.md`](changelog.md) file describing any major changes
101101

102102
## Unit Tests
103103

@@ -168,10 +168,8 @@ function and type naming, code formatting, and testing.
168168

169169
We like to keep the source code consistent and easy to read. Maintaining
170170
this takes some discipline, but it's been more than worth it. Take a look
171-
at the [conventions
172-
file](https://github.com/libgit2/libgit2/blob/development/CONVENTIONS.md).
171+
at the [conventions file](conventions.md).
173172

174173
## Starter Projects
175174

176-
See our [projects
177-
list](https://github.com/libgit2/libgit2/blob/development/PROJECTS.md).
175+
See our [projects list](projects.md).
File renamed without changes.

PROJECTS.md renamed to docs/projects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ ideas that no one is actively working on.
1010

1111
## Before You Start
1212

13-
Please start by reading the [README.md](README.md),
14-
[CONTRIBUTING.md](CONTRIBUTING.md), and [CONVENTIONS.md](CONVENTIONS.md)
13+
Please start by reading the [README.md](../README.md),
14+
[contributing.md](contributing.md), and [conventions.md](conventions.md)
1515
files before diving into one of these projects. Those explain our work
1616
flow and coding conventions to help ensure that your work will be easily
1717
integrated into libgit2.

docs/release.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ We aim to release once every six months. We start the process by opening an issu
1515
- [ ] Make a release candidate
1616
- [ ] Plug any final leaks
1717
- [ ] Fix any last-minute issues
18-
- [ ] Make sure CHANGELOG reflects everything worth discussing
19-
- [ ] Update the version in CHANGELOG and the header
18+
- [ ] Make sure changelog.md reflects everything worth discussing
19+
- [ ] Update the version in changelog.md and the header
2020
- [ ] Produce a release candidate
2121
- [ ] Tag
2222
- [ ] Create maint/v0.X
@@ -26,13 +26,13 @@ We tag at least one release candidate. This RC must carry the new version in the
2626

2727
Preparing the first release candidate includes updating the version number of libgit2 to the new version number. To do so, a pull request shall be submitted that adjusts the version number in the following places:
2828

29-
- CHANGELOG.md
29+
- docs/changelog.md
3030
- include/git2/version.h
3131
- package.json
3232

3333
As soon as the pull request is merged, the merge commit shall be tagged with a lightweight tag.
3434

35-
The tagging happens via GitHub's "releases" tab which lets us attach release notes to a particular tag. In the description we include the changes in `CHANGELOG.md` between the last full release. Use the following as a base for the release notes
35+
The tagging happens via GitHub's "releases" tab which lets us attach release notes to a particular tag. In the description we include the changes in `docs/changelog.md` between the last full release. Use the following as a base for the release notes
3636

3737
This is the first release of the v0.X series, <codename>. The changelog follows.
3838

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)