Skip to content

Commit

Permalink
Partly addresses as PoC how we can populate version info in RTD docs …
Browse files Browse the repository at this point in the history
…using data from a file #36
  • Loading branch information
shaloo committed Aug 29, 2019
1 parent 47a7b12 commit a16ae3b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.5
14 changes: 13 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@
copyright = author

# The full version, including alpha/beta/rc tags
release = '0.9'

versionfile=open('../VERSION', 'r')
vstr1=versionfile.read()
versionfile.close()

version = u'Version '+vstr1
release = u' '+vstr1+u'( 0.9 draft )'

# -- General configuration ---------------------------------------------------

Expand Down Expand Up @@ -63,6 +68,13 @@
}
#source_suffix = '.rst'

product_version = vstr1

rst_epilog = """
.. |genpipes_version| replace:: %(product_version)s
""" % { "product_version": product_version ,
}

master_doc = 'index'

# -- Options for HTML output -------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions docs/source/user_guide/pipelines/gp_rnaseq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ See :ref:`More Information` section below for details.

Version
-------
::

3.1.4
|genpipes_version|

For the latest implementation and usage details refer to RNA Sequencing implementation `README file <https://bitbucket.org/mugqic/genpipes/src/master/pipelines/rnaseq/README.md>`_ file.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/user_guide/pipelines/gp_rnaseq_light.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RNA Sequencing Light is a lightweight pipeline that performs quick QC and remove
Version
-------

TBD
3.1.4

Usage
-----
Expand Down

0 comments on commit a16ae3b

Please sign in to comment.