GithubHelp home page GithubHelp logo

colinbrislawn / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qiime2/docs

0.0 2.0 0.0 2.25 MB

Source repository for https://docs.qiime2.org

License: BSD 3-Clause "New" or "Revised" License

Makefile 5.99% HTML 15.36% JavaScript 1.10% Python 72.26% CSS 5.28%

docs's Introduction

QIIME 2 documentation source

Source repository for https://docs.qiime2.org.

This repository does not include built docs. Do not commit built docs to this repository.

Make source changes in this repository as described in Contributing to the docs below and submit these changes as a pull request.

Contributing source changes is a separate step from building and publishing the changes. See Publishing below for building and publishing the docs to the live site (typically this will be done by one of the QIIME 2 developers).

Contributing to the docs

  1. Install the dependencies necessary to build the docs:

    pip install -r requirements.txt
  2. Install the QIIME 2 framework. Typically you'll want the latest development version (i.e. master branch). You can find the latest builds for your operating system here. Make sure you get the raw link for your OS (e.g. linux-64 or osx-64) then you can use conda install --file <URL> to install.

  3. Make your changes to the source RST.

    When writing shell commands in the docs, use the custom .. command-block:: directive. This directive formats the commands with shell syntax highlighting and will execute each command, reporting any errors (similar to doctests). You'll need the latest development versions (i.e. master branches) of the QIIME 2 packages required by the commands in the docs.

    If you're writing shell commands that shouldn't be automatically executed (e.g. conda install commands, cd commands, etc.), use the :no-exec: option with the command-block directive. Check out the existing docs for examples.

  4. Run make preview to build the docs without running any of the command-block commands. Use this to quickly build the docs while developing them (e.g. to check correct rendering of RST).

  5. Run make linkcheck to make sure all URLs can be reached.

  6. When you're done with your changes, run make html to build the docs and run all command-block commands. This can take awhile to complete (currently 20-30 minutes). If you didn't make changes to any command-block commands, or add any new ones, you can skip this step.

Publishing

Docs are hosted on AWS S3. Perform the following steps to build and publish the docs:

  1. Install the AWS CLI. There are many ways to do this. For example, it is pip-installable:

    pip install awscli
  2. Configure the AWS CLI with the proper login credentials (e.g. access key, secret access key, etc.) to access the docs.qiime2.org S3 bucket. Access is currently limited to core QIIME 2 developers.

  3. Build the docs:

    make html
  4. Upload the built docs to S3, specifying the QIIME 2 version these docs were built for. For example, if the docs were built for the QIIME 2 2.0.6 release, use the bucket prefix (i.e. subdirectory) 2.0.6. Use --delete in case the build is replacing a previous versioned build.

    aws s3 sync build/html s3://docs.qiime2.org/<build-version> --acl public-read --delete
  5. Optional: If this build should be the default version accessible from https://docs.qiime2.org, modify the HTTP redirect in publish-assets/index.html to point to this build's version.

    Note: The default version should be the latest public release of QIIME 2. Development version builds can be uploaded but should not be redirected to.

    i. Upload the modified publish-assets/index.html file:

    aws s3 cp publish-assets/index.html s3://docs.qiime2.org/ --acl public-read

    ii. Commit the modified publish-assets/index.html file and submit a pull request.

The build should now be available on the live site! ๐Ÿป

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.