Skip to content

Commit

Permalink
DOC: automatically link API in reST syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 6, 2023
1 parent 5c37e9d commit e458423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def get_version(package_name: str) -> str:
copybutton_prompt_is_regexp = True
copybutton_prompt_text = r">>> |\.\.\. " # doctest
copyright = "2023, Common Partial Wave Analysis" # noqa: A001
default_role = "py:obj"
extensions = [
"myst_parser",
"sphinx.ext.autodoc",
Expand Down Expand Up @@ -122,6 +123,7 @@ def get_version(package_name: str) -> str:
(r"py:.*", r"ruamel\.yaml\..*"),
]
nitpicky = True
primary_domain = "py"
project = REPO_NAME
release = get_version(REPO_NAME)
version = get_version(REPO_NAME)
2 changes: 1 addition & 1 deletion src/repoma/utilities/project_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _extract_python_versions(classifiers: List[str]) -> Optional[List[str]]:


def get_pypi_name(pyproject: Optional[TOMLDocument] = None) -> str:
"""Extract package name for PyPI from `setup.cfg`.
"""Extract package name for PyPI from :file:`setup.cfg`.
>>> get_pypi_name()
'repo-maintenance'
Expand Down

0 comments on commit e458423

Please sign in to comment.