ohif-viewer/docs/latest/_book/contributing.html
2019-03-04 14:04:21 +01:00

459 lines
14 KiB
HTML

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Contributing · OHIF</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-anchors/plugin.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-versions/plugin.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-theme-cornerstone/cornerstone.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="prev" href="faq/general.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="./">
<a href="./">
Introduction
</a>
</li>
<li class="chapter " data-level="1.2" >
<span>
Documentation Version
</span>
</li>
<li class="chapter " data-level="1.3" >
<span>
Essentials
</span>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="essentials/getting-started.html">
<a href="essentials/getting-started.html">
Getting Started
</a>
</li>
<li class="chapter " data-level="1.3.2" data-path="essentials/troubleshooting.html">
<a href="essentials/troubleshooting.html">
Troubleshooting
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" >
<span>
Connecting to Image Archives
</span>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="connecting-to-image-archives/dicomweb.html">
<a href="connecting-to-image-archives/dicomweb.html">
DICOM Web
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="2.1" >
<span>
I Want To
</span>
<ul class="articles">
<li class="chapter " data-level="2.1.1" data-path="I-want-to/script-tag.html">
<a href="I-want-to/script-tag.html">
Embed the viewer using a script tag
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="3.1" >
<span>
FAQ
</span>
<ul class="articles">
<li class="chapter " data-level="3.1.1" data-path="faq/general.html">
<a href="faq/general.html">
General
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter active" data-level="4.1" data-path="contributing.html">
<a href="contributing.html">
Contributing
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >Contributing</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="contributing"><a name="contributing" class="plugin-anchor" href="#contributing"><i class="fa fa-link" aria-hidden="true"></i></a>Contributing</h1>
<h3 id="i-would-like-to-contribute-code---how-do-i-do-this"><a name="i-would-like-to-contribute-code---how-do-i-do-this" class="plugin-anchor" href="#i-would-like-to-contribute-code---how-do-i-do-this"><i class="fa fa-link" aria-hidden="true"></i></a>I would like to contribute code - how do I do this?</h3>
<p>Fork the repository, make your change and submit a pull request.</p>
<h3 id="any-guidance-on-submitting-changes"><a name="any-guidance-on-submitting-changes" class="plugin-anchor" href="#any-guidance-on-submitting-changes"><i class="fa fa-link" aria-hidden="true"></i></a>Any guidance on submitting changes?</h3>
<p>While we do appreciate code contributions, triaging and integrating contributed code changes can be very time consuming. Please consider the following tips when working on your pull requests:</p>
<ul>
<li>Functionality is appropriate for the repository. Consider posting on the forum if you are not sure.</li>
<li>Code quality is acceptable. We don&apos;t have coding standards defined, but make sure it passes ESLint and looks like the rest of the code in the repository.</li>
<li>Quality of design is acceptable. This is a bit subjective so you should consider posting on the forum for specific guidance.</li>
<li>The scope of the pull request is not too large. Please consider separate pull requests for each feature as big pull requests are very time consuming to understand.</li>
</ul>
<p>We will provide feedback on your pull requests as soon as possible. Following the tips above will help ensure your changes are reviewed.</p>
<h3 id="testing-contribution-pull-requests"><a name="testing-contribution-pull-requests" class="plugin-anchor" href="#testing-contribution-pull-requests"><i class="fa fa-link" aria-hidden="true"></i></a>Testing contribution pull requests</h3>
<p>OHIF uses <a href="netlify.com">netlify</a> so that pull requests are autogenerated and available for testing.</p>
<p>For example, <a href="https://deploy-preview-237--ohif.netlify.com/viewer/?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/sampleDICOM.json" target="_blank">this url</a> allows you to test <a href="https://github.com/OHIF/Viewers/pull/237" target="_blank">pull request 237, the request that created this FAQ entry,</a> using data pulled from Amazon S3.</p>
<p>Replacing the number 237 in the link below with your pull request number should let you test it as well and you can use this link for discussions on github without requiring reviewers to download and build your branch.</p>
<pre><code>https://deploy-preview-237--ohif.netlify.com/viewer/?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/sampleDICOM.json
</code></pre><p>If you have made a documentation change, a link like this will let you preview the gitbook generated by the pull request:</p>
<pre><code>https://deploy-preview-237--ohif.netlify.com/contributing.html
</code></pre>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="faq/general.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: General">
<i class="fa fa-angle-left"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Contributing","level":"4.1","depth":1,"previous":{"title":"General","level":"3.1.1","depth":2,"path":"faq/general.md","ref":"faq/general.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-cornerstone","-fontsettings","github","ga","sitemap","anchors","versions","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/OHIF/Viewers"},"livereload":{},"search":{},"theme-cornerstone":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"sitemap":{"hostname":"https://docs.ohif.org"},"ga":{"configuration":"auto","token":"UA-110573590-2"},"versions":{"type":"branches","gitbookConfigURL":"https://raw.githubusercontent.com/OHIF/Viewers/master/docs/book.json","options":[{"value":"https://docs.ohif.org/history/v1/","text":"Version 1.0.0 (Meteor)"},{"value":"https://docs.ohif.org/","text":"Version 2.0.0","selected":true}]},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/OHIF/Viewers/edit/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"OHIF","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":">3.0.0","description":"Documentation for the OHIF framework"},"file":{"path":"contributing.md","mtime":"2019-03-04T12:43:38.746Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-03-04T12:56:39.144Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-edit-link/plugin.js"></script>
<script src="gitbook/gitbook-plugin-github/plugin.js"></script>
<script src="gitbook/gitbook-plugin-ga/plugin.js"></script>
<script src="gitbook/gitbook-plugin-versions/plugin.js"></script>
<script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
</body>
</html>