-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into DU-4/Log_out
- Loading branch information
Showing
95 changed files
with
1,176 additions
and
735 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,104 @@ | ||
# About this repository [![Build Status](https://travis-ci.com/travis-ci/docs-travis-ci-com.svg?branch=master)](https://travis-ci.com/travis-ci/docs-travis-ci-com) | ||
# About Travis CI Repository [![Build Status](https://travis-ci.com/travis-ci/docs-travis-ci-com.svg?branch=master)](https://travis-ci.com/travis-ci/docs-travis-ci-com) | ||
|
||
This is the documentation site for Travis CI! (<https://docs.travis-ci.com/>) | ||
This is the documentation site for [Travis CI!](https://docs.travis-ci.com/). | ||
Follow this guide to learn how to add new documentation and how to update existing documentation. | ||
|
||
## How to contribute | ||
## Add Documentation | ||
|
||
Fork the repository, read the rest of this README file and make some changes. | ||
Once you're done with your changes send a pull request. Thanks! | ||
The following are the steps to add documentation. | ||
|
||
## How to check your edit before sending PR | ||
1. Review the [Travis CI documentation guidelines](/STYLE.md). | ||
1. Check existing documentation. Verify that the documentation does not already exist or look for related documentation that can be enhanced. | ||
1. Determine proper placement. In the [Travis CI repository](https://github.com/travis-ci/docs-travis-ci-com/tree/master), browse to the *user* folder (or any other specific folder) and create a new branch. | ||
1. Create a new file and add the new documentation files. | ||
1. Ensure to insert the name and extension for the file. | ||
1. Commit your changes and add a short message to describe your changes. | ||
1. Test the changes locally to verify your edits. | ||
1. Submit a pull request. Include a clear title and description of the proposed changes, and click “**Create pull request**.” | ||
|
||
You can inspect how your edits will be reflected by the documentation site. Either by clicking on the Netlify preview link in your Pull Request or building the docs locally. | ||
Thank you for your contribution! The Travis CI team will review the pull request and approve any necessary changes. | ||
|
||
### Install dependencies | ||
## Update Existing Documentation | ||
|
||
1. Make sure you have Ruby and RubyGems installed. | ||
If you see a page that needs to be updated or that can be improved, follow these steps to update Travis CI's existing documentation. | ||
|
||
1. Install [bundler](http://bundler.io/): | ||
1. Review the [Travis CI documentation guidelines](/STYLE.md). | ||
1. Identify the Travis CI docs page that needs to be updated. | ||
1. Click the “**Improve this page on GitHub**” button in the top right corner. | ||
1. Once on GitHub, edit the relevant file. | ||
1. Commit your changes. Name your branch, and click the “**Propose changes**” button. | ||
1. Build the docs in a local environment to verify your edits. | ||
1. Submit a pull request. Ensure a clear title and description of the proposed changes are added, and click “**Create pull request**.” | ||
|
||
Thank you for your contribution. The Travis CI team will review the pull request and approve any necessary changes. | ||
|
||
|
||
## Build Local Environment | ||
|
||
You can inspect how the documentation site will reflect your edits. Follow the steps below to learn how to build your local environment and check all your edits before sending the pull request for approval. | ||
|
||
### Install Dependencies | ||
|
||
Follow the steps below to install dependencies. | ||
|
||
1. Ensure you have *Ruby* and *RubyGems* installed. | ||
|
||
1. Clone the [Travis CI docs](https://github.com/travis-ci/docs-travis-ci-com/tree/master) repository. | ||
|
||
1. Install [bundler](http://bundler.io/) as follows: | ||
|
||
```sh-session | ||
$ gem install bundler | ||
``` | ||
|
||
1. Install application dependencies: | ||
1. Next, install application dependencies: | ||
|
||
```sh-session | ||
$ bundle install --binstubs | ||
``` | ||
|
||
### Generate documentation | ||
### Generate Documentation | ||
|
||
Run | ||
To generate the documentation, run the following command: | ||
|
||
```sh-session | ||
$ ./bin/jekyll build | ||
``` | ||
|
||
### Run the Application Server | ||
|
||
### Run application server | ||
|
||
You are now ready to start your documentation site, using Jekyll or Puma. | ||
You are ready to start your local documentation site using Jekyll or Puma. | ||
For documentation edits, Jekyll is sufficient. | ||
|
||
#### Starting and inspecting edits with Jekyll | ||
#### Edit with Jekyll | ||
|
||
To start and inspect your edits using Jekyll, follow the steps below: | ||
|
||
1. Run Jekyll server: | ||
1. Run the *Jekyll* server: | ||
|
||
```sh-session | ||
$ ./bin/jekyll serve | ||
``` | ||
|
||
1. Open [localhost:4000](http://localhost:4000/) in your browser. | ||
|
||
#### Starting and inspecting edits with Puma | ||
#### Edit with Puma | ||
|
||
For more programmatical PRs (such as handling webhooks notification | ||
via POST), Puma is necessary. | ||
For more programmatical pull requests (such as handling webhooks notifications | ||
via POST), Puma is necessary. To start and inspect your edits using Puma, follow the steps below: | ||
|
||
1. Run Puma server: | ||
1. Run the *Puma* server: | ||
|
||
```sh-session | ||
$ ./bin/puma | ||
``` | ||
|
||
1. Open [localhost:9292](http://localhost:9292/) in your browser. | ||
|
||
### API V2 documentation | ||
### API Documentation | ||
|
||
API V2 (and 2.1) documentation is maintained in `slate/source` and is generated at build time from source. | ||
All Travis CI API V2 (and 2.1) documentation is maintained in `slate/source` and generated from the source at build time. | ||
|
||
## License | ||
|
||
Distributed under the [MIT license](https://opensource.org/licenses/MIT); the same as other Travis CI projects. | ||
Distributed under the [MIT license](https://opensource.org/licenses/MIT), like other Travis CI projects. |
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,12 +1,30 @@ | ||
## How to opt in to v2 | ||
## How to opt in to different deployment tooling versions | ||
|
||
In order to use version `v2` of our deployment tooling, please add the | ||
In order to use different version of our deployment tooling, please add the | ||
following to your `.travis.yml`: | ||
|
||
```yaml | ||
deploy: | ||
provider: <provider> | ||
# ⋮ | ||
dpl_version: <version> # Optional, defaults to the latest stable version | ||
``` | ||
if you want to use the latest edge version of the deployment tooling: | ||
```yaml | ||
deploy: | ||
provider: <provider> | ||
# ⋮ | ||
edge: true | ||
``` | ||
if you want to use other edge version of the deployment tooling: | ||
```yaml | ||
deploy: | ||
provider: <provider> | ||
# ⋮ | ||
dpl_version: <version.beta> | ||
edge: true | ||
``` | ||
{: data-file=".travis.yml"} |
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
Oops, something went wrong.