Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New learnosm contributor's guide #494

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Contributing to the LearnOSM site guide

## Contribution Workflow
Learn how to set up GitHub & Git, set up a local copy of the LearnOSM site, make changes and submit pull requests using GitHub and Git on the command line or GitHub Desktop.

## Contribution Guidelines
Translations, Documentation Style Guide, Formatting files with Markdown and Jekyll
__________________

## Contribution Workflow

### Step 0: Getting started with GitHub & Git
- To get started you must create a GitHub account and install Git on your command line.

### [Step 1: Setting up a local copy of the LearnOSM site on your computer]()
- To set up a local copy of the [LearnOSM](learnosm.org) site on your computer so you can preview the changes you have made, you must create a copy (or fork) of the site through your GitHub account and then add it to your computer using Git on the command line.

### [Step 2: Syncing your local copy of LearnOSM and managing your branches](docs/syncing-your-local-copy-of-learnosm-and-managing-your-branches)
- Sync your local site with the original one and learn the best practices for preparing changes by managing your Git branches.

### Step 3: Making changes and submitting pull requests
- Submit pull requests to the main LearnOSM site for review.

____________

## Contribution Guidelines

### Translations
- See the [Translations guide]() for more details on translating.

### Documentation Style Guide
- See the working document in []()

### Formatting files with Markdown and Jekyll
- Jekyll uses a front matter at the top of each Markdown file to track how to make changes.

Improve this guide.
1 change: 1 addition & 0 deletions docs/documentation-style-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Documentation Style Guide
12 changes: 12 additions & 0 deletions docs/step-0-getting-started-with-github-and-git.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Step 0: Getting started with GitHub & Git
- To get started you must create a GitHub account and set up Git on your command line.

### Create a GitHub account
Sign up at [GitHub](https://github.com/) for your free account if you haven't already. Check out GitHub's ["Signing up for a new GitHub account"](https://help.github.com/articles/signing-up-for-a-new-github-account/) for more details.

### Install and set up Git
Start setting up Git by configuring your email and user name by following [GitHub's setup instructions](https://help.github.com/articles/set-up-git/).

*Note: You only need to complete these steps once*

### **Next Steps:** Continue to [Step 1: Setting up a local copy of the LearnOSM site on your computer](/docs/step-1-setting-up-a-local-copy-of-the-LearnOSM-site-on-your-computer)
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
## Step 1: Setting up a local copy of the LearnOSM site on your computer
- To set up a local copy of the [LearnOSM](learnosm.org) site on your computer so you can preview the changes you have made, you must create a copy (or fork) of the site through your GitHub account and then add it to your computer using Git on the command line.

*Note: You only need to complete these steps once*

### Create a copy (fork) of the site through your GitHub account
1. Navigate to the LearnOSM site repository at [`https://github.com/hotosm/learnosm`](https://github.com/hotosm/learnosm) on GitHub.

2. To create a copy of the site repository click the fork button in the right hand corner.
![fork-example](http://www.developer.com/imagesvr_ce/6467/GitHub-Pull-image001.gif)

3. Next you should see GitHub making a copy of the main LearnOSM site repository owned by hotsom.
![fork-copy-in-action](https://help.github.com/assets/images/site/fork-a-repo.gif)

Now, you should see your own copy or fork of the LearnOSM site repository on GitHub.

Check out GitHub's guide on [forking](https://help.github.com/articles/fork-a-repo/) if you need more help.

### Download your forked copy of the site to your computer
You can download your copy of the site to your computer using the command line or GitHub Desktop. Either way to preview a local copy of your site you must use the command line but cloning your site with GitHub Desktop is easier.

#### Clone your site on the command line

1. Find the HTTPS URL and copy it to your clipboard.
https://guides.github.com/activities/forking/

1. Open up your command line.

2. Navigate to the place on your computer where you want to store your local copy of the learnosm site. In this example we will save it in a folder or directory called opensource.
- 2.1 Create a directory called "opensource" or whatever you prefer.
```
$ mkdir opensource
```

- 2.2 Navigate into your new directory
```
$ cd opensource
opensource$
```

3. Download your forked copy of the site to your computer by running this command `git clone https://github.com/hotosm/learnosm.git` You should see the site download.

If you run into any problems check out GitHub's [Cloning a repository](https://help.github.com/articles/cloning-a-repository/) guide.

#### Clone your site sing GitHub Desktop

1. Install GitHub Desktop and authenticate to GitHub using the "[Setting up GitHub Desktop](https://help.github.com/desktop/guides/getting-started/setting-up-github-desktop/)" guide.

2. Save a copy of your learnosm fork by using the "[Cloning a repository from GitHub Desktop]( https://help.github.com/desktop/guides/contributing/cloning-a-repository-from-github-desktop/)" guide.

To open your local copy of the site in the command line, right click on the learnosm repository clone in the left corner and select "open in the terminal" or "open in the command prompt." You can also open your local copy of the site in a text editor such as Atom from right clicking on your repository in GitHub Desktop.

### Sync your local copy of the site respository with the original one at hotosm/learnosm
1. On GitHub Navigate to the original [hotosm/learnosm]() repository

2. Copy the HTTPS URL at the top of the repository. You will use this as the upstream repository URL later on.
- For an example see step 2 of this [Sync a fork](https://help.github.com/articles/fork-a-repo/#step-3-configure-git-to-sync-your-fork-with-the-original-spoon-knife-repository) guide.

3. If you haven not already, navigate to the place that you cloned your learnosm site on the command line.

4. To sync your local copy with hotosm/learnosm follow these steps for [Configuring a remote for a fork]() starting with step 2 and using `https://github.com/hotosm/learnosm.git` as your upstream repository URL.

### **Next Steps:** Continue to [Step 3: Preparing to submit changes ](/docs/step-3-setting-up-a-local-copy-of-the-LearnOSM-site-on-your-computer)
Empty file.
Empty file added docs/translations.md
Empty file.