Qi Xiao
0fc462b69a
pkg/eval: Require "catch" when using "else" in the try command.
...
This addresses the comment raised in #1782 .
2024-04-01 20:54:12 +01:00
Duncan Giles
943e15dfc5
try / else docs
...
Clarify code examples regarding required catch or finally when using else
2024-04-01 20:46:07 +01:00
Qi Xiao
fa43bb3120
website/style.css: Set default colors explicitly.
2024-03-27 14:03:25 +00:00
Qi Xiao
369d8ad58b
README.md: Fix link to Telegram group
...
The Elvish Telegram group used to be a public room with name “elvish”, but it was changed to be invite-only and the old name is now used by another room.
2024-03-24 09:01:31 +00:00
Qi Xiao
2d6f68a557
pkg/eval: More doc fixes.
2024-03-23 18:16:20 +00:00
Qi Xiao
301e39420e
pkg/eval: Fix "see also" links.
...
Also some minor rewording.
2024-03-23 18:13:38 +00:00
Qi Xiao
60b5a029ce
Expand the docs for styledown a bit.
2024-03-23 18:10:55 +00:00
Qi Xiao
0d71d58f7e
pkg/ui/styledown: A simple DSL for styled text.
...
This is similar in spirit to the existing ui.MarkLines, except that it's
entirely text-based.
2024-03-23 17:52:44 +00:00
Qi Xiao
4c2e5e78a4
pkg/ui: Change Repr of Segment and Text.
...
- Make the Repr of Segment actually match how it is constructed in Elvish code.
- Use a "^styled" tag for the Repr of Text.
2024-03-23 17:29:29 +00:00
Qi Xiao
de0ab3cd3f
pkg/eval: Fix test.
2024-03-23 10:42:34 +00:00
Qi Xiao
22e8a892fd
pkg/eval/evaltest: Change //skip to //skip-test.
...
This directive appears in .elv files, so "skip-test" is clearer.
2024-03-23 10:37:54 +00:00
Qi Xiao
6c55511956
pkg/eval: Test most .d.elv files, and fix many examples.
...
Also rewrite some docs, notably that of printf.
2024-03-23 10:37:54 +00:00
Qi Xiao
e58896f3e7
pkg/mods/md: Test the .d.elv file.
2024-03-23 09:33:35 +00:00
Qi Xiao
834edf738b
pkg/elvdoc: Suppress comment/directive lines when highlighting transcripts.
2024-03-22 20:13:24 +00:00
Qi Xiao
a86b79cf95
Enable more .d.elv files in transcript tests.
2024-03-22 20:07:12 +00:00
Qi Xiao
250110d359
pkg/eval/evaltest: Move the godoc to the package level.
...
Headings don't render well on godoc for symbols.
2024-03-22 20:06:39 +00:00
Qi Xiao
d54793dd1e
pkg/mods/math: Enable transcript tests for math.d.elv.
...
Also fix incorrect example outputs.
The tests are only enabled on amd64 and arm64 because the exact outputs could
depend on the CPU (see d3e802e536
for a similar
fix).
2024-03-22 19:48:00 +00:00
Qi Xiao
4b9a097f54
Support running transcript tests from .elv files too.
2024-03-22 19:47:53 +00:00
Qi Xiao
fad5f3f5c1
pkg/transcript: Support file- and symbol-level directives in .elv files.
2024-03-22 17:51:56 +00:00
Qi Xiao
746ac02842
pkg/elvdoc: Support file-level block.
2024-03-22 17:21:56 +00:00
Qi Xiao
bf2eb50ba8
pkg/elvdoc: Move support of "doc:id" into website/cmd/md2html.
...
Also change the spelling to "doc:html-id" as this is only relevant for HTML outputs.
2024-03-22 15:06:19 +00:00
Qi Xiao
204bf524a7
pkg/elvdoc: Move directives to the top of comment blocks.
...
Also support unknown directives.
2024-03-22 14:55:02 +00:00
Qi Xiao
64efe7305e
Implement completer for "del".
...
This fixes #1774 .
2024-03-22 13:59:58 +00:00
Qi Xiao
b0a1305db1
Trivial cleanups.
2024-03-22 11:20:35 +00:00
Qi Xiao
dfe675a0b4
Fixup for #1769 .
...
- Convert the test to a transcript test.
- Rename the variable to $before-exit and add elvdoc.
- Add TODO about how EvalCfg should always be passed in future.
2024-03-20 15:20:34 +00:00
anb
5138df0b98
trivial wording fix
2024-03-19 15:35:18 +00:00
anb
7c0daa1359
allow user to customize pre-exit hook
...
It is useful when user wants to clean up things that associated with
shell session.
Provide a CallHook internal API for the common usage.
2024-03-19 15:35:18 +00:00
Qi Xiao
490c8da992
Add math:atan2.
...
This fixes #1773 .
2024-03-19 14:49:30 +00:00
Qi Xiao
8337798663
website: Fix broken relative link.
2024-03-14 23:54:19 +00:00
Qi Xiao
485617c347
website: Minor edits to the quick tour.
2024-03-14 21:52:02 +00:00
Qi Xiao
48250aaf10
website: New series of articles: Beginner's Guide to Elvish.
...
This series replaces the unfinished "fundamentals" article.
2024-03-14 21:52:02 +00:00
Qi Xiao
1bca28f24e
website: Document the Alt-* keys in readline-binding.
2024-03-14 18:36:30 +00:00
Qi Xiao
eadae7fc65
Add GitHub issue templates.
2024-03-10 13:33:56 +00:00
Qi Xiao
62d69b4fa2
Add a summary of Go's CoC.
2024-03-09 12:34:19 +00:00
Qi Xiao
f24c33cbe0
Add code of conduct.
2024-03-09 12:18:36 +00:00
Qi Xiao
f5f23706b4
website: Style tweaks.
...
- Fix the article list bullet in dark mode.
- Don't underline anchor links.
2024-03-06 18:58:24 +00:00
Qi Xiao
f2e756bf0e
website: Fix canonical link for article pages.
2024-03-05 11:12:22 +00:00
Qi Xiao
aede17602e
website: More style tweaks.
...
- Give even rows on article lists a gray background too, a bit ligher than the odd rows.
- Put icon codepoints in CSS variables.
- Draw article list bullets with pure CSS, and use square bullets for every other article list.
2024-03-04 20:29:49 +00:00
Qi Xiao
6dcf93ccaf
website: Use sentence case for most article titles.
2024-03-04 19:41:49 +00:00
Qi Xiao
f30bdb5260
website: Recreate the bullets of article lists with pseudo elements.
2024-03-04 18:23:55 +00:00
Qi Xiao
5e5ba7b52d
pkg/eval: Use atomic.Bool for Port.readerGone.
2024-03-04 15:58:44 +00:00
Qi Xiao
b96d044a43
pkg/md: Update for CommonMark 0.31.2.
...
- Add <search> as supported HTML block tag
- Update definition of Unicode punctuation
2024-03-04 14:49:24 +00:00
Qi Xiao
b6703e491c
README: Use white logos for chat room badges.
2024-03-04 12:34:32 +00:00
Qi Xiao
ac7086f6a5
README: Update intro paragraphs.
2024-03-04 12:31:49 +00:00
Qi Xiao
67de7dcb61
Add Discord badge to README, and rearrange the orders.
2024-03-04 12:28:52 +00:00
Qi Xiao
2e308aba77
website: Add link to Discord guild.
2024-03-04 12:13:46 +00:00
Qi Xiao
1d81066513
website: Link to other pages from scripting case study.
2024-02-29 14:49:19 +00:00
Qi Xiao
6f15decd3b
website: Expand the scripting case study doc slightly.
2024-02-29 14:35:25 +00:00
Qi Xiao
b3d9ef57aa
Spell the Docker GitHub Actions workflow with a capital D.
2024-02-29 10:28:54 +00:00
Qi Xiao
2563b2316f
Build Docker images and push to ghcr.io.
...
Also slim down the Dockerfile to only include Elvish.
2024-02-29 10:24:11 +00:00