Skip to content

Latest commit

 

History

History
135 lines (91 loc) · 6.52 KB

CONTRIBUTING.md

File metadata and controls

135 lines (91 loc) · 6.52 KB

Contributing

Thank you for your interest in contributing to the Tizen documentation!

The document covers the process for contributing to the articles and code samples that are hosted on the Tizen documentation site. Contributions may be as simple as typo corrections or as complex as new articles.

Process for contributing

You need a basic understanding of Git and GitHub.com.

Step 1: Skip this step for small changes. Open an issue describing what you want to do, such as change an existing article or create a new one. The content inside the docs folder is organized into sections that are reflected in the Table of Contents (docs/TOC.md). Define where the topic will be located in the docs/TOC.md. Get feedback on your proposal.

Note
docs/TOC.md has maximum 4th depth. You can use #, ##, ###, and ####. The title with # will be located on GNB(Global Navigation Bar).

You can also look at our open issues list and volunteer to work on the ones you're interested in.

Step 2: Fork the /Samsung/tizen-docs repo and create a branch for your changes.

For small changes, you can use GitHub's web interface. Simply click the Edit the file in your fork of this project on the file you'd like to change. GitHub creates the new branch for you when you submit the changes.

Step 3: Make the changes on this new branch.

If it's a new topic, you can use this template file as your starting point. It contains the writing guidelines and also explains the metadata required for each article, such as author information.

Navigate to the folder that corresponds to the TOC location determined for your article in step 1. That folder contains the Markdown files for all articles in that section. If necessary, create a new folder to place the files for your content. The main article for that section is called index.md. For images and other static resources, create a subfolder called media inside the folder that contains your article, if it doesn't already exist. Inside the media folder, create a subfolder with the article name (except for the index file). Include larger samples in the samples folder under the root of the repo.

Be sure to follow the proper Markdown syntax. For more information, see the style guide.

Respository structure

  • All markdown files are in the docs folder and various subfolders.
  • The docs/index.md file defines the landing (hub) page are it appears on docs.tizen.org (TBD).
  • The docs/TOC.md file defines the left-hand navigation panel that appears when you navigate to any page other than the hub page.
  • Images are contained within media folders within each subfolder.
  • Example structure
    docs
      /open-source-tizen
        /porting
          porting-overview.md
          /media
            image.png
    

Step 4: Submit a Pull Request (PR) from your branch to Samsung/tizen-docs/master.

Each PR should usually address one issue at a time. The PR can modify one or multiple files. If you're addressing multiple fixes on different files, separate PRs are preferred.

If your PR is addressing an existing issue, add the Fixes #Issue_Number keyword to the commit message or PR description. That way, the issue is automatically closed when the PR is merged. For more information, see Closing issues via commit messages.

The Tizen Document team will review your PR and let you know if there are any other updates/changes necessary in order to approve it.

Note

After you submit PRs to the master branch, you can see your changes on https://docs.stage.tizen.org/staging/{PR #}/ before they are published on the live Tizen Docs site.

Step 5: Make any necessary updates to your branch as discussed with the team.

The maintainers will merge your PR into the master branch once feedback has been applied and your change is approved.

On a certain cadence, we push all commits from master branch into the live branch and then you'll be able to see your contribution live at https://docs.tizen.org/.

How to PR

  1. Fork form the original repository, http://github.com/Samsung/tizen-docs.

  2. Clone the forked repository.

    $ git clone <forked repository URL>
    
  3. Set to synchronize the original repository and the forked repository.

    $ git remote -v
    $ git remote add upstream http://github.com/Samsung/tizen-docs.git
    $ git remote -v
    
  4. Create a new branch on the forked repository or the local repository, and switch to the new branch.

    $ git checkout -b <new branch name>
    
  5. Create a local commit.

    $ git status
    $ git add
    $ git commit -a
    
  6. Push the branch

    $ git push origin <new branch name>
    
  7. Open a pull requst on http://github.com/Samsung/tizen-docs.git.

DOs and DON'Ts

The following list shows some guiding rules that you should keep in mind when you're contributing to the Tizen documentation:

  • DON'T surprise us with large pull requests. Instead, file an issue and start a discussion so we can agree on a direction before you invest a large amount of time.
  • DO read the style guide guideline.
  • DO use the template file as the starting point of your work.
  • DO create a separate branch on your fork before working on the articles.
  • DO follow the GitHub Flow workflow.
  • DO blog and tweet (or whatever) about your contributions, frequently!

Note
you might notice that some of the topics are not currently following all the guidelines specified here and on the style guide as well. We're working towards achieving consistency throughout the site. Check the list of open issues we're currently tracking for that specific goal.

Contributor License Agreement

You can read more about Contribution License Agreements (CLA) on Wikipedia.

Reference