Skip to content

Commit 02b6ae5

Browse files
ZviBaratzGaelVaroquauxbthirion
authored
Documentation Fixes (nilearn#2450)
* Tiny aesthetic changes to the main reference page. * Removed some exceptions from the .gitignore file and added venv/. * Added a custom CSS rule to give function/method parameter definitions a small space between the name and the description. * Documentation fixes to the module as well as a couple of tiny refactor to improve readability. * Fixed new_img_like() logic broken by last commit. * Apply suggestions from code review Co-authored-by: Gael Varoquaux <[email protected]> Co-authored-by: bthirion <[email protected]> * Fixed comments from review. * Reverted title case change and resolved merge problem. Co-authored-by: Gael Varoquaux <[email protected]> Co-authored-by: bthirion <[email protected]>
1 parent 8190079 commit 02b6ae5

File tree

5 files changed

+248
-213
lines changed

5 files changed

+248
-213
lines changed

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ tags
3434
*.tgz
3535

3636
.idea/
37+
venv/
3738

3839
doc/themes/nilearn/static/jquery.js
39-
!/doc/_build/
40-
!/.pytest_cache/
41-
!/build/
42-
!/doc/auto_examples/
43-
!/dist/

doc/modules/reference.rst

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
================================================
2-
Reference documentation: all nilearn functions
3-
================================================
1+
===============================================
2+
Reference documentation: all nilearn functions
3+
===============================================
44

55
This is the class and function reference of nilearn. Please refer to
6-
the :ref:`full user guide <user_guide>` for further details, as the class and
7-
function raw specifications may not be enough to give full guidelines on their
8-
uses.
6+
the :ref:`user guide <user_guide>` for more information and usage examples.
97

108
.. contents:: **List of modules**
119
:local:
@@ -136,7 +134,7 @@ uses.
136134
Decoder
137135
DecoderRegressor
138136
fREMClassifier
139-
fREMRegressor
137+
fREMRegressor
140138
SpaceNetClassifier
141139
SpaceNetRegressor
142140
SearchLight

doc/themes/nilearn/static/nature.css_t

+8-1
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,13 @@ table.field-list tr td.field-body p.first {
10371037
table.field-list tr td.field-body p {
10381038
margin-top: 0.5em;
10391039
}
1040+
1041+
/* Fix spacelessness between parameter name and description */
1042+
dl.field-list span.classifier {
1043+
margin-left: 1ex;
1044+
}
1045+
1046+
10401047
/* ------- tag cloud on the front page -------------------- */
10411048

10421049
div.tags {
@@ -1723,7 +1730,7 @@ div.body div.sphx-glr-download-link-note {
17231730

17241731
@media (min-width: 1200px) {
17251732
div.body div.sphx-glr-download-link-note {
1726-
/* Flush to the left: 50% of viewport width
1733+
/* Flush to the left: 50% of viewport width
17271734
* minus half of the bodywrapper width,
17281735
* minus the half width of the sphinxsidebar */
17291736
float: none;

nilearn/image/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Mathematical operations working on Niimg-like objects like -a (3+n)-D block of
2+
Mathematical operations working on Niimg-like objects like a (3+)D block of
33
data, and an affine.
44
"""
55
from .resampling import resample_img, resample_to_img, reorder_img, \

0 commit comments

Comments
 (0)