Commit Graph

6635 Commits

Author SHA1 Message Date
Qi Xiao
536f2c18dc website/slides: Slidedeck sources and tools
- Slidedecks are Markdown files; conversion uses the md2html tool of the website
  toolchain

- Individual slides are delimited by <hr> (*** in Markdown)

- Splitting slides, switching slides and hash synchronization happen in
  JavaScript
2024-06-28 20:22:05 +08:00
Qi Xiao
7373258594 website: Move SGR classes to separate sgr.css 2024-06-28 19:58:40 +08:00
Qi Xiao
0dc8050897 Fix tests on Windows. 2024-06-27 16:12:48 +08:00
Qi Xiao
d133897c83 Rewrite all Program tests as transcript tests.
The old pkg/prog/progtest is replaced with helpers for wrapping Program's into
Go functions.
2024-06-27 14:04:25 +08:00
Qi Xiao
58ec3ca358 pkg/shell: Rewrite tests as transcript tests.
Program's can be tested like builtin functions with a little bit of wrapping.
2024-06-26 01:45:23 +08:00
Qi Xiao
b3dbf62d63 pkg/eval/evaltest: Document deterministic output ordering. 2024-06-26 01:45:23 +08:00
Qi Xiao
1a48e6d629 Add doc for using Elvish as a library, and architecture doc to a subdirectory. 2024-06-11 17:22:07 +01:00
Qi Xiao
499b139741 tools/buildall.elv: Still generate sha256sum files for binaries.
They are used from CI workflows to ensure that the binaries are reproducible.
In theory they could be changed to compare the sha256sum files for the archive
files too, but it's too much of a hassle to create reproducible archive files.
2024-06-11 16:32:18 +01:00
Qi Xiao
6c62d738a2 tools/buildall.elv: Remove binary file by default. 2024-06-11 16:19:33 +01:00
Qi Xiao
7f24110d79 tools/buildall.elv: Add linux-riscv64. 2024-06-11 16:13:19 +01:00
Qi Xiao
78afd4788e website/get: Link to docs/building.md. 2024-06-11 15:38:07 +01:00
Qi Xiao
89f444b581 pkg/prog: Expand godoc more. 2024-06-10 16:09:41 +01:00
Qi Xiao
9fe505c5d3 Put development docs in docs/.
Also clean up the project README.
2024-06-10 11:49:13 +01:00
Qi Xiao
2e527f77fd pkg/parse: Expand godoc. 2024-06-09 17:03:21 +01:00
Qi Xiao
de418a683f pkg/pprof: Remove the unused Cleanup method.
Cleanups are now returned from the Run method, wrapped inside the NextProgram
error. The Cleanup method seems to be remnants of a previous version of the API.
2024-06-09 17:02:20 +01:00
Qi Xiao
0cd215e638 pkg/prog: Expand godoc. 2024-06-09 17:02:09 +01:00
Qi Xiao
44bc8d04a6 pkg/shell: Expand the godoc of shell.Program. 2024-06-09 17:01:50 +01:00
Qi Xiao
1fed020548 README.md: Don't call alternative main packages "variants".
The term "build variant" has a different meaning defined in PACKAGING.md, so
avoid using that term.
2024-06-08 16:52:43 +01:00
Qi Xiao
1e3549f97f pkg/eval: Clarify that "count" works for containers in general.
Also include the word "length" to make it slightly easier to find.
2024-06-05 21:27:36 +01:00
Qi Xiao
e62ba90e37 website/sponsor: Expand the page a bit. 2024-06-05 16:49:54 +01:00
Qi Xiao
54ecd6e2ee website: Add sponsor page, linked from nav bar and homepage. 2024-05-31 15:02:23 +01:00
Qi Xiao
9ef1d9cc19
Create FUNDING.yml 2024-05-31 14:01:18 +01:00
Kevin Gillette
64d2f7ad70 Update builtin_fn_styled.d.elv: colon instead of period 2024-05-28 21:13:22 +01:00
Kevin Gillette
59ed6792b5 builtin_fn_styled.d.elv: disambiguate doc wording
The prior wording could be interpreted as meaning that the single styled segment that the function returns, rather than the function itself, is then applied to all styled segments.
2024-05-28 21:13:22 +01:00
Tim Condit
06979efb9a remove an 'e' 2024-05-15 23:36:29 +01:00
Qi Xiao
f8616fa479 website/learn/scripting-case-studies.md: Mention Elvish's better behavior when *.jpg has no match.
Also some minor rewrites.
2024-05-10 11:39:12 +01:00
Qi Xiao
db23e08c61 pkg/eval/options.go: Revert the change to option parsing introduced in eb1770f2b9.
This was part of PR #1591 which I requested to remove, but apparently forgot to
remove in the fixup.
2024-05-08 19:17:10 +01:00
Qi Xiao
3750ad234b Ignore /_*. 2024-05-06 12:45:16 +01:00
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
df840c28c6 Document more commands added in 0.21. 2024-05-04 18:56:12 +01:00
Qi Xiao
8ea32c7028 website: Fix alignment of .api-comment. 2024-05-04 18:52:23 +01:00
Qi Xiao
77ffd8fe08 tools/pre-push: Set GOWORK=off. 2024-05-04 18:26:03 +01:00
Qi Xiao
afae07506a website: Run go mod tidy. 2024-05-04 18:16:48 +01:00
Qi Xiao
a450081bce Annotate commands added after 0.20 with "doc:added-in 0.21". 2024-05-04 18:12:25 +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
b201c8d4fa pkg/md: Add more comments about header attributes. 2024-05-04 17:58:06 +01:00
Qi Xiao
cee682c489 pkg/mods/str: Add str:repeat. 2024-05-04 17:57:54 +01:00
Qi Xiao
8063c826a3 pkg/eval/evaltest: Support 32bit and 64bit as tags for //only-on. 2024-05-04 16:52:59 +01:00
Qi Xiao
70587e1a14 Add a test for #1800. 2024-05-03 18:39:20 +01:00
SolitudeSF
98ddd450f7 Exclude _ from double argument checking 2024-05-03 18:38:51 +01:00
Qi Xiao
a03125e10e pkg/edit: Remove elvdoc for edit:completion:close, which no longer exists. 2024-05-03 15:19:10 +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
57078f79be pkg/edit: Fix crash in edit:complete-filename when given no arguments.
This fixes #1799.
2024-05-03 14:56:40 +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
c7d81b20a0 pkg/eval: Minor fixup for #1796. 2024-04-30 15:54:58 +01:00
Qi Xiao
6ee80589be website/get/default-shell.md: Fix gdb workaround example. 2024-04-30 15:53:41 +01:00
jeff hu
0b6cae04c5 Catch error when dup names found in the lambda 2024-04-30 15:53:18 +01:00