Skip to content

Docs PR preview + 7 doc.md files + README fixes#479

Merged
satra merged 6 commits into
alphafrom
20260424-232054-docs-pr-preview
Apr 25, 2026
Merged

Docs PR preview + 7 doc.md files + README fixes#479
satra merged 6 commits into
alphafrom
20260424-232054-docs-pr-preview

Conversation

@satra

@satra satra commented Apr 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

New: PR docs preview workflow

  • Auto-builds pdoc docs on every PR
  • Deploys to pr-{number}/ subdirectory on the docs branch
  • Posts comment with preview URL on the PR
  • Cleans up preview when PR is merged or closed

Documentation coverage

  • 7 missing doc.md files added: preprocessing, input_output, plotting, quality_control, ssl_embeddings, speaker_diarization_evaluation, text/embeddings_extraction
  • All modules now have doc.md with meaningful descriptions

README fixes

  • Documentation URL standardized to sensein.github.io/senselab
  • tutorials/README.md updated with 3 new tutorials

Partially addresses #418 (docs part — QC doc.md added, QC tutorial is a separate task).

🤖 Generated with Claude Code

Version

Published prerelease version: 1.3.1-alpha.17

Changelog

🐛 Bug Fix

  • Docs PR preview + 7 doc.md files + README fixes #479 (@satra)

Authors: 1

satra and others added 2 commits April 24, 2026 23:28
New workflow:
- docs-preview.yaml: auto-builds docs preview on PR open/update,
  deploys to pr-{number}/ subdirectory, posts comment with link,
  cleans up on PR close/merge

Documentation coverage:
- 7 missing doc.md files: preprocessing, input_output, plotting,
  quality_control, ssl_embeddings, speaker_diarization_evaluation,
  text/embeddings_extraction

README fixes:
- Documentation URL: sensein.group → sensein.github.io
- tutorials/README.md: added 3 new tutorials

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Both docs.yaml and docs-preview.yaml referenced --extra articulatory
which no longer exists. Use --all-extras instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a documentation preview workflow for pull requests, enabling automated building, deployment to GitHub Pages subdirectories, and cleanup upon closure. It also improves documentation coverage by adding doc.md files for several audio and text modules, standardizes the documentation URL in the README, and updates the tutorials list. Review feedback suggests addressing potential permission issues for forks in the GitHub Actions workflow, ensuring pdoc correctly includes the new doc.md files via directives, and updating the GPU requirement status for the transcription tutorial.

Comment on lines +57 to +64
**Job 1: build-and-deploy** (triggers on PR opened/synchronize/reopened)
1. Build docs with pdoc (same command as release workflow)
2. Deploy to `docs` branch under `pr-{PR_NUMBER}/` subdirectory
3. Post/update PR comment with preview URL

**Job 2: cleanup** (triggers on PR closed)
1. Remove `pr-{PR_NUMBER}/` from docs branch
2. Update PR comment to note preview was removed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The proposed workflow using the pull_request trigger for building, deploying, and cleaning up previews will encounter permission issues for pull requests originating from forks. In such cases, the default GITHUB_TOKEN is read-only, which will prevent the deployment to the docs branch and the posting of PR comments. To support external contributions, you might need to use the pull_request_target trigger or a workflow_run based approach, while being mindful of the security implications of running potentially untrusted code from PRs.

Comment on lines +43 to +49
- [ ] T006 [P] [US2] Create src/senselab/audio/tasks/preprocessing/doc.md — describe resample_audios, downmix_audios_to_mono, normalize, chunk_audios; when to use each
- [ ] T007 [P] [US2] Create src/senselab/audio/tasks/input_output/doc.md — describe read_audios, save_audios; supported formats and file I/O patterns
- [ ] T008 [P] [US2] Create src/senselab/audio/tasks/plotting/doc.md — describe plot_waveform, plot_specgram, plot_waveform_and_specgram, plot_aligned_panels, play_audio; include panel types for plot_aligned_panels
- [ ] T009 [P] [US2] Create src/senselab/audio/tasks/quality_control/doc.md — describe QC framework, metrics, checks, taxonomy; reference issue #472 for roadmap
- [ ] T010 [P] [US2] Create src/senselab/audio/tasks/ssl_embeddings/doc.md — describe self-supervised learning embedding extraction; models supported
- [ ] T011 [P] [US2] Create src/senselab/audio/tasks/speaker_diarization_evaluation/doc.md — describe DER and other diarization evaluation metrics
- [ ] T012 [P] [US2] Create src/senselab/text/tasks/embeddings_extraction/doc.md — describe text embedding extraction; HuggingFace and sentence-transformers backends

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Standalone doc.md files are not automatically picked up by pdoc unless they are explicitly included in the module docstrings. To ensure this content appears in the generated documentation, you may need to add a directive like """.. include:: ./doc.md""" to the __init__.py of each respective module, or move the content directly into the docstrings.

Comment thread tutorials/README.md
| voice_activity_detection | Optional | Yes* | Detect speech segments |
| voice_cloning | Yes | No | Voice conversion |
| audio_recording_and_acoustic_analysis | No | No | Recording and acoustic feature analysis |
| transcription_and_phonemic_analysis | No | No | Transcription and phoneme-level analysis |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The GPU column for the transcription_and_phonemic_analysis tutorial is marked as No. Given that transcription is a computationally heavy task that benefits significantly from GPU acceleration, it would be more accurate to mark this as Optional (similar to speaker_diarization or speech_enhancement).

Suggested change
| transcription_and_phonemic_analysis | No | No | Transcription and phoneme-level analysis |
| transcription_and_phonemic_analysis | Optional | No | Transcription and phoneme-level analysis |

- docs-preview.yaml: add FFmpeg system install step
- video/tasks/input_output.py: guard ffmpeg import with try/except
  (ffmpeg-python was never in pyproject.toml dependencies)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Docs Preview: https://sensein.github.io/senselab/pr-479/

Updated for commit 613bf98

GitHub Pages CNAME is sensein.group (confirmed via gh api pages).
Updated: docs-preview.yaml comment URL, README.md badge + link,
pyproject.toml Documentation URL.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Docs Preview: https://sensein.group/senselab/pr-479/

Updated for commit d4fdc79

- 7 __init__.py files updated with """.. include:: ./doc.md""" so pdoc
  renders the doc.md content in generated documentation
- All docs URLs standardized to sensein.group/senselab (the canonical
  CNAME confirmed via GitHub Pages API)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Docs Preview: https://sensein.group/senselab/pr-479/

Updated for commit 181d327

The preview URL now shows as a "View deployment" button in the PR
checks UI via GitHub deployment environments. Each PR gets its own
environment (docs-preview-pr-{number}) which is cleaned up on close.

Removed PR comment posting — the deployment link in the checks UI
is cleaner and doesn't spam the PR thread.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@satra
satra merged commit 55c94ed into alpha Apr 25, 2026
9 checks passed
@satra
satra deleted the 20260424-232054-docs-pr-preview branch April 25, 2026 04:30
github-actions Bot added a commit that referenced this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant