-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Build and deploy docs site (#77)
chore: doc corrections chore: Add missing header chore: Removed 'solution items'
- Loading branch information
1 parent
fdfec1f
commit 68fb737
Showing
23 changed files
with
264 additions
and
1,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,8 @@ packages | |
bin | ||
obj | ||
integration/temp | ||
log.txt | ||
/build | ||
/docs/api/*.yml | ||
/docs/api/.manifest | ||
coverage.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"cSpell.words": [ | ||
"simpleversion" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,35 @@ | ||
![Logo] | ||
|
||
SimpleVersion | ||
============= | ||
[![Nuget](https://img.shields.io/nuget/v/SimpleVersion.Core.svg?logo=nuget)][NugetRel] | ||
[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/SimpleVersion.Core.svg?logo=nuget)][NugetPre] | ||
[![Azure DevOps tests (branch)](https://img.shields.io/azure-devops/tests/Kieranties/SimpleVersion/1/master.svg?logo=azuredevops)][AzureRelease] | ||
[![License](https://img.shields.io/github/license/Kieranties/SimpleVersion.svg?logo=github)][License] | ||
|
||
Brief | ||
----- | ||
|
||
SimpleVersion aims to simplify how you version the artifacts of your git repository. | ||
|
||
Using SimpleVersion you can generate consistent, expected version numbers for | ||
each commit in your repository, based on a few simple configuration options. | ||
|
||
SimpleVersion uses some base configuration and the 'height' of your commit history | ||
to generate a version. Height is calculated as the number of commits since your | ||
last change to the version. | ||
|
||
Future versions of SimpleVersion aim to provide: | ||
+ Validation of the version based on branch configuration | ||
+ Custom formatting configuration to support custom versioning schemes | ||
+ Git hooks to apply versioning changes based on commit messages | ||
+ and more! | ||
|
||
Why? | ||
---- | ||
|
||
SimpleVersion borrows ideas from other excellent versioning tools, notably: | ||
[GitVersion] and [NerdBank.GitVersioning][NerdBank]. These tools also deliver | ||
the ability to version your repository based on the commits but work in a | ||
different manner: | ||
+ GitVersion relies heavily on branch names, merge messages and more. I have found this | ||
can sometimes cause issues without extreme management of best practices. | ||
+ Nerdbank is an excellent tool that removes many of the issues I ran into with | ||
GitVersion, however is more limited in scope for custom labelling formats. | ||
|
||
Usage | ||
----- | ||
Check out the [documentation site][docs] for guidance. | ||
|
||
To use SimpleVersion, you simply need to add a `.simpleversion.json` file to the | ||
root of your git repository and commit it. | ||
|
||
## Configuration | ||
Build | ||
----- | ||
|
||
```json | ||
{ | ||
"version": "0.1.0", | ||
"label": [ "alpha2" ], | ||
"branches": { | ||
"release": [ | ||
"^refs/heads/master$", | ||
"^refs/heads/preview/.+$", | ||
"^refs/heads/release/.+$" | ||
] | ||
} | ||
} | ||
To build SimpleVersion locally, run `build.ps1` from the root of the repository: | ||
```posh | ||
> .\build.ps1 # => Runs a full build with unit tests | ||
> .\build.ps1 -BuildDocs # => Runs a full build and creates the docs site | ||
> .\build.ps1 -BuildDocs -ServeDocs # Runs a full builds and serves the docs site | ||
``` | ||
The above configuration tells SimpleVersion that the version will be `0.1.0` and | ||
should have a release label of `alpha2`. As their is a pre-release label, the | ||
height will be appended to label, generating a [Semver2] version `0.1.0-alpha2.3` | ||
if their were three commits since the version was last set. | ||
|
||
For further guidance, see the [configuration documentation][ConfigDoc] and the [usage documentation][UsageDoc]. | ||
|
||
Resetting The Height | ||
-------------------- | ||
|
||
The height will be reset to 0 when SimpleVersion detects a change to either the | ||
`version` or the `label` in the `.simpleversion.json` file. | ||
Contributions | ||
------------- | ||
|
||
> You must commit changes to the file for SimpleVersion to identify the change | ||
Contributions, pull-requests, issues, and any other communications on the project | ||
are most welcome! Please use one of the [issue templates] to get going. | ||
|
||
[logo]: /docs/img/logo.png | ||
[semver2]: https://semver.org/spec/v2.0.0.html | ||
[GitVersion]: https://github.com/GitTools/GitVersion | ||
[NerdBank]: https://github.com/aarnott/Nerdbank.GitVersioning | ||
[ConfigDoc]: /docs/Configuration.md | ||
[UsageDoc]: /docs/Usage.md | ||
[License]: /LICENSE | ||
[NugetPre]: https://www.nuget.org/packages?q=simpleversion | ||
[NugetRel]: https://www.nuget.org/packages?q=simpleversion&prerel=false | ||
[AzureRelease]: https://dev.azure.com/Kieranties/SimpleVersion/_build?definitionId=1 | ||
[NugetRel]: https://www.nuget.org/packages?q=simpleversion&prerel=false | ||
[NugetPre]: https://www.nuget.org/packages?q=simpleversion | ||
[AzureRelease]: https://dev.azure.com/Kieranties/SimpleVersion/_build?definitionId=1 | ||
[License]: https://kieranties.mit-license.org/ | ||
[Docs]: https://simpleversion.kieranties.com | ||
[Issue Templates]: https://github.com/Kieranties/SimpleVersion/issues/new/choose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# PLACEHOLDER | ||
TODO: Add .NET projects to the *src* folder and run `docfx` to generate **REAL** *API Documentation*! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Introduction | ||
href: intro.md | ||
- name: Configuration | ||
href: configuration.md | ||
- name: Results | ||
href: results.md | ||
- name: Usage | ||
href: usage.md |
Oops, something went wrong.