Git Product home page Git Product logo

gammapy-docs's Introduction

gammapy-docs

This repository is for the Gammapy documentation build and deploy on Github pages

It does not contain the sources for the Gammmapy documentation. Those are in the docs folder of the gammapy code repository.

Overview

The docs folder of the main branch in this repo gets served at https://gammapy.github.io/gammapy-docs/

It must contain the rendered HTML Gammapy Sphinx docs in sub-folders, one for each version.

Example: http://gammapy.github.io/gammapy-docs/0.6

Special versions:

  • docs/dev - the development version
  • docs/stable/index.html - forwards to latest stable, e.g. 0.6
  • docs/index.html - forwards to docs/stable

Howto

First make sure you have the full datasets available under $GAMMAPY_DATA. They are downloaded with gammapy download datasets.

Update dev version

Beware: the command git clean -fdx will remove all untracked files and directories

Below we assume that the gammapy and the gammapy-docs are installed in the same directory.

cd gammapy
git clean -fdx
git pull
pip install -e .
time make docs-sphinx
cd ../gammapy-docs
rm -r docs/dev
cp -r ../gammapy/docs/_build/html docs/dev
git add docs/dev
git commit -m 'update docs/dev'
git push

Update a stable version

cd build
mkdir 0.10  # or whatever the version is
cd 0.10
git clone https://github.com/gammapy/gammapy.git
cd gammapy
git checkout v0.10
pip install -e .
time make docs-sphinx release=v0.10
cd ../../..
cp -r build/0.10/gammapy/docs/_build/html docs/0.10
git add docs/0.10
git commit -m 'Add docs/0.10'
git push

Then update stable/index.html to point to the new stable version.

Very old versions

An archive of very old versions of built Gammapy docs is available here: https://github.com/cdeil/gammapy-docs-rtd-archive

TODO

  • How to set up a conda env for older versions?
  • How to avoid the repo from growing forever, i.e. discarding old committed versions in docs/dev?

Notes

  • Gammapy v0.6 build doesn't work

gammapy-docs's People

Contributors

actions-user avatar adonath avatar registerrier avatar

Stargazers

 avatar  avatar

Watchers

 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.