Skip to content

Commit 28ecabe

Browse files
committed
Links.
1 parent a70e85e commit 28ecabe

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Python Interface for the Portable Hardware Locality (hwloc) Library
22
===================================================================
33

4-
- `Official site <https://www.open-mpi.org/projects/hwloc/>`__ of the hwloc library.
4+
- `Document <https://pyhwloc.readthedocs.io/>`__.
5+
- `Official site <https://www.open-mpi.org/projects/hwloc/>`__ of the hwloc library.

docs/source/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@ def _chdir(dirname: str) -> Iterator[None]:
7474
os.chdir(pwd)
7575

7676

77-
def build_hwloc_xml() -> str:
77+
def build_pyhwloc_xml() -> str:
78+
"""Build and install pyhwloc, returns the path to the doxygen xml files."""
7879
if sys.platform == "win32":
7980
raise NotImplementedError("Read the docs environment should be Linux.")
8081

8182
hwloc_version_path = os.path.join(
82-
normpath(os.path.dirname(__file__)),
83-
os.pardir,
84-
os.pardir,
83+
PROJECT_ROOT,
8584
"dev",
8685
"hwloc_version",
8786
)
@@ -144,7 +143,7 @@ def build_hwloc_xml() -> str:
144143
PROJECT_ROOT = os.path.normpath(os.path.join(CURR_PATH, os.path.pardir, os.path.pardir))
145144

146145
if is_readthedocs_build():
147-
hwloc_xml_path: str | None = build_hwloc_xml()
146+
hwloc_xml_path: str | None = build_pyhwloc_xml()
148147
else:
149148
hwloc_xml_path = os.environ.get("PYHWLOC_XML_PATH", None)
150149
if hwloc_xml_path is None:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers=[
3232

3333
[project.urls]
3434
source = "https://github.com/open-mpi/pyhwloc"
35+
documentation = "https://pyhwloc.readthedocs.io/"
3536

3637
[tool.hatch.version]
3738
path = "src/pyhwloc/hwloc/__init__.py"

0 commit comments

Comments
 (0)