Skip to content

Commit 36cc7e6

Browse files
committed
Update the top level readme
1 parent 29245ed commit 36cc7e6

File tree

2 files changed

+45
-6
lines changed

2 files changed

+45
-6
lines changed

docs_dev/readme_toplevel.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# Hello world
1+
# Logging in DUNE-DAQ — Documentation
2+
3+
Welcome to the logging documentation for daqpytools (as of 5.6.0).
4+
5+
This documentation is split into two sections depending on your role:
6+
7+
- **User docs** — for anyone writing Python applications that use logging
8+
- **Developer docs** — for anyone extending the logging system itself (new handlers, new filters)
9+
10+
---
11+
12+
## User documentation
13+
14+
| Page | What it's for |
15+
|---|---|
16+
| [Tutorial](./user/tutorial.md) | Get a working logger running from scratch |
17+
| [Concepts & explanation](./user/explanation.md) | Understand how Python logging and daqpytools work |
18+
| [How to use handlers and filters](./user/how-to/use-handlers.md) | Descriptions and examples for each handler and filter |
19+
| [How to route messages](./user/how-to/route-messages.md) | Direct records to specific handlers using HandlerType and LogHandlerConf |
20+
| [How to add handlers at runtime](./user/how-to/add-handlers-at-runtime.md) | Attach handlers after logger creation; pass kwargs |
21+
| [How to configure ERS](./user/how-to/configure-ers.md) | Attach and use ERS handlers |
22+
| [Best practices](./user/how-to/best-practices.md) | Recommended patterns for structuring logging in your application |
23+
| [Troubleshooting](./user/reference/troubleshooting.md) | Common symptoms, causes, and fixes |
24+
| [API reference](https://dune-daq.github.io/daqpytools/APIref) | Auto-generated kwargs, types, and defaults for all public APIs |
25+
26+
---
27+
28+
## Developer documentation
29+
30+
| Page | What it's for |
31+
|---|---|
32+
| [Concepts & explanation](./dev/explanation.md) | The routing model, component definitions, fallback logic |
33+
| [Architecture reference](./dev/reference/architecture.md) | Logger init flow and record flow at runtime |
34+
| [How to add a handler](./dev/how-to/add-a-handler.md) | Step-by-step guide to adding a new handler type |
35+
| [How to add a filter](./dev/how-to/add-a-filter.md) | Step-by-step guide to adding a new logger-level filter |
36+
| [How to debug routing](./dev/how-to/debug-routing.md) | Systematic workflow for diagnosing routing issues |
37+
| [Common patterns](./dev/reference/patterns.md) | Quick-reference recipes for handlers and filters |

docs_dev/utils/mirror_docs.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
Virtual output structure:
55
readme.md ← from docs_dev/readme_toplevel.md
66
user/ ← from docs/
7-
dev/ ← from docs_dev/ (excluding utils/, requirements.txt, readme_toplevel.md)
7+
dev/ ← from docs_dev/ (excluding utils/,
8+
requirements.txt, readme_toplevel.md)
89
"""
910

1011
from __future__ import annotations
1112

1213
from pathlib import Path
1314

1415
DOCS_DEV_EXCLUDE = {
15-
16+
"utils",
17+
"requirements.txt",
18+
"readme_toplevel.md",
1619
}
1720

1821

@@ -64,21 +67,21 @@ def _run_from_mkdocs_gen_files() -> None:
6467
with mkdocs_gen_files.open("README.md", "wb") as fd:
6568
fd.write(readme_source.read_bytes())
6669
else:
67-
print(f"Warning: '{readme_source}' does not exist, skipping.")
70+
print(f"Warning: '{readme_source}' does not exist, skipping.") # noqa: T201
6871

6972
# 2. docs/ → virtual user/
7073
docs_dir = repo_root / "docs"
7174
if docs_dir.exists():
7275
_mirror_into_virtual_fs(docs_dir, "user")
7376
else:
74-
print(f"Warning: '{docs_dir}' does not exist, skipping.")
77+
print(f"Warning: '{docs_dir}' does not exist, skipping.") # noqa: T201
7578

7679
# 3. docs_dev/ → virtual dev/ (with exclusions)
7780
docs_dev_dir = repo_root / "docs_dev"
7881
if docs_dev_dir.exists():
7982
_mirror_into_virtual_fs(docs_dev_dir, "dev", exclude=DOCS_DEV_EXCLUDE)
8083
else:
81-
print(f"Warning: '{docs_dev_dir}' does not exist, skipping.")
84+
print(f"Warning: '{docs_dev_dir}' does not exist, skipping.") # noqa: T201
8285

8386

8487
if __name__ != "__main__":

0 commit comments

Comments
 (0)