Skip to content

Commit

Permalink
Use "import sphinx_gallery" to avoid the linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Sep 23, 2020
1 parent d886a95 commit e297833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# pylint: disable=invalid-name

import datetime
from sphinx_gallery.sorting import FileNameSortKey, ExplicitOrder
import sphinx_gallery
from pygmt import __version__, __commit__
from pygmt.sphinx_gallery import PyGMTScraper

Expand Down Expand Up @@ -57,7 +57,7 @@
],
# path where to save gallery generated examples
"gallery_dirs": ["gallery", "tutorials", "projections"],
"subsection_order": ExplicitOrder(
"subsection_order": sphinx_gallery.sorting.ExplicitOrder(
[
"../examples/gallery/line",
"../examples/gallery/coast",
Expand All @@ -75,7 +75,7 @@
# Remove the "Download all examples" button from the top level gallery
"download_all_examples": False,
# Sort gallery example by file name instead of number of lines (default)
"within_subsection_order": FileNameSortKey,
"within_subsection_order": sphinx_gallery.sorting.FileNameSortKey,
# directory where function granular galleries are stored
"backreferences_dir": "api/generated/backreferences",
# Modules for which function level galleries are created. In
Expand Down

0 comments on commit e297833

Please sign in to comment.