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
Add tag weights #19
Add tag weights #19
Commits on Mar 21, 2020
-
Louis committed
Mar 21, 2020
Commits on Mar 22, 2020
-
Use existing pad instead of creating a new one.
Louis committedMar 22, 2020 -
Compute tag counts only if necessary
Louis committedMar 22, 2020
Commits on Mar 29, 2020
-
Louis committed
Mar 29, 2020 -
Replace arguments
a
andb
bylower
andupper
Louis committedMar 29, 2020 -
Replace
collections.defaultdict(int)
bycollections.Counter()
.Louis committedMar 29, 2020 -
Replace the
tagweight
dictionary with aTagWeight
classLouis committedMar 29, 2020 -
Louis committed
Mar 29, 2020 -
Removed some magic: explict is better than implicit
Louis committedMar 29, 2020
Commits on Mar 30, 2020
-
Louis committed
Mar 30, 2020 -
Remove my name from lektor_tags.py (my name has been added to AUTHORS…
… file)
Louis committedMar 30, 2020
Commits on Apr 2, 2020
-
[tag weights] Even with
lektor server
, tag weights are re-calculate……d at each build
Louis committedApr 2, 2020
Commits on Apr 3, 2020
-
Louis committed
Apr 3, 2020
Commits on Feb 9, 2022
-
Merge branch 'master' into weights
Louis committedFeb 9, 2022 -
The primary data structure is a mapping of tag names to TagWeight() o…
…bjects (instead of a TagWeights() object). See lektor#19 (comment)
Louis committedFeb 9, 2022 -
Louis committed
Feb 9, 2022
Commits on Feb 10, 2022
-
Update documentation to match 95e0f25
Louis committedFeb 10, 2022 -
Apply black and reorder-python-imports
Louis committedFeb 10, 2022 -
Commits on Feb 11, 2022
-
Turn TagWeight into a dataclass
Louis committedFeb 11, 2022 -
TagWeight ordering: Use functools.total_ordering; raise NotImplemente…
…dError if comparing an object of another class
Louis committedFeb 11, 2022 -
Return {} if there is not tags
Louis committedFeb 11, 2022 -
Cosmetic change to the way TagWeight.linear() and TagWeight.log() are…
… computed
Louis committedFeb 11, 2022 -
Set
tagweight
jinja environment variable only once.Louis committedFeb 11, 2022 -
TagWeight: Do not fail with pages without any tags (or with a tag fie…
…ld of a wrong type)
Louis committedFeb 11, 2022 -
TagWeight tests: Use a group of three elements for loggroup() test
Louis committedFeb 11, 2022 -
-
Fix TagWeight rich comparison methods
- Actually apply the `@total_ordering` decorator to the class :-) - Check type of `other` in `__eq__` - Return `NotImplemented` rather than raise `NotImplementedError`