1d3848f85e
- bincio/render/merge.py: parse sidecar .md files (YAML frontmatter +
markdown body), produce data/_merged/ with symlinks for unmodified
activities and real merged files for overridden ones; filters private
activities from index.json; sorts highlighted activities first.
Keeps extracted data pristine — re-running extract never clobbers edits.
- bincio/edit/: FastAPI edit server (port 4041) with embedded HTML/JS
edit UI; GET/POST /api/activity/{id} reads/writes sidecars; multipart
image upload to edits/images/{id}/; DELETE for image cleanup.
- bincio render now calls merge_all() before build/serve and symlinks
public/data → data/_merged/ instead of data/ directly.
- ActivityDetail.svelte: edit button (links to edit server) when
PUBLIC_EDIT_URL env var is set; respects custom.hide_stats to suppress
stat panels; description supports whitespace-preserving rendering.
- 15 unit tests covering parse_sidecar, apply_sidecar, and merge_all.
21 lines
485 B
Python
21 lines
485 B
Python
"""Top-level CLI entry point: `bincio extract` and `bincio render`."""
|
|
|
|
import click
|
|
|
|
from bincio import __version__
|
|
|
|
|
|
@click.group()
|
|
@click.version_option(__version__)
|
|
def main() -> None:
|
|
"""BincioActivity — federated, open-source activity stats."""
|
|
|
|
|
|
from bincio.extract.cli import extract # noqa: E402
|
|
from bincio.render.cli import render # noqa: E402
|
|
from bincio.edit.cli import edit # noqa: E402
|
|
|
|
main.add_command(extract)
|
|
main.add_command(render)
|
|
main.add_command(edit)
|