Commit Graph

564 Commits

Author SHA1 Message Date
Qi Xiao
ca9c342463 website/learn/tour.md: Document Elvish's alternative of field splitting. 2024-05-06 12:43:41 +01:00
Qi Xiao
9531364d9b website/get/default-shell.md: Format instructions as <ol>s. 2024-05-05 14:51:54 +01:00
Qi Xiao
60fcd92ddc website/get/default-shell.md: Document vscode-neovim's issue with Elvish as login shell.
Also add comments about overriding $SHELL for GUI applications.
2024-05-05 12:01:14 +01:00
Qi Xiao
17c8b462fb website/get/default-shell.md: Add instruction for VS Code's terminal. 2024-05-05 11:59:20 +01:00
Qi Xiao
8ea32c7028 website: Fix alignment of .api-comment. 2024-05-04 18:52:23 +01:00
Qi Xiao
afae07506a website: Run go mod tidy. 2024-05-04 18:16:48 +01:00
Qi Xiao
156a5e8ca6 cmd/md2html: Convert #doc:added-in directives to "added in $version" text. 2024-05-04 18:09:56 +01:00
Qi Xiao
2f9f2fa3e4 website/ref/edit.md: Document that some keys may not be available from the terminal. 2024-05-03 15:17:09 +01:00
Qi Xiao
1aeb2f6e98 pkg/eval: Link to the upvalue explanation from the doc of "eval".
Also make the upvalue explanation its own subsection.
2024-05-02 21:00:35 +01:00
Qi Xiao
6ee80589be website/get/default-shell.md: Fix gdb workaround example. 2024-04-30 15:53:41 +01:00
Qi Xiao
8cc1fa6546 website/ref/language.md: Add missing str: to has-suffix in example. 2024-04-30 10:29:25 +01:00
Qi Xiao
a31f7d5e56 website/get: Document how to work around gdb issues when using Elvish as login shell.
This addresses #1795.
2024-04-28 18:03:10 +01:00
topazus
0c50cc8f1e Add installation doc for Fedora 2024-04-25 22:33:35 +01:00
Tomas
806d07aa52 Fix typo in value-types.md 2024-04-10 13:11:23 +01:00
goodfirm
e3bf7189dd chore: fix function names in comment
Signed-off-by: goodfirm <fanyishang@yeah.net>
2024-04-10 11:10:58 +01:00
Duncan Giles
14380bc74d loop docs typo 2024-04-10 10:59:18 +01:00
Qi Xiao
081455fc49 website: Link to get/default-shell.html from ref/command.html.
This addresses #694.
2024-04-09 11:02:41 +01:00
Duncan Giles
5d23cc861d fix typos 2024-04-02 10:52:17 +01:00
Duncan Giles
0898cc7403 formatting 2024-04-02 10:51:47 +01:00
Duncan Giles
f0590d9b0c use anchor 2024-04-02 10:51:47 +01:00
Duncan Giles
422f551986 exception capture link 2024-04-02 10:51:47 +01:00
Qi Xiao
1b1d8e276c website/ref: Use a concrete command in the combined output-exception capture example.
The command relies on the failing command outputting a single value.

This addresses #1780.
2024-04-01 22:26:37 +01:00
Qi Xiao
1d45b6e9ed website/ref: Add examples for try from #1783 by @Duncan3142. 2024-04-01 22:12:45 +01:00
Qi Xiao
b0abf3cb11 website/ref: Expand the doc on ~ and : as part of variable names.
- Mention them in notes of the metacharacters section (originally proposed in
  #1781 by @marco-m).

- Add a new subsection for qualified names.

- Add examples of the correspondance between command foo and variable $foo~.
2024-04-01 21:46:54 +01:00
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
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
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
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
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
b39e9212cc website/get: Support selecting TUNA's mirror.
Also document TUNA's mirror in all-binaries.md.
2024-02-29 09:40:55 +00:00
Qi Xiao
c806b38b19 website: Show underline when hovering over links. 2024-02-28 20:02:37 +00:00
Qi Xiao
5b5bd9a0db website: Use "list-style: none" for article lists.
For some reason "list-style: inside" doesn't play well with flexboxes on Chrome
or Firefox.
2024-02-28 19:03:31 +00:00
Qi Xiao
3fe6d66168 website: Add fallback content when JavaScript is disabled. 2024-02-28 18:40:22 +00:00
Qi Xiao
18f3e72981 website: Style tweaks.
- Give <h[123]> a margin-bottom equal to <p> and a larger margin-top.

  This sets them apart from the previous section but not the section they are
  leading.

- Give the article list on category index pages alternating backgrounds, and
  remove the on-hover background color.

- Various minor tweaks.
2024-02-28 18:32:40 +00:00
Qi Xiao
00ff7c4a62 website: Fix the style of /get in dark mode. 2024-02-28 16:26:41 +00:00
Qi Xiao
01649f8fb1 website: Update .gitignore and add ttyshot files back. 2024-02-28 16:15:03 +00:00
Qi Xiao
fec87dde0a website: Run "go mod tidy". 2024-02-28 16:13:04 +00:00