itchyny
9044f540bb
Validate manual schema
2023-07-22 19:00:16 -05:00
pkoppstein
3553a9d617
manual.yml: some clarifications plus fixes for markdown bloopers ( #2737 )
2023-07-21 21:33:03 +09:00
itchyny
7c2bf9bd17
Clarify the Docker image location ( close #1864 ) ( #2740 )
2023-07-21 20:42:11 +09:00
pkoppstein
3ec66c858c
manual.yml: revise section on identity, clarifying what is subject to change
...
Mostly clarifications w.r.t. numbers.
The anomalous behavior of leading minus signs is documented, with an explicit notice that this will probably change.
2023-07-19 22:32:24 -05:00
itchyny
f0306405c1
Add notes on NO_COLOR environment variable to the manual
2023-07-19 09:56:01 -05:00
0b558f6ed4
Make object key color configurable ( close #1739 , #1791 , #2638 )
...
Co-authored-by: David Haguenauer <ml@kurokatta.org >
Co-authored-by: Eric Pruitt <eric.pruitt@gmail.com >
2023-07-18 17:53:29 -05:00
Emanuele Torre
15fd31de78
Define examples in the "examples" field instead of "example"
...
Only examples defined in the "examples" field are generated, if they are
defined in "example", they are just ignored.
Also fix a bunch of incorrect tests.
2023-07-18 12:12:50 -05:00
itchyny
9e4c71558a
Split man.test to make tests pass without oniguruma ( #2722 )
2023-07-18 08:17:21 +09:00
pkoppstein
07ef97c414
debug/1 ( #2710 )
...
* debug/1
This def ensures the output of debug(m1,m2) is kept together.
Closes #2709 #2111 #2112
2023-07-14 00:17:42 +02:00
itchyny
481167c8f1
Update jinja2 to fix deprecation warnings on building website ( #2711 )
2023-07-14 00:06:53 +09:00
Emanuele Torre
c99981c5b2
Update "tests/man.test" and remove superflous whitespace in manual.yml
...
tests/man.test was generated incorrectly and had some duplicate tests,
the new CI workflow didn't like that.
2023-07-11 00:24:50 -05:00
Emanuele Torre
c049061084
Fix build_manpage.py with newer markdown versions
...
The markdown python changed its API for markdown extensions.
Bumping the markdown package version in previous commits broke
docs/build_manpage.py since it was using registering an extension with
the old API.
2023-07-11 00:24:50 -05:00
Emanuele Torre
2377972dfe
Use jinja2 ==3.0.2 for now
...
We are using some deprecated jinja2 features that have been removed in
newer versions.
2023-07-10 16:19:52 -05:00
Nicolas Williams
31280c3b50
Revert "Update docs/Pipfile.lock"
...
This reverts commit 7fba85095b .
2023-07-10 15:33:18 -05:00
Emanuele Torre
7fba85095b
Update docs/Pipfile.lock
2023-07-10 15:23:00 -05:00
Nicolas Williams
295ff72dd0
Update docs/README.md
2023-07-10 14:35:11 -05:00
pkoppstein
8345a8a62b
manual.yml: further tweaks re map and map_values
...
Further tweaks, e.g. i.f.o. explicitness:
`map_values(f)` outputs an array if given an array,
or an object if given an object.
2023-07-10 00:06:58 -05:00
pkoppstein
39cf2fb7a6
manual.yml: further tweaks re map and map_values
...
A more systematic exposition
2023-07-10 00:06:58 -05:00
pkoppstein
d710324ef8
manual.yml: clarify explanation of map_values, including description of new behavior
...
#2466
2023-07-10 00:06:58 -05:00
itchyny
cac216a39c
Fix manual on paths/1 to use boolean filter for its argument
2023-07-09 10:54:13 -05:00
itchyny
d8072564c2
Fix nth/2 to emit empty on index out of range
2023-07-08 23:13:15 -05:00
itchyny
e2bc8de8bb
Fix the latest manual on string multiplication by zero
2023-07-08 23:10:07 -05:00
itchyny
0ecededefa
Remove deprecated filters: leaf_paths, recurse_down
2023-07-07 10:53:40 -05:00
pkoppstein
c68ad08805
manual.yml: pick(pathexps)
...
Change formal parameter name
2023-07-05 23:48:31 -05:00
pkoppstein
416e8ada7d
builtin: add pick(stream)
...
pick(stream) works on both arrays and objects
Restrictions on the dot-paths are specified in manual.yml
See #2578
2023-07-05 23:48:31 -05:00
Mattias Wadman
12ce4e3b54
Support optional else-branch for if-then-elif-end ( #2598 )
2023-07-04 07:51:29 +09:00
pkoppstein
83f375cc83
Revamp sub/3 to resolve most issues with gsub (and sub with "g") ( #2641 )
...
The primary purpose of this commit is to rectify most problems with
`gsub` (and also `sub` with the `g` option), in particular fix #1425 ('\b'),
fix #2354 (lookahead), and fix #2532 (regex == `"^(?!cd ).*$|^cd "`).
This commit also partly resolves #2148 and resolves #1206 in that
`gsub` no longer loops infinitely; however, because the new `gsub`
depends critically on `match/2`, the behavior when regex == `""` is
sometimes non-standard.
The documentation has been updated to reflect the fact that `sub`
and `gsub` are intended to be regular in the second argument.
Also, `_nwise/1` has been tweaked to take advantage of TCO.
2023-07-04 07:46:29 +09:00
pkoppstein
3c76a5b3f3
manual.yml: fix references to javascript, and clarify semantics of == ( #2645 )
...
remove inaccurate and confusing references to javascript; clarify semantics of ==
2023-07-03 12:35:41 +09:00
itchyny
4b5fcb936f
Fix the default search paths and documentation ( #2093 )
2023-07-03 09:12:22 +09:00
itchyny
f88c4e5888
Move an example to the manual and regenerate man.test ( #2639 )
2023-06-30 07:45:29 +09:00
itchyny
6864aa8630
Fix manual section titles, minor typos, and improve inline codes ( #2626 )
2023-06-22 08:31:38 +09:00
Alex Jurkiewicz
dd5ce98caf
Document length for numbers and bools ( #2625 )
...
This was added in ae7a042876 but not explicitly documented.
2023-06-21 18:21:39 +09:00
itchyny
9a590427db
Improve Download page: drop versions for each package manager ( #2619 )
2023-06-20 08:23:42 +09:00
Dawid Ferenczy Rogožan
11d909170e
Added usage under Powershell to the manual ( #2306 )
2023-06-16 22:47:37 +09:00
calpeconsulting
c2026f5d9e
Fedora link returns 404 ( #2067 )
2023-06-16 22:03:32 +09:00
Marcin Kłopotek
0567d26923
Add Windows installation via scoop ( #2188 )
2023-06-16 21:55:29 +09:00
pkoppstein
d2f1ddbd5a
manual.yml - Perl NG ( #2614 )
2023-06-16 07:59:48 +09:00
Rob Wills
9cb69ad5a5
Add a note about how to provide positional arguments without confusing the arg parser ( #1989 )
2023-06-14 08:45:02 +09:00
itchyny
2e5c3f490c
Fix regular expression section on PCRE ( fix #2439 ), also improve example format ( #2613 )
2023-06-14 07:36:06 +09:00
Josh Soref
5cebe86a7b
Fix misspellings ( #2609 )
2023-06-13 20:01:20 +09:00
AJ Jordan
840dc55263
Link to the Onigurama docs ( #2355 )
2023-06-13 13:49:46 +09:00
itchyny
e5414e6828
docs: Fix coding style of Python scripts using YAPF ( #2606 )
2023-06-08 19:04:19 +09:00
itchyny
fd9da6647c
docs: Fix example outputs added in #2391
2023-06-07 21:05:03 +09:00
Benjamin Wuethrich
e066172aa1
Add fixes for manual ( #2391 )
2023-06-07 20:59:07 +09:00
Timothy John Perisho Eccleston
a87dca3c87
fix typos in manual.yml ( #2102 )
2023-06-07 20:58:48 +09:00
itchyny
b8816caf0a
docs: Fix a try-catch example ( fix #1558 , #1777 ) ( #2605 )
2023-06-06 09:03:25 +09:00
Henré Botha
df8ee8dd79
docs: fix typo in halt_error example ( #2336 )
2023-06-06 08:36:46 +09:00
Lucas Trzesniewski
b7f9587bb9
docs: clarify split behavior ( #2462 )
2023-06-06 08:28:57 +09:00
nmulcahey and itchyny
d178ebdc94
[docs] Use yaml.safe_load() in build_*.py scripts ( #2432 )
...
Co-authored-by: itchyny <itchyny@cybozu.co.jp >
2023-06-06 06:47:42 +09:00
Matti Åstrand
b7511b9b1f
Key should be "foo" without spaces ( #2212 )
2023-06-06 06:17:35 +09:00