Skip to content

Commit

Permalink
Now using MYST_PARSER and solving links issue in the README.md / onli…
Browse files Browse the repository at this point in the history
…ne docs
  • Loading branch information
ncassereau committed Dec 9, 2021
1 parent d02f71a commit 86faaa4
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ This toolbox benefit a lot from open source research and we would like to thank

* [Gabriel Peyré](http://gpeyre.github.io/) (Wasserstein Barycenters in Matlab)
* [Mathieu Blondel](https://mblondel.org/) (original implementation smooth OT)
* [Nicolas Bonneel](http://liris.cnrs.fr/~nbonneel/) ( C++ code for EMD)
* [Nicolas Bonneel](http://liris.cnrs.fr/~nbonneel/) (C++ code for EMD)
* [Marco Cuturi](http://marcocuturi.net/) (Sinkhorn Knopp in Matlab/Cuda)

## Contributions and code of conduct

Every contribution is welcome and should respect the [contribution guidelines](https://pythonot.github.io/contributing.html). Each member of the project is expected to follow the [code of conduct](https://pythonot.github.io/code_of_conduct.html).
Every contribution is welcome and should respect the [contribution guidelines](.github/CONTRIBUTING.md). Each member of the project is expected to follow the [code of conduct](.github/CODE_OF_CONDUCT.md).

## Support

Expand All @@ -217,7 +217,7 @@ You can ask questions and join the development discussion:
* On the POT [gitter channel](https://gitter.im/PythonOT/community)
* On the POT [mailing list](https://mail.python.org/mm3/mailman3/lists/pot.python.org/)

You can also post bug reports and feature requests in Github issues. Make sure to read our [guidelines](https://pythonot.github.io/contributing.html) first.
You can also post bug reports and feature requests in Github issues. Make sure to read our [guidelines](.github/CONTRIBUTING.md) first.

## References

Expand Down
4 changes: 2 additions & 2 deletions benchmarks/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def convert_to_html_table(results, param_name, main_title=None, comments=None):

# make device header
string += f'<tr><th align="center">Device</th>'
string += f'<th align="center" colspan="{cpus_cols}"">CPU</th>'
string += f'<th align="center" colspan="{gpus_cols}">GPU</tr>\n'
string += f'<th align="center" colspan="{cpus_cols}">CPU</th>'
string += f'<th align="center" colspan="{gpus_cols}">GPU</th></tr>\n'

# make param_name / backend header
string += f'<tr><th align="center">{param_name}</th>'
Expand Down
3 changes: 1 addition & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ numpydoc
memory_profiler
pillow
networkx
mistune==0.8.4
m2r2
myst-parser
3 changes: 1 addition & 2 deletions docs/requirements_rtd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ numpydoc
memory_profiler
pillow
networkx
mistune==0.8.4
m2r2
myst-parser
numpy
scipy>=1.0
cython
Expand Down
6 changes: 6 additions & 0 deletions docs/source/.github/CODE_OF_CONDUCT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Code of Conduct
===============

.. include:: ../../../.github/CODE_OF_CONDUCT.md
:parser: myst_parser.sphinx_
:start-line: 2
6 changes: 6 additions & 0 deletions docs/source/.github/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Contributing to POT
===================

.. include:: ../../../.github/CONTRIBUTING.md
:parser: myst_parser.sphinx_
:start-line: 3
1 change: 0 additions & 1 deletion docs/source/code_of_conduct.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __getattr__(cls, name):
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
'sphinx_gallery.gen_gallery',
'm2r2'
'myst_parser'
]

autosummary_generate = True
Expand Down
1 change: 0 additions & 1 deletion docs/source/contributing.rst

This file was deleted.

9 changes: 4 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ Contents
all
auto_examples/index
releases
contributing
Code of Conduct <code_of_conduct>

.. mdinclude:: ../../README.md
:start-line: 2
.github/CONTRIBUTING
.github/CODE_OF_CONDUCT

.. include:: ../../README.md
:parser: myst_parser.sphinx_


Indices and tables
Expand Down

0 comments on commit 86faaa4

Please sign in to comment.