-
Notifications
You must be signed in to change notification settings - Fork 170
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
first prototype of a stream plugin #304
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
==========================================
+ Coverage 87.28% 87.46% +0.17%
==========================================
Files 19 20 +1
Lines 1408 1452 +44
==========================================
+ Hits 1229 1270 +41
- Misses 179 182 +3
Continue to review full report at Codecov.
|
this allows us to move more code into the main classes and test those in one shot
note that i have found that reordering the test suite may lead to breakage. by using |
i have now mostly complete unit test coverage for the code that's actually there, and i updated the todo list in the summary. what's basically missing now is a way to link to (or include?) the stream page somewhere. the feeds plugin is embedded directly in the theme templates:
should i just do the same, in the same place? we also need to decide if we want a single stream page or a per-directory one, which would complicate the above template... i think album exclusion can be implemented in a later stage, unless you think it's absolutely necessary. |
Just discovered this and loved it! |
The approach taken is to reuse the existing
index.html
template and instead flatten album hierarchies in a rather unorthodox way. Media stay linkable by prefixing the album path to their internal paths.Many issues with the code still:
not really sure it actually keeps the original albums sane.(update: unit tests make sure the original albums are kept intact)filename
andthumbnail_path
is sufficient for our needs. isurl
, for example, used anywhere?Other todos:
Closes: #303 (eventually)