Code Monkey home page Code Monkey logo

doctrine-website's Introduction

Doctrine Website

Build Status

This is the Doctrine website code.

Setup

First clone the source code for the website to a directory like /data:

cd /data
git clone [email protected]:doctrine/doctrine-website.git
composer install

Next clone the repository which holds the built source code to /data/doctrine-website-build-prod:

git clone [email protected]:doctrine/doctrine-website-build.git /data/doctrine-website-build-prod

Create a development directory for you to create dev builds in /data/doctrine-website-build-dev for testing:

mkdir /data/doctrine-website-build-dev

Config

Copy the distribution config file:

cp app/config/local.yml.dist app/config/local.yml

Prepare Docs for Build

This command accepts an argument for where the Doctrine repositories with the documentation will be cloned:

./doctrine build-docs

By default only the RST docs are built but you can pass the --api option to generate the API docs using Sami:

./doctrine build-docs --api

To build the search indexes pass the --search option:

./doctrine build-docs --search

Build the Website for Development

Now you are ready to build the website for the first time:

./doctrine build-website

Setup lcl.doctrine-project.org locally and point your webserver at /data/doctrine-website-build-dev to see the website:

Watch for Changes

You can watch for changes in the source code and automatically build the website:

./doctrine watch

The browser will automatically refresh after the build finishes.

Build the Website for Production

Now to make a production build:

./doctrine build-website --env=prod

To publish the new version pass the --publish option:

./doctrine build-website --env=prod --publish

doctrine-website's People

Contributors

carusogabriel avatar guilhermeblanco avatar jwage avatar lcobucci avatar lex111 avatar majkl578 avatar malarzm avatar matthewtrask avatar mikesimonson avatar morozov avatar ocramius avatar petk avatar powerkiki avatar simpod avatar

Stargazers

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