Compare commits

..

No commits in common. "462931feb74cb3ad5bba940773206e29718bb1fe" and "38e5f8f06d41d0e307be7a91845e0e74b1face83" have entirely different histories.

2 changed files with 10 additions and 34 deletions

View file

@ -1,26 +1,7 @@
%% title = "what's going on inside the house? (a changelog)"
% id = "01J8YW9MZ4SD06KQY2H5GHJXRR"
- *revision 11:* version history
% id = "01J8YW9MZ4KAPYZVS1QR00W7PJ"
- there's now a little history icon next to the treehouse in the footer, which lets you see the history of a page.
% id = "01J8YW9MZ4J48PXF7VDNZ299HV"
- for example, [here's this page's history][page:h/treehouse/changelog]!
% id = "01J8YW9MZ48M6JKWMAC8E8MZJQ"
- there's still lots of work to be done around this feature---the endgame is to allow [JavaScript-less branch permalinking](https://src.liquidev.net/liquidex/treehouse/issues/33).
% id = "01J8YW9MZ42J6ZAZBYS1VW2RS4"
- currently linking to a branch on a historic version will send you to the correct page, but it will not highlight the branch due to the frontend being stupid.
% id = "01J8YW9MZ4QGYEGGPQJJC0BD8A"
- historic pages also _link to current pages and branches_, which is definitely not how it should work.
this will require some big refactoring work though, so I haven't gotten around to doing it yet.
% id = "01J3NX4F6Z0JWN0E4B3DJMTAFH"
- *revision 10:* I am speed
- **revision 10:** I am speed
% id = "01J3NX4F6Z0WB2RN4GHTVFNRGB"
+ the treehouse now caches most static assets, so that they don't have to be redownloaded.
@ -96,7 +77,7 @@
[ad blindness]: https://en.wikipedia.org/wiki/Banner_blindness
% id = "01J09K0B6JGYBJVVZ07QFXB0FM"
- *revision 9:* summer cleaning
- **revision 9:** summer cleaning
% id = "01J09K0B6J8GM4NYXDFSN0C58P"
- cleaned up a bunch of pages! see [new][page:treehouse/new] for the details
@ -126,7 +107,7 @@
I use a slightly smaller font size in my browser so I might just forget about it.
% id = "01HYP17EQHKKXFDV71ZR0DWJN9"
- *revision 8:* fancy syntax highlighting
- **revision 8:** fancy syntax highlighting
% id = "01HYP17EQHKPBRZPMD85NYZPMT"
- over the past few months the treehouse has been receiving a bunch more syntax highlighters
@ -154,7 +135,7 @@
like, no clue what they mean by that but cool?
% id = "01HRF1YCJ61Y4XAM94XNMRV3R7"
- *revision 7:* the main page is now a lot more colorful :rainbow:
- **revision 7:** the main page is now a lot more colorful :rainbow:
% id = "01HRF1YCJ6S5YBSFC13QPWKF3X"
- ``` =html
@ -184,7 +165,7 @@
and I'd like the other non-hobby categories to get their own colors too, but the four that are currently here are good enough for now.
% id = "01HR300JYTSEE1K1DH5R8QZ4K6"
- *revision 6:* it now works on Webkit
- **revision 6:** it now works on Webkit
% id = "01HR300JYTQA11TYPSX59Y4V2S"
+ this was a hefty refactor, but I introduced a replacement for the standard `is=""` attribute that works on Webkit.
@ -216,7 +197,7 @@
- buut if you really wanna, you can strip it off when sending the link to other people.
% id = "01HQ94FDZK5SSXPSHQG9BCKA0T"
- *revision 5:* added [news page][page:treehouse/new]!
- **revision 5:** added [news page][page:treehouse/new]!
% id = "01HQ94FDZKHSYR11K6A5CTAB4Q"
- this page will show you all the updates that have been happening since your last visit
@ -231,10 +212,10 @@
- another thing: there are now indent guides! my girlfriend said these make the website a lot more readable for her, so I guess they're good
% id = "01HP5AKRNJRG1W71MDJ8QY4YFW"
- *revision 4:* there's now a thing in the footer
- **revision 4:** there's now a thing in the footer
% id = "01HP45HV411QDDK8ZBNNBNR6AX"
- *revision 3:* just a bit more polish :relieved:
- **revision 3:** just a bit more polish :relieved:
% id = "01HP45HV41AP9PY0DZN47H8NJ2"
- emoji tooltips now have a neat animation on hover rather than just sort of appearing and disappearing immediately
@ -243,7 +224,7 @@
- pages can now have thumbnails that display in embeds
% id = "01HP20D2R4ZK30H85H0WBR5WK7"
- *revision 2:* just really comfy UX :relieved:
- **revision 2:** just really comfy UX :relieved:
% id = "01HP20D2R46FP213WVSZPHZXZN"
- first thing you probably noticed: added indent guides (may require a modern browser due to usage of [`:has`](https://developer.mozilla.org/en-US/docs/Web/CSS/:has))
@ -288,4 +269,3 @@
- internals: branches are now based on flexboxes rather than background images.
this requires sending a bit more HTML, but [the layout is a lot more stable][branch:01HP20D2R4F2XZVBBQNVW6CVHE] as well as being [easier to extend][branch:01HP20D2R4C0DZAKKB84FCQNXN]

View file

@ -134,11 +134,7 @@ pub fn fix_file(
pub fn fix_file_cli(fix_args: FixArgs) -> anyhow::Result<()> {
let utf8_filename = fix_args.file.to_string_lossy().into_owned();
let file = if utf8_filename == "-" {
std::io::read_to_string(std::io::stdin().lock()).context("cannot read file from stdin")?
} else {
std::fs::read_to_string(&fix_args.file).context("cannot read file to fix")?
};
let file = std::fs::read_to_string(&fix_args.file).context("cannot read file to fix")?;
let mut treehouse = Treehouse::new();
let mut diagnostics = vec![];