Skip to content
Myr

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

1 file+17 added−16 removed

modified:docs/content/3.manual/manual.yml+17 added-16 removed
2747 unmodified lines
2748 - title: "`import RelativePathString as NAME;`"2749 body: |27502751 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::".275527562756 - title: "`import RelativePathString as NAME {<metadata>};`"2757 - title: "`import RelativePathString as NAME <metadata>;`"2758 body: |27592760 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::".27642765 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. The
3 unmodified lines
2771 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.27742774 - title: "`import RelativePathString as NAME;`"2775 - title: "`import RelativePathString as $NAME;`"2776 body: |27772778 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`.27822782 - title: "`import RelativePathString as $NAME {<metadata>};`"2783 - title: "`import RelativePathString as $NAME <metadata>;`"2784 body: |27852786 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`.27902791 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. The
3 unmodified lines
2797 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.28002800 - title: "`module {<metadata>};`"2801 - title: "`module <metadata>;`"2802 body: |28032804 This directive is entirely optional. It's not required for2805 proper operation. It serves only the purpose of providing
18 unmodified lines