2016-04-27 17:37:27 +00:00
<!DOCTYPE html>
<!-- [if IE 8]><html class="no - js lt - ie9" lang="en" > <![endif] -->
<!-- [if gt IE 8]><! --> < html class = "no-js" lang = "en" > <!-- <![endif] -->
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2016-05-09 16:13:23 +00:00
< title > Building the documentation — R3 Corda latest documentation< / title >
2016-04-27 17:37:27 +00:00
< link rel = "stylesheet" href = "_static/css/custom.css" type = "text/css" / >
2016-05-09 16:13:23 +00:00
< link rel = "top" title = "R3 Corda latest documentation" href = "index.html" / >
2016-04-28 16:15:56 +00:00
< link rel = "prev" title = "Code style guide" href = "codestyle.html" / >
2016-04-27 17:37:27 +00:00
< script src = "_static/js/modernizr.min.js" > < / script >
< / head >
< body class = "wy-body-for-nav" role = "document" >
< div class = "wy-grid-for-nav" >
< nav data-toggle = "wy-nav-shift" class = "wy-nav-side" >
< div class = "wy-side-scroll" >
< div class = "wy-side-nav-search" >
2016-05-09 16:13:23 +00:00
< a href = "index.html" class = "icon icon-home" > R3 Corda
2016-04-27 17:37:27 +00:00
< / a >
< div class = "version" >
latest
< / div >
< div role = "search" >
< form id = "rtd-search-form" class = "wy-form" action = "search.html" method = "get" >
< input type = "text" name = "q" placeholder = "Search docs" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
< br >
< a href = "api/index.html" > API reference< / a >
< / div >
< div class = "wy-menu wy-menu-vertical" data-spy = "affix" role = "navigation" aria-label = "main navigation" >
< p class = "caption" > < span class = "caption-text" > Overview< / span > < / p >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "inthebox.html" > What’ s included?< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "getting-set-up.html" > Getting set up< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "data-model.html" > Data model< / a > < / li >
2016-06-30 12:49:28 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "transaction-data-types.html" > Data types< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "consensus.html" > Consensus model< / a > < / li >
2016-04-27 17:37:27 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "messaging.html" > Networking and messaging< / a > < / li >
2016-10-11 09:30:55 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "persistence.html" > Persistence< / a > < / li >
2016-09-23 09:55:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "creating-a-cordapp.html" > Creating a Cordapp< / a > < / li >
2016-10-12 10:24:11 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "creating-a-cordapp.html#gradle-plugins-for-cordapps" > Gradle Plugins for Cordapps< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "creating-a-cordapp.html#template-build-gradle" > Template build.gradle< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "creating-a-cordapp.html#cordformation" > Cordformation< / a > < / li >
2016-04-27 17:37:27 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "running-the-demos.html" > Running the demos< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "node-administration.html" > Node administration< / a > < / li >
2016-09-23 09:55:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "corda-configuration-files.html" > The Corda Configuration File< / a > < / li >
2016-04-27 17:37:27 +00:00
< / ul >
< p class = "caption" > < span class = "caption-text" > Tutorials< / span > < / p >
2016-04-28 16:15:56 +00:00
< ul >
2016-05-24 11:27:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "where-to-start.html" > Where to start< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "tutorial-contract.html" > Writing a contract< / a > < / li >
2016-07-12 16:52:52 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "tutorial-contract-clauses.html" > Writing a contract using clauses< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "tutorial-test-dsl.html" > Writing a contract test< / a > < / li >
2016-10-11 09:30:55 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "tutorial-clientrpc-api.html" > Client RPC API< / a > < / li >
2016-04-27 17:37:27 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "protocol-state-machines.html" > Protocol state machines< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "oracles.html" > Writing oracle services< / a > < / li >
2016-10-11 09:30:55 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "tutorial-attachments.html" > Using attachments< / a > < / li >
2016-06-30 12:49:28 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "event-scheduling.html" > Event scheduling< / a > < / li >
2016-09-23 09:55:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "secure-coding-guidelines.html" > Secure coding guidelines< / a > < / li >
< / ul >
< p class = "caption" > < span class = "caption-text" > Contracts< / span > < / p >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "contract-catalogue.html" > Contract catalogue< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "contract-irs.html" > Interest Rate Swaps< / a > < / li >
< / ul >
< p class = "caption" > < span class = "caption-text" > Node API< / span > < / p >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "clientrpc.html" > Client RPC< / a > < / li >
2016-04-27 17:37:27 +00:00
< / ul >
< p class = "caption" > < span class = "caption-text" > Appendix< / span > < / p >
2016-04-28 16:15:56 +00:00
< ul class = "current" >
2016-05-24 11:27:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "release-process.html" > Release process< / a > < / li >
2016-06-13 17:27:53 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "release-process.html#steps-to-cut-a-release" > Steps to cut a release< / a > < / li >
2016-05-24 11:27:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "release-notes.html" > Release notes< / a > < / li >
2016-09-23 09:55:23 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "network-simulator.html" > Network Simulator< / a > < / li >
2016-04-27 17:37:27 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "codestyle.html" > Code style guide< / a > < / li >
2016-04-28 16:15:56 +00:00
< li class = "toctree-l1 current" > < a class = "current reference internal" href = "#" > Building the documentation< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "#requirements" > Requirements< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "#build" > Build< / a > < / li >
< / ul >
< / li >
2016-04-27 17:37:27 +00:00
< / ul >
< / div >
< / div >
< / nav >
< section data-toggle = "wy-nav-shift" class = "wy-nav-content-wrap" >
< nav class = "wy-nav-top" role = "navigation" aria-label = "top navigation" >
< i data-toggle = "wy-nav-top" class = "fa fa-bars" > < / i >
2016-05-09 16:13:23 +00:00
< a href = "index.html" > R3 Corda< / a >
2016-04-27 17:37:27 +00:00
< / nav >
< div class = "wy-nav-content" >
< div class = "rst-content" >
< div role = "navigation" aria-label = "breadcrumbs navigation" >
< ul class = "wy-breadcrumbs" >
< li > < a href = "index.html" > Docs< / a > » < / li >
< li > Building the documentation< / li >
< li class = "wy-breadcrumbs-aside" >
< a href = "_sources/building-the-docs.txt" rel = "nofollow" > View page source< / a >
< / li >
< / ul >
< hr / >
< / div >
< div role = "main" class = "document" itemscope = "itemscope" itemtype = "http://schema.org/Article" >
< div itemprop = "articleBody" >
< div class = "section" id = "building-the-documentation" >
< h1 > Building the documentation< a class = "headerlink" href = "#building-the-documentation" title = "Permalink to this headline" > ¶< / a > < / h1 >
2016-04-28 16:15:56 +00:00
< p > The documentation is under the < code class = "docutils literal" > < span class = "pre" > docs< / span > < / code > folder, and is written in reStructuredText format. Documentation in HTML format
2016-04-27 17:37:27 +00:00
is pre-generated, as well as code documentation, and this can be done automatically via a provided script.< / p >
< div class = "section" id = "requirements" >
< h2 > Requirements< a class = "headerlink" href = "#requirements" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > To build the documentation, you will need:< / p >
< ul class = "simple" >
< li > GNU Make< / li >
2016-04-28 16:15:56 +00:00
< li > Python and pip (tested with Python 2.7.10)< / li >
2016-04-27 17:37:27 +00:00
< li > Dokka: < a class = "reference external" href = "https://github.com/Kotlin/dokka" > https://github.com/Kotlin/dokka< / a > < / li >
< li > Sphinx: < a class = "reference external" href = "http://www.sphinx-doc.org/" > http://www.sphinx-doc.org/< / a > < / li >
< li > sphinx_rtd_theme: < a class = "reference external" href = "https://github.com/snide/sphinx_rtd_theme" > https://github.com/snide/sphinx_rtd_theme< / a > < / li >
< / ul >
2016-04-28 16:15:56 +00:00
< p > The Dokka JAR file needs to be placed under the < code class = "docutils literal" > < span class = "pre" > lib< / span > < / code > directory within the < code class = "docutils literal" > < span class = "pre" > r3prototyping< / span > < / code > directory, in order for the
script to find it, as in:< / p >
< div class = "highlight-shell" > < div class = "highlight" > < pre > < span > < / span > r3prototyping/lib/dokka.jar
2016-04-27 17:37:27 +00:00
< / pre > < / div >
< / div >
2016-04-28 16:15:56 +00:00
< p > Note that to install under OS X El Capitan, you will need to tell pip to install under < code class = "docutils literal" > < span class = "pre" > /usr/local< / span > < / code > , which can be
done by specifying the installation target on the command line:< / p >
2016-04-27 17:37:27 +00:00
< div class = "highlight-shell" > < div class = "highlight" > < pre > < span > < / span > sudo -H pip install --install-option < span class = "s1" > ' --install-data=/usr/local' < / span > Sphinx
sudo -H pip install --install-option < span class = "s1" > ' --install-data=/usr/local' < / span > sphinx_rtd_theme
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "build" >
< h2 > Build< a class = "headerlink" href = "#build" title = "Permalink to this headline" > ¶< / a > < / h2 >
2016-04-28 16:15:56 +00:00
< p > Once the requirements are installed, you can automatically build the HTML format user documentation and the API
documentation by running the following script:< / p >
< div class = "highlight-shell" > < div class = "highlight" > < pre > < span > < / span > scripts/generate-docsite.sh
2016-04-27 17:37:27 +00:00
< / pre > < / div >
< / div >
2016-04-28 16:15:56 +00:00
< p > Alternatively you can build non-HTML formats from the < code class = "docutils literal" > < span class = "pre" > docs< / span > < / code > folder. Change directory to the folder and then run the
following to see a list of all available formats:< / p >
< div class = "highlight-shell" > < div class = "highlight" > < pre > < span > < / span > make
< / pre > < / div >
< / div >
< p > For example to produce the documentation in HTML format:< / p >
< div class = "highlight-shell" > < div class = "highlight" > < pre > < span > < / span > make html
2016-04-27 17:37:27 +00:00
< / pre > < / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< footer >
< div class = "rst-footer-buttons" role = "navigation" aria-label = "footer navigation" >
2016-04-28 16:15:56 +00:00
< a href = "codestyle.html" class = "btn btn-neutral" title = "Code style guide" accesskey = "p" > < span class = "fa fa-arrow-circle-left" > < / span > Previous< / a >
2016-04-27 17:37:27 +00:00
< / div >
< hr / >
< div role = "contentinfo" >
< p >
2016-05-09 16:13:23 +00:00
© Copyright 2016, Distributed Ledger Group, LLC.
2016-04-27 17:37:27 +00:00
< / p >
< / div >
Built with < a href = "http://sphinx-doc.org/" > Sphinx< / a > using a < a href = "https://github.com/snide/sphinx_rtd_theme" > theme< / a > provided by < a href = "https://readthedocs.org" > Read the Docs< / a > .
< / footer >
< / div >
< / div >
< / section >
< / div >
< script type = "text/javascript" >
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'latest',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
< / script >
< script type = "text/javascript" src = "_static/jquery.js" > < / script >
< script type = "text/javascript" src = "_static/underscore.js" > < / script >
< script type = "text/javascript" src = "_static/doctools.js" > < / script >
< script type = "text/javascript" src = "_static/js/theme.js" > < / script >
< script type = "text/javascript" >
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
< / script >
< / body >
< / html >