Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorials overhaul #150

Merged
merged 23 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .binder/postBuild

This file was deleted.

2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ python:
- method: pip
path: .
conda:
environment: .binder/environment.yml
environment: environment.yml
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- Added a `display_residues` function to quickly visualize the residues in a `Molecule`
object.
- Added a `Complex3D` class for plotting interactions in 3D. Added the corresponding
`Fingerprint.plot_3d` method to generate the plot directly from an FP object.
- Added a `Barcode` class for plotting interactions. Added the corresponding
Expand Down
26 changes: 12 additions & 14 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ ProLIF

* - **Documentation**
- |docs|
* - **Tutorials**
- |binder|
* - **CI**
- |tests| |codecov| |codeql|
* - **Builds**
Expand All @@ -25,32 +23,36 @@ interaction fingerprints for complexes made of ligands, protein, DNA or RNA mole
extracted from molecular dynamics trajectories, docking simulations and experimental
structures.

You can try it out prior to any installation on `Binder <https://mybinder.org/v2/gh/chemosim-lab/ProLIF/HEAD?filepath=docs%2Fnotebooks>`_.

Documentation
-------------

The installation instructions, documentation and tutorials can be found online on `ReadTheDocs <https://prolif.readthedocs.io/en/latest/>`_.
The installation instructions, documentation and tutorials can be found online on
`ReadTheDocs <https://prolif.readthedocs.io>`_.

Issues
------

If you have found a bug, please open an issue on the `GitHub Issues <https://github.com/chemosim-lab/ProLIF/issues>`_ page.
If you have found a bug, please open an issue on the
`GitHub Issues <https://github.com/chemosim-lab/ProLIF/issues>`_ page.

Discussion
----------

If you have questions on how to use ProLIF, or if you want to give feedback or share ideas and new features, please head to the `GitHub Discussions <https://github.com/chemosim-lab/ProLIF/discussions>`_ page.
If you have questions on how to use ProLIF, or if you want to give feedback or share
ideas and new features, please head to the
`GitHub Discussions <https://github.com/chemosim-lab/ProLIF/discussions>`_ page.

Citing ProLIF
-------------

Please refer to the `citation page <https://prolif.readthedocs.io/en/latest/source/citation.html>`_ on the documentation.
Please refer to the `citation page <https://prolif.readthedocs.io/en/latest/source/citation.html>`_
on the documentation.

License
-------

Unless otherwise noted, all files in this directory and all subdirectories are distributed under the Apache License, Version 2.0 ::
Unless otherwise noted, all files in this directory and all subdirectories are
distributed under the Apache License, Version 2.0 ::

Copyright 2017-2023 Cédric BOUYSSET

Expand Down Expand Up @@ -87,7 +89,7 @@ Unless otherwise noted, all files in this directory and all subdirectories are d
:target: https://codecov.io/gh/chemosim-lab/ProLIF

.. |docs| image:: https://readthedocs.org/projects/prolif/badge/?version=latest
:target: https://prolif.readthedocs.io/en/latest/?badge=latest
:target: https://prolif.readthedocs.io/
:alt: Documentation Status

.. |codeql| image:: https://github.com/chemosim-lab/ProLIF/workflows/CodeQL/badge.svg?branch=master
Expand All @@ -98,10 +100,6 @@ Unless otherwise noted, all files in this directory and all subdirectories are d
:target: http://www.apache.org/licenses/LICENSE-2.0
:alt: License

.. |binder| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/chemosim-lab/ProLIF/HEAD?filepath=docs%2Fnotebooks
:alt: Try it on binder

.. |mdanalysis| image:: https://img.shields.io/badge/Powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAA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hQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA
:alt: Powered by MDAnalysis
:target: https://www.mdanalysis.org
Expand Down
40 changes: 34 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# -- General configuration ---------------------------------------------------

github_doc_root = "https://github.com/chemosim-lab/ProLIF/tree/master/docs/"
needs_sphinx = "4.1.2"
needs_sphinx = "5.3.0"

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand All @@ -43,17 +43,24 @@
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.autosectionlabel",
"sphinx_rtd_theme",
"recommonmark",
"IPython.sphinxext.ipython_console_highlighting",
"IPython.sphinxext.ipython_directive",
"nbsphinx",
"myst_nb",
"sphinx_copybutton",
]
myst_enable_extensions = [
"colon_fence",
]
# nb_execution_raise_on_error = True

mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
autosectionlabel_prefix_document = True
napoleon_google_docstring = False

# copybutton
copybutton_exclude = ".linenos, .gp"

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

Expand All @@ -62,15 +69,37 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

source_suffix = [".rst", ".md"]
source_suffix = {
".rst": "restructuredtext",
".md": "myst-nb",
".ipynb": "myst-nb",
".myst": "myst-nb",
}

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

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme = "sphinx_book_theme"
pygments_style = "sphinx"
html_theme_options = {
"repository_url": "https://github.com/chemosim-lab/ProLIF",
"path_to_docs": "docs",
"use_source_button": True,
"use_download_button": True,
"use_repository_button": True,
"use_issues_button": True,
"launch_buttons": {"colab_url": "https://colab.research.google.com"},
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/chemosim-lab/ProLIF",
"icon": "fa-brands fa-square-github",
"type": "fontawesome",
}
],
}

# 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,
Expand All @@ -83,7 +112,6 @@
"https://docs.mdanalysis.org/stable/": None,
"https://www.rdkit.org/docs/": None,
"https://pandas.pydata.org/docs/": None,
"https://tqdm.github.io/docs/": None,
"https://multiprocess.readthedocs.io/en/latest/": None,
}

Expand Down
10 changes: 3 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ Welcome to ProLIF's documentation!
.. include:: ../README.rst

.. toctree::
:caption: User guide
:caption: Information
:maxdepth: 2

source/installation
source/citation
source/changelog

.. toctree::
:caption: Tutorials
:caption: User Guide
:maxdepth: 2
:numbered:

notebooks/quickstart
notebooks/how-to
notebooks/protein-protein_interactions
notebooks/visualisation
source/tutorials

.. toctree::
:caption: Documentation
Expand Down
Loading
Loading