Giter Club home page Giter Club logo

docs's Introduction

Shippable Documentation

Overview

The source for Shippable documentation is here under sources/ in the form of .rst files. These files use reStructuredText formatting with Sphinx extensions for structure, cross-linking and indexing.

The HTML files are built and hosted on readthedocs.org, appearing via proxy on docs.shippable.com. The HTML files update automatically after each change to the master.

Getting Started

To edit and test the docs, you'll need to install the Sphinx tool and its dependencies. There are two main ways to install this tool:

Native Installation

Install dependencies from requirements.txt file in your docs directory:

  • Linux: pip install -r docs/requirements.txt
  • Mac OS X: [sudo] pip-2.7 install -r docs/requirements.txt

Contributing

Working using GitHub's file editor

For small changes and typos you might want to use GitHub's built in file editor. It allows you to preview your changes right online (though there can be some differences between GitHub markdown and Sphinx RST). Just be careful not to create many commits.

Images

When you need to add images, try to make them as small as possible (e.g. as gif). Usually images should go in the same directory as the .rst file which references them, or in a subdirectory if one already exists.

Notes

Guides on using sphinx

  • To make links to certain sections create a link target like so:

      .. _hello_world:
    
      Hello world
      ===========
    
      This is a reference to :ref:`hello_world` and will work even if we
      move the target to another file or change the title of the section. 
    

    The _hello_world: will make it possible to link to this position (page and section heading) from all other pages. See the Sphinx docs for more information and examples.

  • Notes, warnings and alarms

      # a note (use when something is important)
      .. note::
    
      # a warning (orange)
      .. warning::
    
      # danger (red, use sparsely)
      .. danger::
    
    
  • Code examples

    • Start typed commands with $ (dollar space) so that they are easily differentiated from program output.

Manpages

  • To make the manpages, run make man. Please note there is a bug in Sphinx 1.1.3 which makes this fail. Upgrade to the latest version of Sphinx.
  • Then preview the manpage by running man _build/man/shippable.1, where _build/man/shippable.1 is the path to the generated manfile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.