forked from GitbookIO/nuts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
19 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
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,24 @@ | ||
var pkg = require('./package.json'); | ||
|
||
module.exports = { | ||
// Documentation for Nuts is stored under "docs" | ||
root: './docs', | ||
title: 'Nuts Documentation', | ||
|
||
// Enforce use of GitBook v3 | ||
gitbook: '>=3.0.0-pre.0', | ||
|
||
// Use the "official" theme | ||
plugins: ['theme-official', 'sitemap'], | ||
theme: 'official', | ||
|
||
variables: { | ||
version: pkg.version | ||
}, | ||
|
||
pluginsConfig: { | ||
sitemap: { | ||
hostname: 'https://nuts.gitbook.com' | ||
} | ||
} | ||
}; |
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,19 +1,33 @@ | ||
# Nuts Documentation | ||
|
||
Please make sure that you use the documents that match your Nuts version. | ||
Nuts is a simple (and smart) application to serve desktop-application releases. | ||
|
||
It uses GitHub as a backend to store assets, and it can easily be deployed to Heroku as a stateless service. GitHub private repositories are supported (useful to store releases of a closed-source application available on GitHub). | ||
|
||
![Schema](./schema.png) | ||
|
||
Please make sure that you use the documentation that match your Nuts version (Latest version is **{{ book.version }}**). | ||
|
||
### FAQ | ||
|
||
There are questions that are asked quite often, [check this out before creating an issue](faq.md). | ||
|
||
### Help and Support | ||
|
||
We're always happy to help out with any questions you might have. You can ask a question or signal an issue on [GitHub](https://github.com/GitbookIO/nuts/issues). | ||
|
||
### Guides | ||
|
||
- [Deploy it!](deploy.md) | ||
- [Upload assets](assets.md) | ||
- [Setup GitHub webhook](github.md) | ||
- [OS X Auto-Updater](update-osx.md) | ||
- [Windows Auto-Updater](update-windows.md) | ||
We've created a few guides to help you getting started: | ||
|
||
- [Deploy Nuts](deploy.md) | ||
- [Upload release's assets](assets.md) | ||
- [Setup GitHub integration](github.md) | ||
- [Setup OS X Auto-Updater](update-osx.md) | ||
- [Setup Windows Auto-Updater](update-windows.md) | ||
- [Debug API](api.md) | ||
- [Use it as a node module](module.md) | ||
- [Use it as a Node.js middleware](module.md) | ||
|
||
---- | ||
|
||
Using Nuts for your application? [Add it to the list](using-it.md). |
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,17 @@ | ||
# Summary | ||
|
||
- [F.A.Q](faq.md) | ||
|
||
--- | ||
|
||
- [Deploy Nuts](deploy.md) | ||
- [Upload Releases](assets.md) | ||
- [Setup GitHub webhook](github.md) | ||
- [Mac / OS X Auto-Updater](update-osx.md) | ||
- [Windows Auto-Updater](update-windows.md) | ||
|
||
--- | ||
|
||
- [Debug API](api.md) | ||
- [Node.js Middleware](module.md) | ||
|
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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
# GitHub Setup | ||
# GitHub Integration | ||
|
||
Add `http://download.myapp.com/refresh` as a GitHub webhook to refresh versions cache everytime you update a release on GitHub. | ||
By default Nuts fetch releases from GitHub Releases; but sicne Nuts is caching informations, there might be a delay before the creation of the release and the release being served to users. | ||
|
||
The secret can be configured using `GITHUB_SECRET` (default value is `secret`). | ||
To solve this issue, you can setup a webhook between Nuts and GitHub, to notify your nuts instance each time GitHub Releases are updated (created/removed/updated). | ||
|
||
### Webhook URL | ||
|
||
Add a [GitHub Webhook](https://help.github.com/articles/about-webhooks/) with the url: | ||
|
||
``` | ||
http://download.myapp.com/refresh` | ||
``` | ||
|
||
It'll refresh versions cache everytime you update a release on GitHub. | ||
|
||
### Secret | ||
|
||
The GitHub Webhook secret can be configured as a environment variable on Nuts: `GITHUB_SECRET` (default value is `secret`). |
File renamed without changes