Skip to content

Conversation

@alexbainter
Copy link
Collaborator

@alexbainter alexbainter commented Dec 16, 2025

Closes #111 (though admittedly a little different from what was loosely specified)

Adds filtering by JSON or XML specification formats, and by RFC or W3C documentation roles on the homepage.

EDIT: After this recording was made I updated the logic to display "Showing [N] matching schemas" or "No matching schemas" when any of the filtering controls are used (not just search)

Screencast.From.2025-12-16.15-33-51.webm

@alexbainter alexbainter requested a review from lisad December 16, 2025 21:37
@alexbainter alexbainter force-pushed the alex-111-index-filter branch from e1cd783 to 8043539 Compare December 16, 2025 21:41
Copy link
Member

@lisad lisad left a comment

Choose a reason for hiding this comment

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

I believe there's a duplicated method that behaves differently where it's copied over, otherwise this is good

def __str__(self):
return self.name

@property
Copy link
Member

Choose a reason for hiding this comment

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

It looks like def(language) is in here twice?

Copy link
Collaborator Author

@alexbainter alexbainter Dec 17, 2025

Choose a reason for hiding this comment

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

One is for SchemaRef and the other is for DocumenationItem and they do have meaningfully different implementations (different options for the possible languages)

@lisad lisad self-requested a review December 18, 2025 00:04
Copy link
Member

@lisad lisad left a comment

Choose a reason for hiding this comment

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

Thanks for the clarification. I had an inkling I might be missing a class declaration although I tried to expando the diff.

@alexbainter alexbainter merged commit e4ed462 into main Dec 18, 2025
8 checks passed
@alexbainter alexbainter deleted the alex-111-index-filter branch December 18, 2025 01:55
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.

Add a schemaref 'type' that is filterable on the main page search

3 participants