Files
biopython/Doc
mdehoon f2dd4207d0 In Bio.Align, deprecate infer_coordinates, and use parse_printed_alignment instead (#4684)
* replace infer_coordinates by parse_alignment_block

* update

* update

* update

* update

* update

* deprecate infer_coordinates

* update

* update

* update

* update

* fix memory leak

---------

Co-authored-by: Michiel de Hoon <mdehoon@tkx249.genome.gsc.riken.jp>
2024-03-29 23:20:29 +09:00
..
2024-01-10 14:51:02 +00:00
2021-08-31 10:41:38 +01:00
2023-01-24 20:40:24 +00:00
2023-10-05 08:47:54 +01:00
2024-03-14 11:05:43 +00:00
2023-10-05 08:47:54 +01:00
2023-11-02 09:14:55 +00:00
2024-01-16 20:19:50 +00:00

Contributing to the Biopython Tutorial
======================================

Installing the requirements
---------------------------

In the Biopython directory, install the required packages for building the documentation with::

    pip install -r .circleci/requirements-sphinx.txt

ReStructered Text Markup Language
---------------------------------

The tutorials are written in `ReStructered Text <https://en.m.wikipedia.org/wiki/ReStructuredText>`_ format.
Read the `Sphix reST Primer <https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#hyperlinks>`_ to learn how to use this format.

Building the documentation
--------------------------

Build the documentation in HTML by running ``make html`` in the Docs folder.
Make sure that you have installed necessary requirements (see instructions above).

To view the generated documentation, open ``Doc/_build/html/index.html`` in your browser.

Build a PDF of the documentation using ``make latexpdf``.
This command depends on `Latexmk <https://mg.readthedocs.io/latexmk.html>`_ and LaTeX tooling.

On Ubuntu, you can install these with the following commands::

    sudo apt install hevea texlive-latex-base texlive-latex-extra python-pygments

On Fedora (tested for Workstation 33)::

    dnf install texlive-scheme-basic texlive-preprint \
                texlive-comment texlive-minted hevea

Testing code examples
------------------------

The Biopython tutorial uses its own system for testing code examples, which is located in
``Tests/test_Tutorial.py``. You can read more about this system in the testing
chapter of the Biopython Tutorial.