-
Notifications
You must be signed in to change notification settings - Fork 257
🔗 Add script to automatically make new meetings pages #2401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JFWooten4
wants to merge
21
commits into
stellar:main
Choose a base branch
from
JFWooten4:2145-pt-8
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
665cb75
Update liquidity-on-stellar-sdex-liquidity-pools.mdx
fa6c87a
Merge branch 'main' of https://github.com/JFWooten4/stellar-docs
162977b
Merge branch 'main' of https://github.com/JFWooten4/stellar-docs
JFWooten4 5400790
Merge branch 'main' of https://github.com/JFWooten4/stellar-docs
JFWooten4 b79fb02
Merge branch 'main' of https://github.com/JFWooten4/stellar-docs
JFWooten4 39733b9
Merge https://github.com/stellar/stellar-docs
JFWooten4 981f76a
Merge branch 'main' of https://github.com/JFWooten4/stellar-docs
JFWooten4 a9f6587
Merge https://github.com/stellar/stellar-docs
JFWooten4 8ec78f1
Add meetings page generator script
JFWooten4 f1749f0
Ignore cookies.txt files
JFWooten4 c5cd282
Exclude meetings README from blog content
JFWooten4 40f11e5
finish incomplete bullet
JFWooten4 d861923
new placeholder author
JFWooten4 b58fa90
avoid stale `pip`s
JFWooten4 04d8b81
duplicate `createPage` condition
JFWooten4 4efb260
Merge branch 'main' into 2145-pt-8
JFWooten4 133cb81
possessive transcribed forms
JFWooten4 9db1fe4
remove default argparse
JFWooten4 39970b9
clean punctuation dependency
JFWooten4 bd74ddc
Merge branch '2145-pt-8' of https://github.com/JFWooten4/stellar-docs…
JFWooten4 3a62887
example 2023-05-04 meeting notes
JFWooten4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # Developer Meetings | ||
|
|
||
| This folder contains the meeting posts and a helper script to generate new | ||
| meeting pages from a YouTube video ID (11 characters). | ||
|
|
||
| ## Script | ||
|
|
||
| `meetings/new-meeting.py` | ||
|
|
||
| What it does: | ||
|
|
||
| - Downloads YouTube captions (VTT) via `yt_dlp`. | ||
| - Builds a transcript with 1-minute blocks. | ||
| - Adds punctuation and spellcheck. | ||
| - Creates a new `meetings/YYYY-MM-DD.mdx` page with front-matter and YouTube | ||
| embed. | ||
|
|
||
| What it doesn't do: | ||
|
|
||
| - Draft a perfect description. | ||
| - Add a helpful resources section. | ||
|
JFWooten4 marked this conversation as resolved.
|
||
| - Pull the actual meeting date when different from video upload date. | ||
| - Handle days when there are multiple meetings to put together. | ||
|
|
||
| ### Requirements | ||
|
|
||
| Python 3.9+ and a virtual environment. | ||
|
|
||
| ### Setup | ||
|
|
||
| ```bash | ||
| python -m venv .venv | ||
| .\.venv\Scripts\activate | ||
| python -m pip install yt_dlp webvtt-py deepmultilingualpunctuation language_tool_python | ||
| ``` | ||
|
|
||
| Spellcheck requires Java (used by `language_tool_python`). If Java isn’t | ||
| installed, spellcheck will be skipped with a warning. | ||
|
|
||
| Java install (any platform): | ||
|
|
||
| - Install a [recent JDK](https://www.oracle.com/java/technologies/downloads) | ||
| (Java 17+ recommended). | ||
| - Make sure `java` is on your PATH (`java -version` should work). | ||
|
|
||
| ### Basic usage | ||
|
|
||
| Run and answer the prompts: | ||
|
|
||
| ```bash | ||
| python meetings/new-meeting.py | ||
| ``` | ||
|
|
||
| <!-- removable --> | ||
|
|
||
|
JFWooten4 marked this conversation as resolved.
|
||
| Or pass values directly: | ||
|
|
||
| ```bash | ||
| python meetings/new-meeting.py \ | ||
| --video VIDEO_ID \ | ||
| --authors name-slug \ | ||
| --tags developer | ||
| ``` | ||
|
|
||
| This will: | ||
|
|
||
| - Download captions into memory (deleted without `--keep-vtt`) | ||
| - Create `meetings/YYYY-MM-DD.mdx` using the YouTube upload date | ||
|
|
||
| ## Notes | ||
|
|
||
| - `--authors` must match IDs in `meetings/authors.yml`. | ||
| - Use `--no-create-page` to skip MDX generation and only export captions. | ||
| - Use `--save-txt` to also write `transcripts_out/VIDEO_ID.en.txt` or use | ||
| `--keep-vtt` to keep raw closed-caption files. | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.