summaryrefslogtreecommitdiffstats
path: root/docs
AgeCommit message (Collapse)Author
8 daysbuild(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docsHEADmasterdependabot[bot]
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4) --- updated-dependencies: - dependency-name: jinja2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20Add trim/0, ltrim/0 and rtrim/0 that trims leading and trailing whitespace ↵Mattias Wadman
(#3056)
2024-03-20Remove non-standard pow10 filter in favor of exp10 (#3059)itchyny
The pow10 function was a glibc extension removed in 2.27. Use exp10 filter instead.
2024-02-13docs: Update chocolatey install command in default.yml (#3042)Bhargava Mummadireddy
2024-02-08Fix typo in documentation for map_values (#3035)J. B. Rainsberger
* Fix typo in documentation for map_values "map_value(f)" -> "map_values(f)" * map_value => map_values also in the devolpment manual --------- Co-authored-by: Emanuele Torre <torreemanuele6@gmail.com>
2024-01-30docs: rename example jq utility to totalEmanuele Torre
Apparently sum(1) is a BSD and GNU coreutil used to compute the "16-bit BSD checksum" of a file.
2024-01-25typo contruct->construct (#3017)Jonathan Chan Kwan Yin
2024-01-24Fix "in the a search" typo (#3015)Mattias Wadman
Fixes #3014
2024-01-16Revert "lexer: temporarily revert #\ patch; keep CR in comment bug fix"Emanuele Torre
This reverts commit 5d95791a6795bfc44380c2e6e343ee66dd891e8b.
2024-01-13Bump jinja2 from 3.1.2 to 3.1.3 in /docs (#3009)dependabot[bot]
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3) --- updated-dependencies: - dependency-name: jinja2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26Add jq 1.7.1 news item (#3004)Mattias Wadman
2023-12-24Fix typo (#3002)wllm-rbnt
2023-12-24Add jq 1.7.1 to webpage (#3003)Mattias Wadman
Make it the default download
2023-12-13lexer: temporarily revert #\ patch; keep CR in comment bug fixEmanuele Torre
This commit temporarily reverts the commit that allows #\ "tcl-style" comments everywhere and documents them, for the 1.7.1 patch release cca1f7d18f2fa6721952645821ae429a0166d7e4. \r is removed from the list of characters not allowed in a comment to preserve that bugfix.
2023-12-11chore: Improve readability (for Alternative operator '//')Jesper Rønn-Jensen
The description of the Alternative operator `//` was hard for me to grasp in its wording. I suggest dividing the looong sentence into two parts. Since it is actually an alternative formulation, the sentence can be divided into the first formulation, and the alternative formulation.
2023-11-29website: use https URLs instead of http URLs in download pageEmanuele Torre
Also add markdown formatting for decNumber URL so it gets rendered as a link in the html page.
2023-11-03Comment bug fixes, and fully support Tcl-style multiline commentsEmanuele Torre
* bugfix: comments were incorrectly being terminated by CR; for example jq -n $'1 #foo\r' fails to compile because the CR character terminates the comment, and CR is not a valid character in jq syntax. * improvement: comments fully support Tcl-style line continuation. Previously this was only "supported" in `-f' scripts, whose first line starts with "#!", and second line starts with # and ends with \, only for the comment on the second line, only for one extra line. * man: document comment syntax, which was previously undocumented. * tests: add regression tests for the bugfix, and some tests for line continuation in comments.
2023-10-12Generate links in man pageEmanuele Torre
Some [foo](bar) links were added to manual.yml without updating build_manpage.py to make it generate roff for "a" tags. Fixes #2930
2023-10-04Allow passing the inline jq script before --Emanuele Torre
jq previously only allowed passing the inline script before -- (as if they were options) even though one would expect the inline script to be a positional argument. Since jq previously also refused to run with a usage error if the script was passed after -- (It was not assuming . as script as it does when no arguments are passed), and positional arguments are allowed before -- and even before other options, it should not be a breaking change to change that weird behaviour, and allow the script to appear after --. It also simplifies the option parsing code a bunch. Fixes #2918
2023-10-03Simplify `pick` exampleThomas Bozeman th026106
Old pick example included input array in command line, making `input` confusing and redundant.
2023-09-22Fix the default colors to use 39, the default foreground color (#2904)taoky
2023-09-07Standarize arch types to AMD64 & ARM64 from index page download dropdown (#2884)Owen Ou
Standarize arch types to AMD64 & ARM64 from index page download dropdown. These are missed from https://github.com/jqlang/jq/pull/2879.
2023-09-07Update webpage with 1.7 release (#2879)Owen Ou
* Update webpage with 1.7 release Update webpage with 1.7 release * Update docs/content/download/default.yml Co-authored-by: itchyny <itchyny@cybozu.co.jp> * Update docs/templates/index.html.j2 Co-authored-by: itchyny <itchyny@cybozu.co.jp> * Update docs/content/download/default.yml Co-authored-by: itchyny <itchyny@cybozu.co.jp> * Don't mention 1.7rc signatures * Add link to 1.7 manual * binaries -> binary * AMD 32-bit to i386 * Standarize arch types to AMD64, ARM64 & i386 in download page --------- Co-authored-by: itchyny <itchyny@cybozu.co.jp>
2023-08-19Add --config option printing ./configure options usedNicolas Williams
2023-08-16Add a regression test for negative indices and fix a pick/1 testitchyny
2023-08-12Update documentation to reflect new `defs` field on `modulemeta`Alex Wilson
2023-08-09docs: fix delpaths descriptionNaïm Favier
2023-08-05Change the default color of null to Bright Blackitchyny
2023-08-04Let error(null) throw nullEmanuele Torre
This patch removes the weird behaviour of jv_invalid_with_msg(jv_null()) that returns jv_invalid() (i.e. empty), instead of a boxed jv_null(). The previous behaviour of null|error was obviously unintentional, and allowing is jv_invalid_with_msg() to return values on which you can't call jv_invalid_get_msg() is only error prone.
2023-08-03Clarify the `//` operator (fix typo)Nicolas Williams
2023-08-03Add a bit more text about generatorsNicolas Williams
2023-08-03Clarify the `//` operator (close #2189)Nicolas Williams
2023-08-01Require a main program (fix #2785)Nicolas Williams
2023-07-31Update download page with new release keyNicolas Williams
2023-07-31Redesign website (#2628)itchyny
* Bump up Bootstrap to v5.3.1, Bootstrap Icon to v1.10.5. * Use autoComplete.js to drop dependency on jQuery and typeahead.js. * Support dark mode. * New svg logo and icon with responsive color mode support. * Normalize section ids to lower kebab-case for easiness of linking. * Use relative paths for links for local development (--root /output). * Various markup cleanups and accessibility improvements.
2023-07-30Update `bug_report.md` with Discord linkjq-1.7rc1Owen Ou
2023-07-30Redirect questions to DiscordOwen Ou
We now have an official Discord server and most maintainers are hanging out there. It would be a good idea to redirect questions to Discord.
2023-07-29Fix typo in manual: "-seq" => "--seq"Emanuele Torre
2023-07-28Replace NEWS with NEWS.md with more details and examplesMattias Wadman
Changes mentioned based on picking user facing changes from: git log --oneline -r master...jq-1.6 | grep -v Merge
2023-07-26Rename --nul-output to --raw-output0, abort on string containing NULitchyny
The option naming --nul-output was confusing, especially when we have a similar option for input stream in the future (--nul-input vs --null-input). Based on the observation of other command line tools, we rename the option to --raw-output0. We also drop the short option -0 to avoid confusion on introducing the NUL-delimited input option. Unlike the other command line tools outputting file names with NUL delimiter, jq deals with JSON, and its strings may contain NUL character. To protect users from the risk of injection attacks, we abort the program and print an error message before outputting strings including NUL character. Closes #2683.
2023-07-25manual.yml: remove contingent testspkoppstein
Also clarify non-prescriptive nature of some tests in jq.test
2023-07-25builtin.jq: naive abs/0pkoppstein
manual.yml explains that the def is naive, and mentions fabs, etc.
2023-07-25Remove deprecated --argfile optionitchyny
2023-07-25Reorder the command line options in the manual (#2766)itchyny
2023-07-24Make maintainer-mode default to disabledMattias Wadman
This makes the standard build instructions a bit easier, just ./configure, and also requires less tools installed (bison). Also i think few people probably want to generate the lexer and paser code.
2023-07-24Improve manual in various ways (inputs, sort_by, foreach sections, etc.) (#2744)itchyny
- Add error/0 and mentions null input behavior (close #2231) - Explain value iterator suffix syntax .foo[] (close #1047) - Mention array slicing is also zero-based (close #2094) - Add examples of input and inputs filters (close #2216, close #2470) - Improve sort_by about multiple values (close #2103, close #2467, close #2474) - Improve foreach section and simplify examples (close #1148, close #2169) - Fix recurse/1 document on how it is identical using recurse/2 (close #2036, close #2412) - Add non-string examples of index/1, rindex/1 (close #1422) - Simplify the example of truncate_stream/1 (close #1736)
2023-07-23Fix --stream-errors w/o --stream, and doc+test (close #2748)Nicolas Williams
2023-07-23Improve --help to mention all the command optionsitchyny
2023-07-23Add importlib_resources dependency for older Python (fix #2753) (#2754)itchyny
2023-07-22Fix manual source code to follow the schema definitionitchyny