From 7ffb345f1e3acf19070552b71961858b9c921373 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 13 Sep 2019 14:47:11 -0700 Subject: [PATCH] DOC: fix frontpage buttons (#6766) * fix frontpage buttons * fix martinos links * fix tests; fix URL in setup.py --- .github/CONTRIBUTING.md | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 2 +- README.rst | 12 ++++++------ doc/index.rst | 16 ++++++++-------- mne/cov.py | 4 ++-- mne/report.py | 2 +- mne/utils/docs.py | 2 +- mne/utils/tests/test_docs.py | 2 +- setup.py | 2 +- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index e4be101c839..d8d323b5190 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,4 +10,4 @@ This project and everyone participating in it is governed by the [MNE-Python's C ## How to contribute -Before contributing make sure you are familiar with [our contributing guide](https://martinos.org/mne/contributing.html). +Before contributing make sure you are familiar with [our contributing guide](https://mne.tools/dev/install/contributing.html). diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 8391f226b61..843ad1e7bd7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,7 @@ about: Create a report to help us improve. --- -Detailed instructions on how to file a bug can be found in our [FAQ](https://martinos.org/mne/stable/faq.html#i-think-i-found-a-bug-what-do-i-do). +Detailed instructions on how to file a bug can be found in our [FAQ](https://mne.tools/dev/overview/faq.html#i-think-i-found-a-bug-what-do-i-do). If your issue is a usage question, please consider asking on our [Gitter channel](https://gitter.im/mne-tools/mne-python) or on our [mailing list](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis) instead of opening an issue. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1a66fc91c73..ea102484a7f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,5 @@ Thanks for contributing a pull request! Please make sure you have read the -[contribution guidelines](https://martinos.org/mne/stable/contributing.html) +[contribution guidelines](https://mne.tools/dev/install/contributing.html) before submitting. Please be aware that we are a loose team of volunteers so patience is diff --git a/README.rst b/README.rst index 3b44cbf2ed0..4e3cb8ac8ee 100644 --- a/README.rst +++ b/README.rst @@ -20,8 +20,8 @@ .. |Zenodo| image:: https://zenodo.org/badge/5822/mne-tools/mne-python.svg .. _Zenodo: https://zenodo.org/badge/latestdoi/5822/mne-tools/mne-python -.. |MNE| image:: https://martinos.org/mne/stable/_static/mne_logo.png -.. _MNE: https://martinos.org/mne +.. |MNE| image:: https://mne.tools/stable/_static/mne_logo.png +.. _MNE: https://mne.tools/dev/ MNE-Python ========== @@ -101,7 +101,7 @@ Contributing to MNE-Python Please see the documentation on the MNE-Python homepage: -https://martinos.org/mne/contributing.html +https://mne.tools/dev/contributing.html Mailing list @@ -149,7 +149,7 @@ MNE-Python is **BSD-licenced** (3 clause): damage.** -.. _MNE-Python software: https://martinos.org/mne -.. _MNE documentation: http://martinos.org/mne/documentation.html -.. _getting started page: https://martinos.org/mne/getting_started.html +.. _MNE-Python software: https://mne.tools/dev/ +.. _MNE documentation: https://mne.tools/dev/overview/index.html +.. _getting started page: https://mne.tools/dev/install/index.html .. _pip: https://pip.pypa.io/en/stable/ diff --git a/doc/index.rst b/doc/index.rst index 0d113dea932..d4930ebf788 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -34,28 +34,28 @@ .. raw:: html
- Data I/O + Data I/O
- Preprocessing + Preprocessing
- Visualization + Visualization
- Source estimation + Source estimation
- Time-frequency + Time-frequency
- Connectivity + Connectivity
- Machine learning + Machine learning
- Statistics + Statistics
.. container:: row limitedwidth diff --git a/mne/cov.py b/mne/cov.py index 129267204a7..bebd825903a 100644 --- a/mne/cov.py +++ b/mne/cov.py @@ -1440,8 +1440,8 @@ def regularize(cov, info, mag=0.1, grad=0.1, eeg=0.1, exclude='bads', .. note:: This function is kept for reasons of backward-compatibility. Please consider explicitly using the ``method`` parameter in :func:`mne.compute_covariance` to directly combine estimation - with regularization in a data-driven fashion. - See the `faq `_ + with regularization in a data-driven fashion. See the `faq + `_ for more information. Parameters diff --git a/mne/report.py b/mne/report.py index 813e90ae66b..156e54d05b1 100644 --- a/mne/report.py +++ b/mne/report.py @@ -665,7 +665,7 @@ def _build_html_slider(slices_range, slides_klass, slider_id, """) diff --git a/mne/utils/docs.py b/mne/utils/docs.py index a9d57da6536..3fe3b21c4cf 100644 --- a/mne/utils/docs.py +++ b/mne/utils/docs.py @@ -731,7 +731,7 @@ def open_docs(kind=None, version=None): if version is None: version = get_config('MNE_DOCS_VERSION', 'stable') _check_option('version', version, ['stable', 'dev']) - webbrowser.open_new_tab('https://martinos.org/mne/%s/%s' % (version, kind)) + webbrowser.open_new_tab('https://mne.tools/%s/%s' % (version, kind)) # Following deprecated class copied from scikit-learn diff --git a/mne/utils/tests/test_docs.py b/mne/utils/tests/test_docs.py index cc77523fa39..c16d7ed0f52 100644 --- a/mne/utils/tests/test_docs.py +++ b/mne/utils/tests/test_docs.py @@ -149,7 +149,7 @@ def method_f3(self): def myfun(x): """Check url.""" - assert 'martinos' in x + assert 'mne.tools' in x def test_open_docs(): diff --git a/setup.py b/setup.py index 1399d9a5b67..cf4b14eb8fb 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ DESCRIPTION = descr MAINTAINER = 'Alexandre Gramfort' MAINTAINER_EMAIL = 'alexandre.gramfort@inria.fr' -URL = 'http://martinos.org/mne' +URL = 'https://mne.tools/dev/' LICENSE = 'BSD (3-clause)' DOWNLOAD_URL = 'http://github.com/mne-tools/mne-python' VERSION = version