Skip to content

Commit

Permalink
Merge pull request #262 from alneberg/update_doc
Browse files Browse the repository at this point in the history
Major update to documentation
  • Loading branch information
alneberg committed Aug 1, 2019
2 parents b1c22db + e9d6053 commit cd90a08
Show file tree
Hide file tree
Showing 17 changed files with 250 additions and 334 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ When changing something in the develop branch, it should be added here.
- [#254](https://github.com/BinPro/CONCOCT/pull/254) - Slight cleanup of concoct refine
- [#258](https://github.com/BinPro/CONCOCT/pull/258) - New suffices (.concoct_part_XX) are now used for contig parts
- [#261](https://github.com/BinPro/CONCOCT/pull/261) - Epsilon argument removed as it was not working and is not very useful
- [#262](https://github.com/BinPro/CONCOCT/pull/262) - Rewrote documentation, including installation instructions

### `Added`

- [#253](https://github.com/BinPro/CONCOCT/pull/253) - A dockerfile useful to test the conda installation
- [#258](https://github.com/BinPro/CONCOCT/pull/258) - Tests for all fundamental scripts, including a new integration test data repository
- [#259](https://github.com/BinPro/CONCOCT/pull/259) - This changelog
- [#262](https://github.com/BinPro/CONCOCT/pull/262) - Added documentation for the core scripts used with concoct

### `Fixed`

Expand Down
99 changes: 0 additions & 99 deletions doc/Dockerfile.template

This file was deleted.

17 changes: 16 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext

help:
@echo "Please use \`make <target>' where <target> is one of"
Expand All @@ -30,6 +30,7 @@ help:
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " applehelp to make an Apple Help Book"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
Expand All @@ -45,6 +46,7 @@ help:
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"

clean:
rm -rf $(BUILDDIR)/*
Expand Down Expand Up @@ -89,6 +91,14 @@ qthelp:
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/CONCOCT.qhc"

applehelp:
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
@echo
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@echo "N.B. You won't be able to view it unless you put it in" \
"~/Library/Documentation/Help or install it in your application" \
"bundle."

devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
Expand Down Expand Up @@ -166,6 +176,11 @@ doctest:
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."

coverage:
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
@echo "Testing of coverage in the sources finished, look at the " \
"results in $(BUILDDIR)/coverage/python.txt."

xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
Expand Down
25 changes: 0 additions & 25 deletions doc/generate_dockerfile.py

This file was deleted.

6 changes: 3 additions & 3 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The requirements to build the documentation
Sphinx==1.3.1
mock==1.0.1
sphinxcontrib-programoutput==0.8
Sphinx>=1.3.1
mock>=1.0.1
sphinxcontrib-programoutput>=0.8
sphinx-rtd-theme>=0.1.6
10 changes: 10 additions & 0 deletions doc/source/cmd_options.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Command Line Options
====================

CONCOCT uses several command line options to control the clustering, here is a
complete documentation of these. These can also be viewed by typing ``concoct
-h`` on the command line:

.. program-output:: (concoct -h)
:shell:
66 changes: 39 additions & 27 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# CONCOCT documentation build configuration file, created by
# sphinx-quickstart on Wed Jul 23 15:17:29 2014.
# sphinx-quickstart on Thu Aug 1 11:22:50 2019.
#
# This file is execfile()d with the current directory set to its
# containing dir.
Expand All @@ -14,6 +15,7 @@

import sys
import os
import shlex

# Add readthedocs.org theme
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
Expand Down Expand Up @@ -41,14 +43,17 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.pngmath',
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinxcontrib.programoutput',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

# The encoding of source files.
Expand All @@ -59,7 +64,8 @@

# General information about the project.
project = 'CONCOCT'
copyright = '2014, Johannes Alneberg, Brynjar Smari Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z. Ijaz, Nicholas J. Loman, Anders F. Andersson, Christopher Quince'
copyright = '2014-2019, Johannes Alneberg, Brynjar Smari Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z. Ijaz, Nicholas J. Loman, Anders F. Andersson, Christopher Quince'
author = 'Johannes Alneberg, Brynjar Smari Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z. Ijaz, Nicholas J. Loman, Anders F. Andersson, Christopher Quince'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -72,7 +78,10 @@

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down Expand Up @@ -108,6 +117,9 @@
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False


# -- Options for HTML output ----------------------------------------------

Expand Down Expand Up @@ -190,10 +202,23 @@
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None

# Language to be used for generating the HTML full-text search index.
# Sphinx supports the following languages:
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
#html_search_language = 'en'

# A dictionary with options for the search language support, empty by default.
# Now only 'ja' uses this config value
#html_search_options = {'type': 'default'}

# The name of a javascript file (relative to the configuration directory) that
# implements a search results scorer. If empty, the default will be used.
#html_search_scorer = 'scorer.js'

# Output file base name for HTML help builder.
htmlhelp_basename = 'CONCOCTdoc'


# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
Expand All @@ -205,13 +230,16 @@

# Additional stuff for the LaTeX preamble.
#'preamble': '',

# Latex figure (float) alignment
#'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'CONCOCT.tex', 'CONCOCT Documentation',
(master_doc, 'CONCOCT.tex', 'CONCOCT Documentation',
'Johannes Alneberg, Brynjar Smari Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z. Ijaz, Nicholas J. Loman, Anders F. Andersson, Christopher Quince', 'manual'),
]

Expand Down Expand Up @@ -241,8 +269,8 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'concoct', 'CONCOCT Documentation',
['Johannes Alneberg, Brynjar Smari Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z. Ijaz, Nicholas J. Loman, Anders F. Andersson, Christopher Quince'], 1)
(master_doc, 'concoct', 'CONCOCT Documentation',
[author], 1)
]

# If true, show URL addresses after external links.
Expand All @@ -255,8 +283,8 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'CONCOCT', 'CONCOCT Documentation',
'Johannes Alneberg, Brynjar Smari Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z. Ijaz, Nicholas J. Loman, Anders F. Andersson, Christopher Quince', 'CONCOCT', 'One line description of project.',
(master_doc, 'CONCOCT', 'CONCOCT Documentation',
author, 'CONCOCT', 'One line description of project.',
'Miscellaneous'),
]

Expand All @@ -271,19 +299,3 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

# -- Read the Docs C module import issues -------------------------------------

# See:
# http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
from mock import Mock as MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['pygtk', 'gtk', 'gobject', 'numpy', 'pandas', 'Bio', 'concoct',
'concoct.utils', 'concoct.output', 'concoct.parser', 'concoct.cluster',
'concoct.input', 'concoct.transform', 'vbgmm']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

0 comments on commit cd90a08

Please sign in to comment.