Page edit history #16
Labels
No labels
a11y
art
bug
content
content idea
content/music
dev
feat
perf
sandbox
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#26 Implement generation of versioned pages
liquidex/treehouse
#27 Generate pages from the working tree in addition to the Git history
liquidex/treehouse
#28 Make /b work properly with version history
liquidex/treehouse
Reference: liquidex/treehouse#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I’ve been trying to not conceal old (versions of) branches, but it’s kind of hard to do while keeping content readable (both from the user side and my side.) So having an unobtrusive system for tracking changes here would be nice.
Branch edit historyto Page edit historyI've been convinced that a better action plan would be to implement an edit history for individual pages instead of individual branches.
First of all, from an end user experience perspective, branches always live within some context. That context is the page, and only tracking changes to individual branches would be a little pointless. It would introduce noise and the context would be hard to track.
Second of all, this approach is just simpler. All we'd need to do is generate a separate page for each Git revision, perhaps suffixed with a
+rev
in the filename to differentiate the different pages.rev
is a sequential ID for brevity.The current permalinks
/b?id
would be replaced with short links/b/id+rev/optional_first_few_words
, which would resolve the pagepage+rev
and redirect you to/page+rev#id
. That way we'd avoid having to scroll and highlight the branch with JavaScript.Element IDs are changed to just the branch ID rather than
tree_path:branch_id
. This will unfortunately break all the old JavaScript#
-only links, but I doubt these are in much use, as they only existed before I really talked about the treehouse publicly./b?id
will still work like it does now---link to the latest revision, because it might be hard to track down which revision was the first as of introducing this feature.I'll probably play with libgit2 to see how nice we could make this from the developer perspective. (And how much it would slow down generation. Maybe it's time for incremental compilation if it becomes too slow.)