Skip to content

Commit

Permalink
use standard tool name
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Apr 14, 2023
1 parent def44df commit 61e77fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,18 @@

# -- Options for the edit_on_github extension ---------------------------------

if metadata['tool']['sphinx']['edit_on_github']:
if metadata['tool']['build_sphinx']['edit_on_github']:

extensions += ['sphinx_astropy.ext.edit_on_github']

edit_on_github_project = metadata['tool']['sphinx']['github_project']
edit_on_github_project = metadata['tool']['build_sphinx']['github_project']
edit_on_github_branch = "main"

edit_on_github_source_root = ""
edit_on_github_doc_root = "docs"

# -- Resolving issue number to links in changelog -----------------------------
github_issues_url = 'https://github.com/{0}/issues/'.format(metadata['tool']['sphinx']['github_project'])
github_issues_url = 'https://github.com/{0}/issues/'.format(metadata['tool']['build_sphinx']['github_project'])

# -- Turn on nitpicky mode for sphinx (to warn about references not found) ----
nitpicky = True
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,6 @@ exclude_lines = [
"def _ipython_key_completions_",
]

[tool.sphinx]
[tool.build_sphinx]
edit-on-github = true
github_project = "spacetelescope/jdaviz"

0 comments on commit 61e77fb

Please sign in to comment.