Slight re-phrasing of module docs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Nicolas Williams · committed by Nicolas Williams · parent a011ac6 · Browse files · 1 file·+17 added−16 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+17 added−16 removed
- other:+17 added−16 removed
Provenance
- Commit
8cc31f0- Tree
51ab105- Author
Nicolas Williams <nico@cryptonector.com>- Committer
Nicolas Williams <nico@cryptonector.com>- Parent
a011ac6
1 file changed+17 added−16 removed
modified:docs/content/3.manual/manual.yml+17 added-16 removed
2747 unmodified lines2748 - title: "`import RelativePathString as NAME;`"2749 body: |2750 2751 Imports a module found at the given path relative to a2752- directory in a search path. The module's symbols are prefixed2753- with "NAME::". A ".jq" suffix will be added to the relative2754- path string.2752+ directory in a search path. A ".jq" suffix will be added to2753+ the relative path string. The module's symbols are prefixed2754+ with "NAME::".2755 2756+2756- - title: "`import RelativePathString as NAME {<metadata>};`"2757+ - title: "`import RelativePathString as NAME <metadata>;`"2758 body: |2759 2760 Imports a module found at the given path relative to a2760- directory in a search path. The module's symbols are prefixed2761- with "NAME::". A ".jq" suffix will be added to the relative2762- path string.2761+ directory in a search path. A ".jq" suffix will be added to2762+ the relative path string. The module's symbols are prefixed2763+ with "NAME::".2764 2765 The metadata must be a constant jq expression. It should be2766 an object with keys like "homepage" and so on. At this time2767 jq only uses the "search" key/value of the metadate. The3 unmodified lines2771 The "search" key in the metadata, if present, should have a2772 string or array value (array of strings); this is the search2773 path to be prefixed to the top-level search path.2774 2774- - title: "`import RelativePathString as NAME;`"2775+ - title: "`import RelativePathString as $NAME;`"2776 body: |2777 2778 Imports a JSON file found at the given path relative to a2778- directory in a search path. The file's data will be available2779- as `$NAME::NAME`. A ".json" suffix will be added to the2780- relative path string.2779+ directory in a search path. A ".json" suffix will be added to2780+ the relative path string. The file's data will be available2781+ as `$NAME::NAME`.2782 2782- - title: "`import RelativePathString as $NAME {<metadata>};`"2783+ - title: "`import RelativePathString as $NAME <metadata>;`"2784 body: |2785 2786 Imports a JSON file found at the given path relative to a2786- directory in a search path. The file's data will be available2787- as `$NAME::NAME`. A ".json" suffix will be added to the2788- relative path string.2787+ directory in a search path. A ".json" suffix will be added to2788+ the relative path string. The file's data will be available2789+ as `$NAME::NAME`.2790 2791 The metadata must be a constant jq expression. It should be2792 an object with keys like "homepage" and so on. At this time2793 jq only uses the "search" key/value of the metadate. The3 unmodified lines2797 The "search" key in the metadata, if present, should have a2798 string or array value (array of strings); this is the search2799 path to be prefixed to the top-level search path.2800 2800- - title: "`module {<metadata>};`"2801+ - title: "`module <metadata>;`"2802 body: |2803 2804 This directive is entirely optional. It's not required for2805 proper operation. It serves only the purpose of providing18 unmodified lines