Skip to content

Commit

Permalink
Fix doc build for sphinx-gallery >=0.11.1 (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Aug 20, 2022
1 parent d98128a commit 7607a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/sphinxext/gen_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import subprocess
import sys

import sphinx.util
from mne.utils import run_subprocess, _replace_md5


Expand Down Expand Up @@ -57,7 +58,6 @@ def setup(app):

def generate_cli_rst(app=None):
"""Generate the command line interface docs."""
from sphinx_gallery import sphinx_compatibility
out_dir = op.abspath(op.join(op.dirname(__file__), '..', 'generated'))
if not op.isdir(out_dir):
os.mkdir(out_dir)
Expand All @@ -68,7 +68,7 @@ def generate_cli_rst(app=None):
fnames = sorted([
op.basename(fname)
for fname in glob.glob(op.join(cli_path, 'mne_bids*.py'))])
iterator = sphinx_compatibility.status_iterator(
iterator = sphinx.util.status_iterator(
fnames, 'generating MNE-BIDS cli help ... ', length=len(fnames))
with open(out_fname, 'w', encoding='utf-8') as f:
f.write(header)
Expand Down

0 comments on commit 7607a0e

Please sign in to comment.