Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Nov 13, 2023
1 parent 19ab29b commit 160202e
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 437 deletions.
1 change: 1 addition & 0 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ test:
tox

doc:
$(MAKE) -C doc clean
tox -e docs
$(MAKE) -C doc html

Expand Down
7 changes: 0 additions & 7 deletions python/doc/api/eafpy.colour.rst

This file was deleted.

7 changes: 0 additions & 7 deletions python/doc/api/eafpy.eaf.rst

This file was deleted.

7 changes: 0 additions & 7 deletions python/doc/api/eafpy.plot.rst

This file was deleted.

2 changes: 1 addition & 1 deletion python/doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ API reference
.. toctree::
:maxdepth: 2

eafpy
moocore

7 changes: 7 additions & 0 deletions python/doc/api/moocore.moocore.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
moocore.moocore module
======================

.. automodule:: moocore.moocore
:members:
:undoc-members:
:show-inheritance:
10 changes: 4 additions & 6 deletions python/doc/api/eafpy.rst → python/doc/api/moocore.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
eafpy package
=============
moocore package
===============

.. automodule:: eafpy
.. automodule:: moocore
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -12,6 +12,4 @@ Submodules
.. toctree::
:maxdepth: 4

eafpy.colour
eafpy.eaf
eafpy.plot
moocore.moocore
10 changes: 5 additions & 5 deletions python/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
from datetime import date
import eafpy as eaf
import moocore

project = "eafpy"
_full_version = eaf.__version__
project = "moocore"
_full_version = moocore.__version__
release = _full_version.split("+", 1)[0]
version = ".".join(release.split(".")[:2])
year = date.today().year
Expand Down Expand Up @@ -40,7 +40,7 @@
# Label for this link
"name": "GitHub",
# URL where the link will redirect
"url": "https://github.com/auto-optimization/eafpy", # required
"url": "https://github.com/auto-optimization/moocore", # required
# Icon class (if "type": "fontawesome"), or path to local image (if "type": "local")
"icon": "fa-brands fa-square-github",
# The type of image to be used (see below for details)
Expand All @@ -50,7 +50,7 @@
}
html_context = {
"github_user": "auto-optimization",
"github_repo": "eafpy",
"github_repo": "moocoore",
"github_version": "main",
"doc_path": "doc",
}
Expand Down
61 changes: 0 additions & 61 deletions python/doc/eafpy.rst

This file was deleted.

137 changes: 0 additions & 137 deletions python/doc/examples/eaf_plot.md

This file was deleted.

35 changes: 0 additions & 35 deletions python/doc/examples/heatmap_prototype.md

This file was deleted.

8 changes: 2 additions & 6 deletions python/doc/examples/index.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
.. _examples:

Examples
========

.. toctree::
:maxdepth: 2
:caption: Contents:

plot_datasets_examples.md
style_plots.md
eaf_plot.md
heatmap_prototype.md
metrics.md


16 changes: 16 additions & 0 deletions python/doc/examples/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
file_format: mystnb
kernelspec:
name: python3
---
# Unary quality metrics
## Read data sets

```{code-cell}
import moocore as moo
spherical = moo.read_datasets("spherical-250-10-3d.txt")
uniform = moo.read_datasets("uniform-250-10-3d.txt")
print(spherical.shape)
print(uniform.shape)
```

Loading

0 comments on commit 160202e

Please sign in to comment.