Skip to content

Commit

Permalink
docs: single-page RTFD outline
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidalgarcia committed Jul 27, 2020
1 parent b2eae27 commit 67b95de
Show file tree
Hide file tree
Showing 15 changed files with 85 additions and 95 deletions.
13 changes: 7 additions & 6 deletions CHANGES.rst
@@ -1,8 +1,9 @@
*******
Changes
=======
*******

Version master (UNRELEASED)
---------------------------
===========================

- Encrypts user tokens.
- Adds initial central workflow status transitions logic.
Expand All @@ -16,7 +17,7 @@ Version master (UNRELEASED)
- Add Black formatter support.

Version 0.6.0 (2019-12-19)
--------------------------
==========================

- Adds new method which returns full workflow name.
- Adds more granular DB configuration.
Expand All @@ -29,7 +30,7 @@ Version 0.6.0 (2019-12-19)
- Adds support for Python 3.8.

Version 0.5.0 (2019-04-16)
--------------------------
==========================

- Introduces new workflow statuses: ``deleted``, ``stopped``, ``queued``.
- Adds new field to store workflow stopping time. (``Workflow.run_stopped_at``)
Expand All @@ -48,15 +49,15 @@ Version 0.5.0 (2019-04-16)
(``Job.backend_job_id``)

Version 0.4.0 (2018-11-06)
--------------------------
==========================

- Stores ``reana.yaml`` in database models.
- Adds Workflow specification and parameter getters.
- Adds support for Python 3.7.
- Changes license to MIT.

Version 0.3.0 (2018-08-10)
--------------------------
==========================

- This package is a result of refactoring `reana-commons
<https://reana-commons.readthedocs.io/>`_.
Expand Down
22 changes: 5 additions & 17 deletions CONTRIBUTING.rst
@@ -1,10 +1,8 @@
************
Contributing
============
************

Issues
------

Bug reports, feature requests, and other contributions are welcome. If you find
Bug reports, issues, feature requests, and other contributions are welcome. If you find
a demonstrable problem that is caused by the REANA code, please:

1. Search for `already reported problems
Expand All @@ -13,21 +11,11 @@ a demonstrable problem that is caused by the REANA code, please:
latest `master` branch.
3. Create an issue, ideally with **a test case**.

Pull requests
-------------

If you create a feature branch, you can run the tests to ensure that everything
is operating correctly:
If you create a pull request fixing a bug or implementing a feature, you can, you can run
the tests to ensure that everything is operating correctly:

.. code-block:: console
$ ./run-tests.sh
Each pull request should preserve or increase code coverage.

Kanban
------

We are using Kanban technique for keeping track of ongoing tasks. Please see
our `Kanban boards <https://github.com/orgs/reanahub/projects>`_ and look for
issues that are "ready for work".
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2018 CERN.
Copyright (C) 2018-2020 CERN.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
10 changes: 5 additions & 5 deletions README.rst
@@ -1,6 +1,6 @@
=========
REANA DB
=========
########
REANA DB
########

.. image:: https://img.shields.io/pypi/pyversions/reana-db.svg
:target: https://pypi.org/pypi/reana-db
Expand All @@ -27,7 +27,7 @@ About
-----

REANA-DB is a component of the `REANA
<http://reanahub.io/>`_ reusable analysis platform.
<http://www.reana.io/>`_ reusable analysis platform.
It contains REANA database models and utilities.

Features
Expand All @@ -46,4 +46,4 @@ Useful links
- `source code <https://github.com/reanahub/reana-db>`_

For more information about the REANA reusable analysis platform, please see the
general `REANA documentation <http://reana.readthedocs.io/>`_.
general `REANA documentation <http://docs.reana.io/>`_.
Binary file removed docs/_static/logo-reana.png
Binary file not shown.
22 changes: 0 additions & 22 deletions docs/api.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/authors.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/changes.rst

This file was deleted.

6 changes: 4 additions & 2 deletions docs/conf.py
Expand Up @@ -46,6 +46,7 @@
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
"sphinx_click.ext",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -62,7 +63,7 @@

# General information about the project.
project = "reana"
copyright = "2018, 2019 info@reana.io"
copyright = "2018-2020 info@reana.io"
author = "info@reana.io"

# The version info for the project you're documenting, acts as replacement for
Expand Down Expand Up @@ -128,12 +129,13 @@
"REANA@Twitter": "https://twitter.com/reanahub",
"REANA@Web": "http://www.reana.io",
},
"nosidebar": True,
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# html_static_path = ["_static"]

# Custom sidebar templates, maps document names to template names.
html_sidebars = {
Expand Down
7 changes: 0 additions & 7 deletions docs/configuration.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/contributing.rst

This file was deleted.

72 changes: 62 additions & 10 deletions docs/index.rst
Expand Up @@ -5,13 +5,65 @@
:start-after: -----
:end-before: Features

.. toctree::
:numbered:

introduction
configuration
api
contributing
changes
license
authors
Features:

.. include:: ../README.rst
:start-line: 35
:end-before: Useful links


*************
Configuration
*************

.. automodule:: reana_db.config
:members:


***
API
***

Database management
===================

.. automodule:: reana_db.database
:members:

Models
======

.. automodule:: reana_db.models
:members:

Utilities
=========

.. automodule:: reana_db.utils
:members:


*******
CLI API
*******

.. click:: reana_db.cli:cli
:prog: reana-db
:show-nested:

.. include:: ../CHANGES.rst

.. include:: ../CONTRIBUTING.rst


*******
License
*******

.. include:: ../LICENSE

In applying this license, CERN does not waive the privileges and immunities
granted to it by virtue of its status as an Intergovernmental Organization or
submit itself to any jurisdiction.

.. include:: ../AUTHORS.rst
7 changes: 0 additions & 7 deletions docs/introduction.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/license.rst

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -23,7 +23,7 @@
]

extras_require = {
"docs": ["Sphinx>=1.4.4", "sphinx-rtd-theme>=0.1.9",],
"docs": ["Sphinx>=1.4.4", "sphinx-rtd-theme>=0.1.9", "sphinx-click>=1.0.4",],
"tests": tests_require,
}

Expand Down

0 comments on commit 67b95de

Please sign in to comment.