Giter Site home page Giter Site logo

docs-mongoid's Introduction

Mongoid Documentation

This repository contains the files to handle the build and publication of the Mongoid documentation. The actual Mongoid documentation files are located in the mongoid repo.

Build Locally

To build the documentation locally,

  • Install giza, if not already installed. Note that giza requires Python 2.7 and does not work with Python 3. There is an installation guide on the MongoDB meta site to help you get started.

  • Run the following to download and build this documentation locally:

    git clone [email protected]:mongodb/docs-mongoid
    cd docs-mongoid/
    make html
    

The generated HTML will be placed in build/master/html/.

Note: The build process invokes Sphinx and expects Sphinx's various binaries to be in PATH.

Stage

Install mut following its installation instructions. Note that mut requires Python 3 and does not work with Python 2.7.

Request access to the documentation staging bucket. Obtain AWS S3 access key id and secret access key.

Create ~/.config/giza-aws-authentication.conf with the following contents:

[authentication]
accesskey=<AWS access key>
secretkey=<AWS secret key>

(If you run make stage without configuring authentication, it will also give you these instructions.)

Finally to publish the docs to the staging bucket, run:

make stage

The output will include a URL to the published documentation.

Deploy To Live Site

Install mut following its installation instructions. Note that mut requires Python 3 and does not work with Python 2.7.

Request access to the production documentation bucket. Obtain AWS S3 access key id and secret access key.

Create ~/.config/giza-aws-authentication.conf with the following contents:

[authentication]
accesskey=<AWS access key>
secretkey=<AWS secret key>

Publish the docs to the production bucket:

make publish deploy

Using Docker

Build the docker image:

docker build -t docs-mongoid .

Build the documentation to build subdir, clobbering its existing contents:

rm -rf build && \
mkdir build && \
docker run -itv `pwd`/build:/build \
  docs-mongoid sh -c 'make html && rsync -av build/ /build'

Note that since Docker container runs everything as root, the built files will also be owned by root and will require root access to modify or remove.

Deploy to live site (no need to configure ~/.config/giza-aws-authentication.conf on the host system):

docker run -it \
  -e AWS_ACCESS_KEY_ID=<AWS access key> \
  -e AWS_SECRET_ACCESS_KEY=<AWS secret key> \
  docs-mongoid make publish deploy

Contribute

Documentation sources for Mongoid are in Mongoid's primary repository: https://github.com/mongodb/mongoid/tree/master/docs/tutorials. This repository contains documentation build tooling only.

To contribute to the documentation, please sign the MongoDB Contributor Agreement if you have not already.

See the following documents that provide an overview of the documentation style and process:

File JIRA Tickets

File issue reports or requests at the Documentation Jira Project.

Listed Mongoid Branches

The branch list as well as which is the current one is maintained here: https://github.com/mongodb/docs-tools/blob/master/data/mongoid-published-branches.yaml

Licenses

All documentation is available under the terms of a Creative Commons License.

The MongoDB Documentation Project is governed by the terms of the MongoDB Contributor Agreement.

-- The MongoDB Docs Team

docs-mongoid's People

Contributors

biniona-mongodb avatar ccho-mongodb avatar gurupkk avatar i80and avatar kay-kim avatar norareidy avatar p avatar p-mongo avatar rustagir avatar schmalliso avatar terakilobyte avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.