Skip to content

Commit 860a387

Browse files
committed
Create documentation page
1 parent 0a486f0 commit 860a387

File tree

11 files changed

+462
-463
lines changed

11 files changed

+462
-463
lines changed

README.rst

-459
Large diffs are not rendered by default.

docs/INSTRUCTIONS.rst

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Instructions
2+
============
3+
4+
Source files are in **source** directory.
5+
6+
To create pyKVFinder documentation as a GitHub page, run:
7+
8+
.. code-block:: bash
9+
10+
make html

docs/Makefile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@mv source/ Makefile INSTRUCTIONS.rst ..
20+
@if [ -f ".nojekyll" ]; then rm .nojekyll; fi
21+
@if [ -f ".buildinfo" ]; then rm .buildinfo; fi
22+
@if [ -d ".doctrees" ]; then rm -r .doctrees; fi
23+
@if [ -f "index.html" ]; then rm -r *; fi
24+
@mv ../source/ ../Makefile ../INSTRUCTIONS.rst .
25+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
26+
@mv $(BUILDDIR)/$@/* $(BUILDDIR)/$@/.nojekyll $(BUILDDIR)/$@/.buildinfo .
27+
@mv $(BUILDDIR)/doctrees .doctrees
28+
@rm -r $(BUILDDIR)

docs/source/_about/index.rst

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.. raw:: html
2+
3+
<h1>About</h1>
4+
5+
Issues
6+
======
7+
8+
SERD package uses of GitHub for project management. Please help us by reporting any problems or requests.
9+
10+
On `Issues <https://github.com/jvsguerra/SERD/issues>`_ page, you can file a:
11+
12+
.. toctree::
13+
14+
Bug Report <https://github.com/jvsguerra/SERD/issues/new?assignees=&labels=&template=bug_report.md&title=>
15+
Request for a new feature <https://github.com/jvsguerra/SERD/issues/new?assignees=&labels=&template=feature_request.md&title=>
16+
17+
Only make sure the bug or request has not already been reported. Click on “Search” and enter some keywords to search.
18+
19+
Thank you for helping us improve SERD!
20+
21+
Scientific team
22+
===============
23+
24+
SERD was developed by:
25+
26+
- João Victor da Silva Guerra
27+
- Gabriel Ernesto Jara
28+
- José Geraldo de Carvalho Pereira
29+
- Paulo Sergio Lopes de Oliveira
30+
31+
32+
Computational Biology Laboratory (`LBC <https://github.com/LBC-LNBio>`_), Brazilian Biosciences National Laboratory (`LNBio <https://lnbio.cnpem.br/>`_), Brazilian Center for Research in Energy and Materials (`CNPEM <https://cnpem.br>`_)
33+
34+
If you have any further questions, inquires or if you wish to contribute to SERD, please contact us at [email protected].
35+
36+
License
37+
=======
38+
39+
The software is licensed under the terms of the GNU General Public License version 3 (GPL3) and is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

docs/source/_api_reference/index.rst

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
SERD.detect
2+
***********
3+
4+
.. autofunction:: SERD.detect
5+
6+
SERD.g2pdb
7+
**********
8+
9+
.. autofunction:: SERD.g2pdb
10+
11+
SERD.get_vertices
12+
*****************
13+
14+
.. autofunction:: SERD.get_vertices
15+
16+
SERD.interface
17+
**************
18+
19+
.. autofunction:: SERD.interface
20+
21+
SERD.r2g
22+
********
23+
24+
.. autofunction:: SERD.r2g
25+
26+
SERD.read_vdw
27+
*************
28+
29+
.. autofunction:: SERD.read_vdw
30+
31+
SERD.read_pdb
32+
*************
33+
34+
.. autofunction:: SERD.read_pdb
35+
36+
SERD.save
37+
*********
38+
39+
.. autofunction:: SERD.save
40+
41+
SERD.save_session
42+
*****************
43+
44+
.. autofunction:: SERD.save_session
45+
46+
SERD.surface
47+
************
48+
49+
.. autofunction:: SERD.surface

docs/source/_installation/index.rst

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Requirements
2+
============
3+
4+
If you don’t have Python v3 and/or SWIG yet, the installation procedure differs depending on the operating system.
5+
6+
Python and SWIG can be installed with conda, or with a package manager on Linux and macOS.
7+
8+
Package managers
9+
----------------
10+
11+
On Linux:
12+
13+
.. code-block:: bash
14+
15+
sudo apt install python3 swig
16+
17+
On macOS:
18+
19+
.. code-block:: bash
20+
21+
brew install python3 swig
22+
23+
.. note::
24+
25+
Users can use their preferred package manager to install SWIG and Python v3.
26+
27+
Conda
28+
-----
29+
30+
If you use conda, you can install Python v3 and SWIG from the defaults channel:
31+
32+
.. code-block:: bash
33+
34+
# Use an environment rather than install in base environement (recommended)
35+
conda create -n myenv python=3
36+
conda activate myenv
37+
# The SWIG install command
38+
conda install swig
39+
40+
Installation
41+
============
42+
43+
The prerequisites for installing SERD is SWIG, Python v3 and PyMOL v2.
44+
45+
To install the latest release on `PyPI <https://pypi.org/project/SERD>`_,
46+
run:
47+
48+
::
49+
50+
pip install SERD
51+
52+
Or to install the latest developmental version, run:
53+
54+
::
55+
56+
git clone https://github.com/jvsguerra/SERD.git
57+
pip install SERD

docs/source/_static/icon.ico

106 KB
Binary file not shown.

docs/source/_tutorial/index.rst

+124
Large diffs are not rendered by default.

docs/source/conf.py

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# -*- coding: utf-8 -*-
2+
# Configuration file for the Sphinx documentation builder.
3+
#
4+
# For the full list of built-in configuration values, see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Project information -----------------------------------------------------
8+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
9+
10+
project = "SERD"
11+
copyright = "2022, João Victor da Silva Guerra"
12+
author = "João Victor da Silva Guerra"
13+
14+
# The short X.Y version
15+
from SERD import __version__
16+
17+
version = ".".join(__version__.split(".")[0:2])
18+
# The full version, including alpha/beta/rc tags
19+
release = __version__
20+
21+
# -- General configuration ---------------------------------------------------
22+
23+
# If your documentation needs a minimal Sphinx version, state it here.
24+
#
25+
# needs_sphinx = '1.0'
26+
27+
# Add any Sphinx extension module names here, as strings. They can be
28+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
29+
# ones.
30+
extensions = [
31+
"sphinx.ext.autodoc",
32+
"sphinx.ext.napoleon",
33+
"sphinx.ext.doctest",
34+
"sphinx.ext.intersphinx",
35+
"sphinx.ext.todo",
36+
"sphinx.ext.coverage",
37+
"sphinx.ext.mathjax",
38+
"sphinx.ext.ifconfig",
39+
"sphinx.ext.viewcode",
40+
"sphinx.ext.githubpages",
41+
]
42+
43+
# Add any paths that contain templates here, relative to this directory.
44+
templates_path = ["_templates"]
45+
46+
# The suffix(es) of source filenames.
47+
# You can specify multiple suffix as a list of string:
48+
#
49+
# source_suffix = ['.rst', '.md']
50+
source_suffix = ".rst"
51+
52+
# The master toctree document.
53+
master_doc = "index"
54+
55+
# The language for content autogenerated by Sphinx. Refer to documentation
56+
# for a list of supported languages.
57+
#
58+
# This is also used if you do content translation via gettext catalogs.
59+
# Usually you set "language" from the command line for these cases.
60+
language = "en"
61+
62+
# List of patterns, relative to source directory, that match files and
63+
# directories to ignore when looking for source files.
64+
# This pattern also affects html_static_path and html_extra_path.
65+
exclude_patterns = []
66+
67+
# The name of the Pygments (syntax highlighting) style to use.
68+
pygments_style = "sphinx"
69+
70+
# -- Options for HTML output -------------------------------------------------
71+
72+
# The theme to use for HTML and HTML Help pages. See the documentation for
73+
# a list of builtin themes.
74+
#
75+
html_theme = "sphinx_rtd_theme"
76+
77+
# Theme options are theme-specific and customize the look and feel of a theme
78+
# further. For a list of options available for each theme, see the
79+
# documentation.
80+
#
81+
# html_theme_options = {}
82+
83+
# Add any paths that contain custom static files (such as style sheets) here,
84+
# relative to this directory. They are copied after the builtin static files,
85+
# so a file named "default.css" will overwrite the builtin "default.css".
86+
html_static_path = ["_static"]
87+
88+
# HTML favicon
89+
html_favicon = "_static/icon.ico"
90+
91+
# HTML logo
92+
# html_logo = "_static/icon.ico"
93+
94+
# -- Options for Epub output -------------------------------------------------
95+
96+
# Bibliographic Dublin Core info.
97+
epub_title = project
98+
99+
# The unique identifier of the text. This can be a ISBN number
100+
# or the project homepage.
101+
#
102+
# epub_identifier = ''
103+
104+
# A unique identification for the text.
105+
#
106+
# epub_uid = ''
107+
108+
# A list of files that should not be packed into the epub file.
109+
epub_exclude_files = ["search.html"]
110+
111+
112+
# -- Extension configuration -------------------------------------------------
113+
114+
# -- Options for intersphinx extension ---------------------------------------
115+
116+
# Example configuration for intersphinx: refer to the Python standard library.
117+
intersphinx_mapping = {"https://docs.python.org/": None}
118+
119+
# -- Options for todo extension ----------------------------------------------
120+
121+
# If true, `todo` and `todoList` produce output, else they produce nothing.
122+
todo_include_todos = True

docs/source/index.rst

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. SERD documentation master file, created by
2+
sphinx-quickstart on Mon Aug 22 15:05:54 2022.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to SERD's documentation!
7+
================================
8+
9+
Welcome to the **Solvent-Exposed Residues Detection (SERD)**, this page was built to help you get started with our package.
10+
11+
.. toctree::
12+
:caption: Installation
13+
14+
_installation/index
15+
16+
.. toctree::
17+
:caption: Tutorial
18+
19+
_tutorial/index
20+
21+
.. toctree::
22+
:caption: API Reference
23+
24+
_api_reference/index
25+
26+
.. toctree::
27+
:caption: About
28+
29+
_about/index

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
networkx>=2.6.3
2-
numpy>=1.20.3
3-
pyKVFinder>=0.2.5
4-
scipy>=1.7.1
1+
networkx>=2.8.6
2+
numpy>=1.23.2
3+
pyKVFinder>=0.4.2
4+
scipy>=1.9.0

0 commit comments

Comments
 (0)