Coder Social home page Coder Social logo

did-docs's Introduction

This is the documentation for Drupal in a Day. The documentation is formatted in Markdown (MD) and reStructuredText (RST) and can be rendered into HTML or PDF using Sphinx.

To contribute, you do not need Sphinx, especially if you write in Markdown; there are plenty of tools that render Markdown while you edit and it is very readable in its plain form (the same, though to a lesser extent, is true for RST). Also, both MD and RST are rendered in place by Github, so if you are looking at this repository through Github, most files will be rendered into pretty HTML.

If you do wish to install Sphinx, instructions are below.

Project structure

The documentation is set up in versions for each supported language. You find folders for each language at the top level. Currently, that is only Dutch (nl), although we plan to support English as soon as possible.

Each language directory is a Sphinx project in its own right. All translations are expected to follow the same file structure. Source files are contained in (language dir)/source. Build directories are ignored in the root .gitignore file.

Preparing to do your own build

Install Sphinx on Mac

To install Sphinx on the Mac you need to have pip available, the Python package manager. You can install pip through homebrew.

$ brew install pip

After installing pip, you install sphinx by issuing:

$ pip install Sphinx

Proceed to the section Clone the theme.

Install Sphinx on Windows/Linux

@todo. Please issue a pull request for these platforms if you can. Basics should be the same; install pip, install Sphinx.

Proceed to the section Clone the theme.

Install the theme

In order to build the docs, you will also need the Read the Docs Sphinx theme. Since you've already installed pip, this is a simple one-liner:

$ pip install sphinx_rtd_theme

Building the docs

There are Makefiles in each language subdirectory. These are standard Sphinx build files, which means you can build using:

$ make html

or

$ make pdf

If you've used the Mac installation instructions, chances are you installed Sphinx in brew's Python 3 environment, not in macOS's default python 2.7 environment. Issuing the above commands will have python complain it can't find the Sphinx module. In that case, you can amend the above commands to say you want to use Python 3:

$ make html SPHINXBUILD="python3 -msphinx"

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.