Commit Graph

37 Commits

Author SHA1 Message Date
Kartik Agaram e4ac3c9e6e 4814 2018-12-01 14:13:33 -08:00
Kartik Agaram 8bf0c436ec 4805
More tweaking of colors, as far as possible in 256-color terminal mode
that's almost entirely just for me, and beyond that in the generated html
that more people may look at. In the former I have to work with a limited
palette, while I'd like the latter to be more accessible for others.

Evolution of colors:
  === 1
    .subxH1Comment { color: #00ffff; }
    .subxH2Comment { color: #00afff; }
    .subxComment { color: #00afff; }
    .subxS1Comment { color: #0080ff; }
    .subxS2Comment { color: #0040ff; }

  === 2
    sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html
    sed -i 's/^\.subxH2Comment.*/.subxH2Comment { color:#00bbff; }/' $1.html
    sed -i 's/^\.subxComment.*/.subxComment { color:#00bbff; }/' $1.html
    sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#0098ff; }/' $1.html
    sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0070ff; }/' $1.html  # slightly too dark

  === 3: http://www.perbang.dk/rgbgradient from start to end
    sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html
    sed -i 's/^\.subxH2Comment.*/.subxH2Comment { color:#00ddff; }/' $1.html
    sed -i 's/^\.subxComment.*/.subxComment { color:#00bbff; }/' $1.html
    sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#0099ff; }/' $1.html
    sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0078ff; }/' $1.html

  === 4: drop down to 4 colors
    sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html
    sed -i 's/^\.subxComment.*/.subxComment { color:#00d2ff; }/' $1.html
    sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#00a4ff; }/' $1.html
    sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0078ff; }/' $1.html

  === 4: make final one just a little too dark
    sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html
    sed -i 's/^\.subxComment.*/.subxComment { color:#00cfff; }/' $1.html
    sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#009fff; }/' $1.html
    sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0070ff; }/' $1.html  # slightly too dark

  === 5: make darkest shade a little less blue, just at the edge of too dark
    sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html
    sed -i 's/^\.subxComment.*/.subxComment { color:#16ccff; }/' $1.html
    sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#2d99ff; }/' $1.html
    sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#4466ff; }/' $1.html  # slightly too dark

  === 6: HSV gradient between the same endpoints
    sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html
    sed -i 's/^\.subxComment.*/.subxComment { color:#16bfff; }/' $1.html
    sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#2d8cff; }/' $1.html
    sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#4466ff; }/' $1.html  # slightly too dark
2018-11-30 14:20:37 -08:00
Kartik Agaram 2564eb6f55 4804 2018-11-30 14:19:59 -08:00
Kartik Agaram 5a2cb154eb 4649 2018-10-02 01:21:32 -07:00
Kartik Agaram c762564bd7 4539 2018-09-07 22:42:23 -07:00
Kartik Agaram 608a7fa8d0 4536 2018-09-07 15:08:54 -07:00
Kartik Agaram bb2b6ba7fd 4478 2018-08-04 17:00:27 -07:00
Kartik Agaram cdf2822743 4242 - get rid of refcounts entirely
We're going to lean back into the experiment of commit 4179 back in Jan.
If we delete memory it's up to us to ensure no pointers into it survive.

Since deep-copy depends on our refcounting infrastructure, it's gone as
well. So we're going to have to start watching out for pointers shared
over channels.
2018-05-12 10:22:26 -07:00
Kartik K. Agaram d55e77387f 4117 - done with delimited continuations
At least this particular implementation of them. Let's play with them
now for a while, see if they're fully equivalent to shift/reduce.
2017-11-06 01:28:53 -08:00
Kartik K. Agaram ba6621b507 4114 2017-11-05 11:17:34 -08:00
Kartik K. Agaram 15cd825dee 4077
Stop hyperlinking every `i` in subx html files to the integer register
union.
2017-10-17 23:50:45 -07:00
Kartik K. Agaram 25ad969f75 4052 2017-10-12 23:43:09 -07:00
Kartik K. Agaram 8a92572df5 3983 2017-08-22 09:50:06 -07:00
Kartik K. Agaram 9a7e1a0f36 3961
Expand the steps in `update_html` and try to process each set of files
separately so we can see commonality.

The eventual goal is a script that can selectively process a subset of
files. But this is a good first step: I can at least easily comment out
different subsets.
2017-06-25 16:31:19 -07:00
Kartik K. Agaram 4a39d12d45 3764 - better colors for cross-links 2017-03-08 19:02:59 -08:00
Kartik K. Agaram 97eb971b75 3725
More improvements to cross-linking example programs. Include their own
functions as well in the tags for each program, even as you share the
core .mu files everywhere.
2016-12-27 22:20:43 -08:00
Kartik K. Agaram 76a56bc912 3720 2016-12-27 11:14:12 -08:00
Kartik K. Agaram 4c4d325ca8 3716
Make hyperlinks less salient in the rendered html since there's so many of them.
2016-12-26 22:09:54 -08:00
Kartik K. Agaram fdfe34ded3 3715
Fix cross-links in html for the edit/ app.

I originally thought I'd need to provide a commandline flag like --rel-path or
something. But we need to support different relative paths in a single html
file. So the solution instead is appropriately engineering the tags file.
2016-12-26 21:23:55 -08:00
Kartik K. Agaram 201458e3bd 3713 - cross-link calls with definitions in html 2016-12-26 20:58:37 -08:00
Kartik K. Agaram 204dae921a 3710
Turns out we don't need to explicitly add anchors for each line. Vim's TOhtml
has magic for that out of the box.
2016-12-26 11:44:14 -08:00
Kartik K. Agaram e5c11a5137 3709 - line numbers in html
Each line number also gets an anchor name, but I'm not hyperlinking them for now
because I don't want to encourage bookmarking these links just yet. They aren't
permalinks because every revision may change what's at any given line number.
2016-12-26 01:26:16 -08:00
Kartik K. Agaram ccae45851f 3687 2016-11-25 11:04:41 -08:00
Kartik K. Agaram f40b079c2a 3559 2016-10-22 16:33:06 -07:00
Kartik K. Agaram 70f4e9b60d 3544 2016-10-22 04:13:57 -07:00
Kartik K. Agaram 98e3a41bf9 3542
Keep color of control flow keywords from bleeding into that of function
headers.
2016-10-22 04:03:36 -07:00
Kartik K. Agaram f7df4efc77 3496 2016-10-11 22:38:46 -07:00
Kartik K. Agaram ceeb92d470 3490
Redo commit 3457.

Basically there were 3 unicode characters we changed back then:
  solid horizontal line: 9473 -> 9472
  fuzzy horizontal line: 9480 -> 9548
  fuzzy vertical line: 9482 -> 9550

The solid horizontal line has no issues, so we just redo it here.
For the other two, we'll perform the substitution only when rendering
html. That gives us the best of both worlds: the scenario screens render
right in html, and alt-tabbing continues to be snappy when running the
edit/ app.
2016-10-09 00:20:43 -07:00
Kartik K. Agaram c0e9154d6a 2745 2016-03-09 03:40:41 -08:00
Kartik K. Agaram e605699951 2744
Tweak colors and font-sizes in generated html.
2016-03-09 03:31:56 -08:00
Kartik K. Agaram 4690ce81e0 2743
Looks like "TOhtml | <other command>" doesn't work on Mac OS X for some
reason..
2016-03-09 02:56:27 -08:00
Kartik K. Agaram f5465e1220 2177 2015-09-07 10:37:27 -07:00
Kartik K. Agaram 9570363aec 1885 2015-07-29 15:55:05 -07:00
Kartik K. Agaram 62a52ffbfe 1690 2015-07-01 10:19:04 -07:00
Kartik K. Agaram b3f44d64c4 1632 2015-06-23 15:25:47 -07:00
Kartik K. Agaram dbe124108b 1631 - update html versions
Html is a little more readable thanks to feedback from J David Eisenberg
(https://news.ycombinator.com/item?id=9766330), in particular the
suggestion to use https://addons.mozilla.org/En-us/firefox/addon/wcag-contrast-checker.
2015-06-23 14:02:12 -07:00
Kartik K. Agaram 4bbd3ded0b 1517 2015-05-30 19:37:02 -07:00