Giter Site home page Giter Site logo

plotdocs.jl's Introduction

PlotDocs.jl

Documentation for Plots.jl

Editing the Docs

To edit the documentation, simply edit the Markdown files in docs/src. Documenter.jl will automatically rebuild the documentation when changes are merged to master.

The new documentation files will be pushed to the gh-pages branch in this repository (useful for debugging the Plots.jl documentation build through CI).

When building new docs for a release (e.g. 1.Y.Z), don't forget to manually delete the previous patch version in gh-pages (1.Y.(Z - 1)), thus avoiding filling up the deployment quota of 10Gb imposed by github.

Building the docs

With proper dependencies installed, run the following on your local terminal:

$ CI=true julia --project=docs docs/make.jl

Setting the environment variable CI=true is optional, but the result will be closer to the remote docs building process.

To only build part of the documentation (faster dev), use the following envionment variables:

  • PLOTDOCS_BACKENDS='GR PyPlot' to select backends;
  • PLOTDOCS_EXAMPLES='1 22 60' to select gallery examples.

Contributing demos

The demos are valid julia scripts written with Literate markup syntax and managed by DemoCards.jl. The following steps shows a common workflow to add demos:

  1. create your julia script in any sub-folder in docs/user_gallery/. For instance, docs/user_gallery/misc/gr_lorenz_attractor.jl;
  2. configure the demo using DemoCards YAML frontmatter. You may also check how other demos are configured as a reference;
  3. write the demo in Julia with the Literate markup syntax;
  4. activate the docs environment and add PlotDocs.jl to the environment via import Pkg; Pkg.activate("docs");
  5. preview the demo using DemoCards.preview_demos feature. For instance, you can partially build one single file via preview_demos("docs/user_gallery/misc/gr_lorenz_attractor.jl"), or the entire section via preview_demos("docs/user_gallery/misc"), or even the entire page via preview_demos("docs/user_gallery").

plotdocs.jl's People

Contributors

aramirezreyes avatar asinghvi17 avatar beastyblacksmith avatar boundaryvalueproblems avatar chrisrackauckas avatar daschw avatar felixcremer avatar femtocleaner[bot] avatar heiderich avatar heitorpb avatar hydroid7 avatar ianbutterworth avatar iblislin avatar isentropic avatar jackdevine avatar jw3126 avatar lakshyakhatri avatar logankilpatrick avatar ma-laforge avatar maxbennedich avatar mforets avatar mkborregaard avatar mortenpi avatar nanjj avatar saschamann avatar szcf-weiya avatar t-bltg avatar tbreloff avatar tshort avatar yha 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.