Skip to content

Commit 219f377

Browse files
committed
DOC: Refer to niflow instead of source distribution
1 parent 7e1a423 commit 219f377

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

doc/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
source_dir = Path(tmpdir) / "package" / "niflow" / "nipype1" / "examples"
3838
shutil.copytree(source_dir, python_dir)
3939

40-
sp.run(["python", ex2rst, "--project", "Nipype", "--outdir", str(example_dir),
40+
sp.run(["python", ex2rst, "--outdir", str(example_dir), str(python_dir),
4141
"-x", str(python_dir / "test_spm.py"),
4242
"-x", str(python_dir / "__init__.py"),
43-
"-x", str(python_dir / "cli.py"),
44-
str(python_dir)], check=True)
45-
sp.run(["python", ex2rst, "--project", "Nipype", "--outdir", str(example_dir),
46-
str(python_dir / "frontiers_paper")], check=True)
43+
"-x", str(python_dir / "cli.py")],
44+
check=True)
45+
sp.run(["python", ex2rst, "--outdir", str(example_dir), str(python_dir / "frontiers_paper")],
46+
check=True)
4747

4848

4949
# If extensions (or modules to document with autodoc) are in another directory,

tools/ex2rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,13 @@ def exfile2rstfile(filename, opts):
187187
.. admonition:: Example source code
188188
189189
You can download :download:`the full source code of this example <%s>`.
190-
This same script is also included in the %s source distribution under the
191-
:file:`examples` directory.
190+
This same script is also included in `%s <%s>`__ under the :file:`%s`
191+
directory.
192192
193-
""" % (os.path.relpath(filename, opts.outdir), opts.project)
193+
""" % (os.path.relpath(filename, opts.outdir),
194+
"Nipype1 Examples Niflow",
195+
"https://github.com/niflows/nipype1-examples",
196+
"package/niflow/nipype1/examples")
194197

195198
dfile.write(msg)
196199

0 commit comments

Comments
 (0)