GithubHelp home page GithubHelp logo

duplode / diagrams-doc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diagrams/diagrams-doc

0.0 2.0 0.0 68.79 MB

Documentation for the diagrams project

TeX 1.32% Haskell 1.29% Makefile 0.01% HTML 97.10% Shell 0.02% CSS 0.12% JavaScript 0.15%

diagrams-doc's Introduction

Build Status

This repository holds all documentation for the diagrams framework, including

and more.

Building

Step 1: Get dependencies

To build the website (which includes the gallery, user manual, and tutorials), you will need:

On Ubuntu, the docutils suite can be installed using

sudo apt-get install python-docutils

Step 2: Generate the stack.yaml file

Run the command

./generate-stack-yaml.hs

This will generate a stack.yaml file that contains the necessary dependencies to build this project. This includes each Diagrams Github repo, so that you can build the documentation against the latest versions of each project. If new commits get pushed to the Diagrams repos, you may need to re-run ./generate-stack-yaml.hs.

Step 3: Run the builder

Once you have all the dependencies, simply do

stack build
stack exec diagrams-doc -- +RTS -N4 -RTS preview

which will build the user manual and website, and run a web server on port 8000 serving a preview of the website. In place of -N4 you should use -NX where X is the number of cores you have. By default, the build system will use all but one of your available cores; if you wish to set the number to something else, set the DIA_DOC_THREADS environment variable.

Point your browser at localhost:8000 to view it. It works well to leave this invocation of stack exec diagrams-doc -- preview running, and then start another process calling stack exec diagrams-doc -- build repeatedly in a loop. The website will now automatically be rebuilt any time any source files change.

diagrams-doc's People

Contributors

bergey avatar byorgey avatar cchalmers avatar cmears avatar danielkroeni avatar fryguybob avatar ggreif avatar ian-ross avatar jeffreyrosenbluth avatar josh-tilles avatar mdtusz avatar moiman avatar niteria avatar nomeata avatar pnutus avatar rgleichman avatar sid-kap avatar sleepymonad avatar soapie avatar sprang avatar zudov 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.