-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add author and notebook registry for cookbooks #237
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4ed502f
feat: initialize cookbook registry and author management system
PedramNavid a3c3849
update registry
PedramNavid 295d9cd
refactor: simplify registry.yaml descriptions for clarity
PedramNavid 55c927b
feat: migrate registry from single category to multiple categories
PedramNavid 3adcaef
refactor: extract author verification logic to standalone script
PedramNavid 92760b6
refactor: rename verify_authors.py to verify_registry.py and expand v…
PedramNavid c26251d
feat: add JSON schema validation for registry and authors files
PedramNavid 6e9dbfc
image -> multimodal
PedramNavid 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "title": "Authors Schema", | ||
| "description": "Schema for authors.yml - maps GitHub usernames to author details", | ||
| "type": "object", | ||
| "patternProperties": { | ||
| "^[a-zA-Z0-9_-]+$": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "description": "Full display name of the author" | ||
| }, | ||
| "website": { | ||
| "type": "string", | ||
| "format": "uri", | ||
| "description": "Author's website URL (optional)" | ||
| }, | ||
| "avatar": { | ||
| "type": "string", | ||
| "format": "uri", | ||
| "description": "Avatar image URL (optional, defaults to https://github.com/username.png)" | ||
| } | ||
| }, | ||
| "required": ["name"], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| } |
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,73 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "title": "Registry Schema", | ||
| "description": "Schema for registry.yaml - cookbook metadata", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "title": { | ||
| "type": "string", | ||
| "description": "Title of the cookbook" | ||
| }, | ||
| "description": { | ||
| "type": "string", | ||
| "description": "Brief description of the cookbook" | ||
| }, | ||
| "path": { | ||
| "type": "string", | ||
| "description": "Path to the notebook file" | ||
| }, | ||
| "slug": { | ||
| "type": "string", | ||
| "pattern": "^[a-z0-9-]+$", | ||
| "description": "URL-friendly slug for the cookbook" | ||
| }, | ||
| "category": { | ||
| "type": "string", | ||
| "description": "Category of the cookbook" | ||
| }, | ||
| "github_url": { | ||
| "type": "string", | ||
| "format": "uri", | ||
| "description": "GitHub URL to the notebook" | ||
| }, | ||
| "authors": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "description": "GitHub username (must match keys in authors.yml)" | ||
| }, | ||
| "minItems": 1, | ||
| "description": "List of author GitHub usernames" | ||
| }, | ||
| "date": { | ||
| "type": "string", | ||
| "pattern": "^\\d{4}-\\d{2}-\\d{2}$", | ||
| "description": "Publication date in YYYY-MM-DD format" | ||
| }, | ||
| "tags": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "description": "Tags for the cookbook" | ||
| }, | ||
| "difficulty": { | ||
| "type": "string", | ||
| "enum": ["beginner", "intermediate", "advanced", ""], | ||
| "description": "Difficulty level (optional)" | ||
| }, | ||
| "use_case": { | ||
| "type": "string", | ||
| "description": "Use case category (optional)" | ||
| }, | ||
| "thumbnail": { | ||
| "type": "string", | ||
| "description": "Thumbnail image URL (optional)" | ||
| } | ||
| }, | ||
| "required": ["title", "path", "slug", "category", "github_url", "authors", "date"], | ||
| "additionalProperties": false | ||
| } | ||
| } | ||
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 |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # Byte-compiled / optimized / DLL files | ||
| tmp/ | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
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,53 @@ | ||
| # yaml-language-server: $schema=./.github/authors_schema.json | ||
| # Authors mapping: GitHub username -> Author details | ||
| # This file maps author GitHub usernames (used in registry.yaml) to their full details | ||
| # for display on the website. | ||
|
|
||
| Anthropic: | ||
|
PedramNavid marked this conversation as resolved.
|
||
| name: Anthropic | ||
| website: https://www.anthropic.com | ||
| avatar: https://github.com/anthropics.png | ||
| Briiick: | ||
| name: Alexander Bricken | ||
| website: https://bricken.co | ||
| avatar: https://avatars.githubusercontent.com/u/44481408?v=4 | ||
| GarvanD: | ||
| name: Garvan Doyle | ||
| website: https://garvandoyle.com | ||
| avatar: https://avatars.githubusercontent.com/u/22383376?v=4 | ||
| JiriDeJonghe: | ||
| name: Jiri De Jonghe | ||
| website: https://github.com/JiriDeJonghe | ||
| avatar: https://avatars.githubusercontent.com/u/33628402?v=4 | ||
| alexalbertt: | ||
| name: Alex Albert | ||
| website: https://github.com/alexalbertt | ||
| avatar: https://avatars.githubusercontent.com/u/34638987?v=4 | ||
| davidhershey: | ||
| name: David Hershey | ||
| website: https://github.com/davidhershey | ||
| avatar: https://avatars.githubusercontent.com/u/11651858?v=4 | ||
| james-briggs: | ||
| name: james-briggs | ||
| website: https://github.com/James-Briggs | ||
| avatar: https://avatars.githubusercontent.com/u/64431405?v=4 | ||
| john-vajda: | ||
| name: john-vajda | ||
| website: https://github.com/john-vajda | ||
| avatar: https://github.com/john-vajda.png | ||
| maheshmurag: | ||
| name: Mahesh Murag | ||
| website: https://github.com/maheshmurag | ||
| avatar: https://avatars.githubusercontent.com/u/5667029?v=4 | ||
| ravi03071991: | ||
| name: Ravi Theja | ||
| website: https://sites.google.com/view/ravi-theja | ||
| avatar: https://avatars.githubusercontent.com/u/12198101?v=4 | ||
| rgb-prithvi: | ||
| name: Prithvi Rajasekaran | ||
| website: https://x.com/rgb_prithvi | ||
| avatar: https://avatars.githubusercontent.com/u/64937816 | ||
| richmond-alake: | ||
| name: richmond-alake | ||
| website: https://github.com/richmond-alake | ||
| avatar: https://github.com/richmond-alake.png | ||
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.