Skip to content

Commit 67e38cb

Browse files
authored
Generate docs (#42)
* Add docs site * Remove .sass-cache * Remove old files
1 parent 1350084 commit 67e38cb

File tree

98 files changed

+24284
-134128
lines changed

Some content is hidden

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

98 files changed

+24284
-134128
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22
node_modules/
33
npm-debug.log
4+
docs/_site
5+
docs/.sass-cache

.jsdoc.conf.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"tags": {
3+
"allowUnknownTags": true,
4+
"dictionaries": ["jsdoc"]
5+
},
6+
"source": {
7+
"include": ["src", "package.json", "README.md"],
8+
"includePattern": ".js$",
9+
"excludePattern": "(node_modules/|docs)"
10+
},
11+
"plugins": [
12+
"plugins/markdown"
13+
],
14+
"templates": {
15+
"cleverLinks": false,
16+
"monospaceLinks": true,
17+
"useLongnameInNav": false
18+
},
19+
"opts": {
20+
"destination": "./docs/",
21+
"encoding": "utf8",
22+
"private": true,
23+
"template": "./node_modules/minami"
24+
}
25+
}

Gruntfile.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
module.exports = function(grunt) {
44
grunt.loadNpmTasks('grunt-eslint');
5-
grunt.loadNpmTasks('grunt-jsdoc');
65
grunt.loadNpmTasks('grunt-contrib-nodeunit');
76

87
grunt.initConfig({
@@ -17,21 +16,8 @@ module.exports = function(grunt) {
1716
'Gruntfile.js',
1817
'src/**/*.js'
1918
]
20-
},
21-
jsdoc: {
22-
dist: {
23-
src: ['README.md', 'src/*.js'],
24-
readme: 'README.md',
25-
version: true,
26-
options: {
27-
destination: 'docs',
28-
template: 'node_modules/ink-docstrap/template',
29-
configure: 'node_modules/ink-docstrap/template/jsdoc.conf.json'
30-
}
31-
}
3219
}
3320
});
3421

3522
grunt.registerTask('test', ['eslint', 'nodeunit']);
36-
grunt.registerTask('ship', ['test', 'jsdoc']);
3723
};

README.md

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,35 @@ The module will look for the last tag, get all the issues closed in the time bet
5959

6060
Following the options for the module:
6161

62-
- `--action=release|changelog` The **gren** action to run. Default: `release` _(see details below for changelog generator)_
63-
- `--tags=0.1.0|0.2.0,0.1.0|all` A specific tag or the range of tags to build the release notes from. You can also specify `all` to write all releases. _(To override existing releases use the --override flag)_
64-
- `--ignore-labels=wont_fix|wont_fix,duplicate` One or more labels to ignore in the output. Default: `false` _(it will still output the issue, just without the specified labels)_
65-
- `--ignore-issues-with=wont_fix|wont_fix,duplicate` Ignore issues that contains one of the specified labels. Default: `false`
66-
- `--time-wrap=latest|history` The release notes you want to include in the changelog. Default: `latest` _Only applicable to the `changelog` action_
67-
- `--changelog-filename=CHANGELOG.md` The name of the changelog file. Default: `CHANGELOG.md`
68-
- `--data-source=issues|commits` The informations you want to use to build release notes. Default: `issues`
69-
- `--draft=true|false` To set the release as a draft. Default: `false`
70-
- `--prerelease=true|false` To set the release as a prerelease. Default: `false`
71-
- `--prefix=v` Add a prefix to the tag version `e.g. v1.0.1`. Default: `null`
72-
- `--include-messages=merges|commits|all` used to filter the messages added to the release notes. Default: `commits`
73-
- `--override=true|false` Override the release notes if existing. Default: `false`
62+
### Global options
63+
64+
| Command | Options | Description | Default |
65+
| ------- | ------- | ----------- | ------- |
66+
| `--username` | **Required** | The username of the repo _e.g. `github-tools`_ | `null` |
67+
| `--repo` | **Required** | The repository name _e.g. `github-release-notes`_ | `null` |
68+
| `--action`| `release` `changelog` | The **gren** action to run. _(see details below for changelog generator)_ | `release` |
69+
| `--ignore-labels` | `wont_fix` `wont_fix,duplicate` | Ignore issues that contains one of the specified labels. | `false` |
70+
| `--ignore-issues-with` | `wont_fix` `wont_fix,duplicate` | Ignore issues that contains one of the specified labels. | `false` |
71+
| `--data-source` | `issues` `commits` | The informations you want to use to build release notes. | `issues` |
72+
| `--prefix` | **String** `e.g. v1.0.1` | Add a prefix to the tag version. | `null` |
73+
| `--override` | **Flag** | Override the release notes if existing. | `false` |
74+
| `--include-messages` | `merge` `commits` `all` | Filter the messages added to the release notes. _Only used when `data-source` used is `commits` | `commits` |
75+
76+
### Release options
77+
78+
| Command | Options | Description | Default |
79+
| ------- | ------- | ----------- | ------- |
80+
| `--draft` | **Flag** | Set the release as a draft. | `false` |
81+
| `--prerelease` | **Flag** | To set the release as a prerelease. | `false` |
82+
| `--tags` | `0.1.0` `0.2.0,0.1.0` `all` | A specific tag or the range of tags to build the release notes from. You can also specify `all` to write all releases. _(To override existing releases use the --override flag)_ | `false` |
83+
84+
### Changelog options
85+
86+
| Command | Options | Description | Default |
87+
| ------- | ------- | ----------- | ------- |
88+
| `--time-wrap` | `latest` `history` | The release notes you want to include in the changelog. | `latest` |
89+
| `--changelog-filename` | **String**, like `changelog.md` | The name of the changelog file. | `CHANGELOG.md` |
90+
7491

7592
### Config file
7693

@@ -173,7 +190,7 @@ gren --override --tags=all
173190

174191
**gren** can also update generate the changelog.
175192

176-
The following command, will generate the release notes for the latest release, and add it to an existing file or create it in the same directory where you run the command.
193+
The following command, will get the latest release notes, and add it to an existing file or create it in the same directory where you run the command.
177194

178195
```shell
179196
gren --action=changelog
@@ -187,9 +204,9 @@ The generated release notes will be added at the top of the file, and will look
187204

188205
### Generate a full changelog
189206

190-
If tou want to generate the whole changelog, you need to use the `--time-wrap=history`. This will generate a changelog based on issues (or on commit messages if the `--data-source=commits` is present).
207+
If tou want to generate the whole changelog, you need to use the `--time-wrap=history`. This will generate the changelog based on all release notes.
191208

192-
If you want to override the existing changelog, use `--override`.
209+
If you want to override the existing changelog, use `--override`. This will also generate the release notes from scratch.
193210

194211
The usage would then be:
195212

@@ -204,5 +221,3 @@ To see a full example of the changelog here [CHANGELOG.md](https://github.com/gi
204221
## JavaScript documentation
205222

206223
Find the full documentation for JavaScript function here: [http://github-tools.github.io/github-release-notes/](http://github-tools.github.io/github-release-notes/)
207-
208-
Find

0 commit comments

Comments
 (0)