GithubHelp home page GithubHelp logo

terrameijar / divio-cloud-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from divio/divio-cloud-docs

0.0 2.0 0.0 3.56 MB

Divio Cloud documentation for developers

Home Page: http://docs.divio.com/

Makefile 17.03% Python 74.07% Batchfile 8.90%

divio-cloud-docs's Introduction

Divio Cloud documentation for developers

Published version: Divio Cloud developer handbook.

This documentation is intended for developers using the Divio Cloud.

Build the documentation locally

You'll need the enchant library, used by pyenchant for spelling.

Install with brew install enchant (macOS) or the appropriate command for your system.

Then:

git clone [email protected]:divio/divio-cloud-docs.git  # clone
cd divio-cloud-docs
make install  # create a virtualenv and install required components
make run  # build and serve the documentation
open http://localhost:9001  # open it in a browser

Notable techniques used in this documentation

Read the Docs

We serve our documentation via Read the Docs, a superb free service that's especially well-known in the Python world, and is ideal for open-source projects.

The documentation is written in ReStructed Text (RST) and built using Sphinx.

Read the Docs also offers a commercial service via readthedocs.com.

Ad-hoc CSS/JS in pages

We do this on a few pages, where we need something extra.

It's as simple as:

.. raw:: html

    <style>
        p {color: red;}
    </style>

at the top of the page to add some styles. See the raw version of the main index.html page for an example.

We use this to...

Create responsive columns

See docs.divio.com. There, we add the styles you see in the example above, and apply appropriate classes to the elements:

 .. rst-class:: clearfix row

 .. rst-class:: column column2


 :ref:`Tutorial <introduction>`
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 Get started with a hands-on introduction to the Divio Cloud for
 developers.

 .. rst-class:: column column2


 :ref:`How-to guides <how-to>`
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 Step-by-step guides for the developer covering key operations and procedures


 [...]

 .. rst-class:: clearfix row

 About the Divio Cloud
 ---------------------

Create an interactive debugging checklist

When a deployment fails on our Cloud, our Control Panel will direct you to the interactive debugging checklist.

It's a kind of Choose your own adventure story, but probably less fun.

This checklist relies on styles and JavaScript.

Sphinx and intersphinx extensions

If you don't already use intersphinx, you should.

This allows us to link directly to (for example) references in other Sphinx projects, such as where we link to django CMS's caching settings.

The trick here is that unlike :ref: for example, setting: is not a natively understood by Sphinx - meaning that there isn't by default a way to refer to those in another project. However, we can extend Sphinx's capacities.

See our extensions.py for how we do this (we simply steal the extensions.py from django CMS).

A reference then looks like:

:setting:`django-cms:CMS_CACHE_DURATIONS`

Documentation structure

Our documentation structure is key to its usability. See our What nobody tells you about documentation for an explanation of why it's important and how it works.

divio-cloud-docs's People

Contributors

evildmp avatar finalangel avatar glasnt avatar khink avatar kinkerl avatar mebdivio avatar stefanfoulis avatar vladox avatar vxsx avatar

Watchers

 avatar  avatar

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.