Skip to content

Commit de6f6ce

Browse files
committed
fix docs
1 parent 352659f commit de6f6ce

File tree

2 files changed

+15
-40
lines changed

2 files changed

+15
-40
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,44 +31,8 @@ jobs:
3131
- name: Install chordnet dependencies
3232
run: uv sync --frozen --all-extras --dev
3333

34-
- name: Build library docs (public API)
35-
run: |
36-
# pdoc default generates only public (non-private) members
37-
uv run pdoc --docformat google -o docs/library chordnet
38-
39-
- name: Build developer docs (include private/internal)
40-
run: |
41-
# include private/internal members for developer docs
42-
uv run pdoc --docformat google --private -o docs/dev chordnet
43-
44-
- name: Write simple landing index
45-
run: |
46-
mkdir -p docs
47-
cat > docs/index.html <<'HTML'
48-
<!doctype html>
49-
<html>
50-
<head>
51-
<meta charset="utf-8" />
52-
<meta name="viewport" content="width=device-width,initial-scale=1" />
53-
<title>Chordnet documentation</title>
54-
<style>
55-
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; max-width: 900px; margin: 3rem auto; padding: 0 1rem; }
56-
h1 { margin-bottom: 0.25rem; }
57-
p { color: #444; }
58-
.links { margin-top: 1.25rem; }
59-
.links a { display:inline-block; margin-right:1rem; padding: 0.5rem 0.75rem; background:#f3f4f6; color:#111; text-decoration:none; border-radius:6px; }
60-
</style>
61-
</head>
62-
<body>
63-
<h1>Chordnet documentation</h1>
64-
<p>Choose the set of docs you want to view:</p>
65-
<div class="links">
66-
<a href="./library/">Library (public)</a>
67-
<a href="./dev/">Developer (internal)</a>
68-
</div>
69-
</body>
70-
</html>
71-
HTML
34+
- name: Build library docs
35+
run: uv run pdoc --no-show-source --docformat google -o docs/ chordnet
7236

7337
- uses: actions/upload-pages-artifact@v4
7438
with:

src/chordnet/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
"""Library for distributed computing.
1+
"""# A Python Library for Distributed Computing
2+
3+
ChordNet implements the chord protocol, introduced by Stoica et al.
4+
It implements a distributed hash table.
5+
6+
## Project Links
7+
- [Source (github)](https://github.com/jacklowrie/chordnet)
8+
- [Issues](https://github.com/jacklowrie/chordnet/issues)
9+
- [Download](https://github.com/jacklowrie/chordnet/releases)
10+
- [History](https://github.com/jacklowrie/chordnet/releases)
11+
- [PyPI](https://pypi.org/project/chordnet/)
212
313
.. include:: ../../README.md
4-
"""
14+
:start-line: 16
15+
""" # noqa: D415 (this docstring is rendered by pdoc)
516
from loguru import logger
617

718
from .chordnet import ChordNet

0 commit comments

Comments
 (0)