diff --git a/apps/docs/autogen/behaviorspace.es.md b/apps/docs/autogen/behaviorspace.es.md index 6c8da7f1..e8717ffc 100644 --- a/apps/docs/autogen/behaviorspace.es.md +++ b/apps/docs/autogen/behaviorspace.es.md @@ -72,7 +72,7 @@ espacio de parámetros multidimensional- funciona mejor nuestro modelo? Por ejemplo, supongamos que desea lograrse una sincronización rápida entre los agentes en el modelo Fireflies. El modelo tiene cuatro deslizadores: number, cycle-length, flash-length and flashes-to-reset, con aproximadamente 2000, 100, 10 y 3 valores posibles, -respectivamente. Esto significa que, ¡hay 2000 _ 100 _ 10 \* 3 = +respectivamente. Esto significa que, ¡hay 2000 * 100 * 10 * 3 = 6,000,000 posibles combinaciones de valores de los deslizadores! Probar combinaciones una por una, no es una forma remotamente eficiente de descubrir cuál provocará la sincronización más rápida. diff --git a/apps/docs/autogen/copyright.md b/apps/docs/autogen/copyright.md index b65191b2..bd67ec34 100644 --- a/apps/docs/autogen/copyright.md +++ b/apps/docs/autogen/copyright.md @@ -94,7 +94,16 @@ The NetLogo compiler uses a digest method from the Apache Commons Codec (TM) lib NetLogo uses the Flexmark library (and extensions) for the info tab. The copyright and license are as follows:
-Copyright (c) 2015-2016, Atlassian Pty Ltd All rights reserved. Copyright (c) 2016, Vladimir Schneider, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: \* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. \* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Copyright (c) 2015-2016, Atlassian Pty Ltd All rights reserved. + +Copyright (c) 2016, Vladimir Schneider, All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
### JHotDraw @@ -117,7 +126,14 @@ THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLI The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of JogAmp Community. -You can address the JogAmp Community via: Web [http://jogamp.org/](http://jogamp.org/) Forum/Mailinglist [http://forum.jogamp.org](http://forum.jogamp.org) Chatrooms IRC irc.freenode.net #jogamp Jabber conference.jabber.org room: jogamp (deprecated!) Repository [http://jogamp.org/git/](http://jogamp.org/git/) Email mediastream \_at\_ jogamp \_dot\_ org +You can address the JogAmp Community via: + +* Web [http://jogamp.org/](http://jogamp.org/) +* Forum/Mailinglist [http://forum.jogamp.org](http://forum.jogamp.org) +* Chatrooms IRC irc.freenode.net #jogamp +* Chatrooms Jabber conference.jabber.org room: jogamp (deprecated!) +* Repository [http://jogamp.org/git/](http://jogamp.org/git/) +* Email mediastream \_at\_ jogamp \_dot\_ org ### Matrix3D @@ -182,7 +198,13 @@ Copyright © 2013 Alexander Myltsev Licensed under the Apache License, Version 2 The NetLogo editor uses the RSyntaxTextArea library. The copyright and license are as follows:
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: \* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. \* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. \* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ©RIGHT HOLDER& BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
### JCodec diff --git a/apps/docs/autogen/data/dictionary-3D.yaml b/apps/docs/autogen/data/dictionary-3D.yaml index c5f95980..ab6598e6 100644 --- a/apps/docs/autogen/data/dictionary-3D.yaml +++ b/apps/docs/autogen/data/dictionary-3D.yaml @@ -330,7 +330,7 @@ entries: description: |+ 3D version of [[patch|patch]]. - Given three integers, reports the single patch with the given pxcor, pycor and pzcor. *pxcor*, *pycor* and *pzcor*must be integers. + Given three integers, reports the single patch with the given pxcor, pycor and pzcor. *pxcor*, *pycor* and *pzcor* must be integers. ``` ask (patch 3 -4 2) [ set pcolor green ] @@ -612,7 +612,7 @@ entries: - name: roll-right since: "4.1" description: |+ - The wingtip of the turtle rotates to the right *number*degrees with respect to the current heading and pitch. + The wingtip of the turtle rotates to the right *number* degrees with respect to the current heading and pitch. examples: - code: roll-right *number* diff --git a/apps/docs/autogen/data/dictionary.yaml b/apps/docs/autogen/data/dictionary.yaml index 2a0ed4d5..affb25f9 100644 --- a/apps/docs/autogen/data/dictionary.yaml +++ b/apps/docs/autogen/data/dictionary.yaml @@ -547,7 +547,7 @@ entries: - name: bk since: "1.0" description: |+ - The turtle moves backward by *number* steps. (If *number*is negative, the turtle moves forward.) + The turtle moves backward by *number* steps. (If *number* is negative, the turtle moves forward.) Turtles using this primitive can move a maximum of one unit per time increment. So `bk 0.5` and `bk 1` both take one @@ -573,7 +573,11 @@ entries: - name: base-colors since: "4.0" description: |+ - Reports a list of the 14 basic NetLogo hues. + Reports a list of the 14 basic NetLogo hues. In order, these are + the values of the color names gray, red, orange, brown, yellow, green, + lime, turquoise, cyan, sky, blue, violet, magenta, and pink. The other + two color names, black and white, are not included. See + [[Color Constants|colorconstants]]. ``` print base-colors @@ -826,7 +830,7 @@ entries: It is equivalent to: ``` - patch-ahead distance != nobody + patch-ahead distance != nobody ``` examples: @@ -844,7 +848,7 @@ entries: since: "2.1" description: |+ Runs *commands1*. If a runtime error occurs inside *commands1*, NetLogo won't stop and alert the user that an - error occurred. It will suppress the error and run *commands2*instead. + error occurred. It will suppress the error and run *commands2* instead. The error-message reporter can be used in *commands2* to find out what error was suppressed in *commands1*. See [[error-message|error-message]]. @@ -1164,8 +1168,8 @@ entries: examples: - code: create-ordered-turtles *number* - code: create-ordered-turtles *number* [ *commands* ] - - code: create-ordered *number* - - code: create-ordered *number* [ *commands* ] + - code: create-ordered- *number* + - code: create-ordered- *number* [ *commands* ] - id: create-link entry_categories: - title: Link-related @@ -1197,7 +1201,7 @@ entries: caller to *agent*. `create-link-from` creates a directed link from *agent* to the caller. - When the plural form of the breed name is used, an *agentset*is expected instead of an agent and links are created between the + When the plural form of the breed name is used, an *agentset* is expected instead of an agent and links are created between the caller and all agents in the agentset. The optional command block is the set of commands each newly formed @@ -2465,7 +2469,7 @@ entries: since: "2.0" description: |+ This command will output *value*, which can be a number, - string, list, boolean, or nobody to an opened file, *not*followed by a carriage return (unlike [[file-print|file-print]] and [[file-show|file-show]]). + string, list, boolean, or nobody to an opened file, *not* followed by a carriage return (unlike [[file-print|file-print]] and [[file-show|file-show]]). This agent is *not* printed before the value, unlike [[file-show|file-show]]. Its output also includes quotes around strings and is prepended with a space. It will output the value in @@ -3333,8 +3337,7 @@ entries: See also: [[hubnet-clear-overrides|hubnet-clear-override]] examples: - - code: hubnet-send-override *client-name agent-or-set variable-name* - - code: "[ *reporter* ]" + - code: hubnet-send-override *client-name agent-or-set variable-name* [ *reporter* ] - id: hubnet-send-watch entry_categories: - title: HubNet @@ -3394,7 +3397,7 @@ entries: description: |+ For the first *boolean* that reports true, runs the *commands* that follow. - If no *boolean* reports true, runs *elsecommands* or does nothing if *elsecommands* is not given. When using only one *boolean*you do not need to surround the entire *ifelse* primitive and its blocks in parentheses. + If no *boolean* reports true, runs *elsecommands* or does nothing if *elsecommands* is not given. When using only one *boolean* you do not need to surround the entire *ifelse* primitive and its blocks in parentheses. If a *boolean* reports a value other than true or false a runtime error will occur. @@ -3451,7 +3454,7 @@ entries: - name: ifelse-value since: "2.0" description: |+ - For the first *boolean* that reports true, runs the *reporter* that follows and reports that result. When using only one *boolean*you do not need to surround the entire *ifelse-value* primitive and its blocks in parentheses. + For the first *boolean* that reports true, runs the *reporter* that follows and reports that result. When using only one *boolean* you do not need to surround the entire *ifelse-value* primitive and its blocks in parentheses. If all *boolean*s report false, the result is the value of *elsereporter*. You may leave out the *elsereporter*, but if all *boolean*s report false then a runtime error will occur. @@ -3695,7 +3698,7 @@ entries: - name: in-link-neighbor? since: "4.0" description: |+ - Reports true if there is a directed link going from *turtle*to the caller or an undirected link connecting *turtle* to the + Reports true if there is a directed link going from *turtle* to the caller or an undirected link connecting *turtle* to the caller. You can think of this as "is there a link I can use to get from *turtle* to the caller?" ``` @@ -3847,7 +3850,7 @@ entries: where the item will be inserted. The first item has an index of 0. (The 6th item in a list would have an index of 5.) - Likewise for a string, but all characters in a multiple-character *string2*are inserted at *index*. + Likewise for a string, but all characters in a multiple-character *string2* are inserted at *index*. ``` show insert-item 2 [2 7 4 5] 15 @@ -4215,7 +4218,7 @@ entries: Arranges the turtles in *turtle-set* connected by links in *link-set*, in a radial tree layout, centered around the *root-agent* which is moved to the center of the world view. Only links in the *link-set* will be used to determine the - layout. If links connect turtles that are not in *turtle-set*those turtles will remain stationary. + layout. If links connect turtles that are not in *turtle-set* those turtles will remain stationary. Even if the network does contain cycles, and is not a true tree structure, this layout will still work, although the results will @@ -4359,7 +4362,7 @@ entries: - name: lt since: "1.0" description: |+ - The turtle turns left by *number* degrees. (If *number*is negative, it turns right.) + The turtle turns left by *number* degrees. (If *number* is negative, it turns right.) examples: - code: left *number* @@ -5095,7 +5098,7 @@ entries: show modes [1 2 2 3 3 4] => [2 3] show modes [ [1 2 [3]] [1 2 [3]] [2 3 4] ] - => __WIKILINK_0__] + => [[1 2 [3]]] show modes [pxcor] of turtles ;; shows which columns of patches have the most ;; turtles on them @@ -5365,7 +5368,7 @@ entries: - name: n-of since: "3.1" description: |+ - From an agentset, reports an agentset of size *size*randomly chosen from the input set, with no repeats. + From an agentset, reports an agentset of size *size* randomly chosen from the input set, with no repeats. From a list, reports a list of size *size* randomly chosen from the input set, with no repeats. The items in the result @@ -7158,7 +7161,7 @@ entries: list would have an index of 5.) Note that "replace-item" is used in conjunction with "set" to change a list. - Likewise for a string, but the given character of *string1*removed and the contents of *string2* spliced in instead. + Likewise for a string, but the given character of *string1* removed and the contents of *string2* spliced in instead. If *index* is fractional, it will be rounded down to the nearest integer (4.5 becomes 4, 10.9 becomes 10). @@ -7368,7 +7371,7 @@ entries: - name: rt since: "1.0" description: |+ - The turtle turns right by *number* degrees. (If *number*is negative, it turns left.) + The turtle turns right by *number* degrees. (If *number* is negative, it turns left.) examples: - code: right *number* @@ -7481,7 +7484,7 @@ entries: Reports a shade of *color* proportional to the value of *number*. When *range1* is less than or equal to *range2*, then the larger the - number, the lighter the shade of *color*. However, if *range2*is less than *range1*, the color scaling is inverted. + number, the lighter the shade of *color*. However, if *range2* is less than *range1*, the color scaling is inverted. Let *min-range* be the minimum of *range1* and *range2*. If *number* is less than or equal to *min-range*, then the result is the same @@ -7571,7 +7574,7 @@ entries: => [1 2 3] show sentence [1 2] [3 4] => [1 2 3 4] - show sentence __WIKILINK_0__ __WIKILINK_1__ + show sentence [[1 2]] [[3 4]] => [[1 2] [3 4]] show (sentence [1 2] 3 [4 5] (3 + 3) 7) => [1 2 3 4 5 6 7] @@ -9301,7 +9304,7 @@ entries: - name: up-to-n-of since: "6.1" description: |+ - From an agentset, reports an agentset of size *size*randomly chosen from the input set, with no repeats. If the + From an agentset, reports an agentset of size *size* randomly chosen from the input set, with no repeats. If the input does not have enough agents to satisfy the *size*, reports the entire agentset. @@ -9784,7 +9787,8 @@ entries: ; contains all the turtles who are not frogs ask turtles who-are-not frogs [ forward 1 - ]``` + ] + ``` Another example: @@ -9795,7 +9799,8 @@ entries: if count targets > 0 [ create-link-with one-of targets ] - ]``` + ] + ``` examples: - code: "*agentset* who-are-not *agentset*" @@ -9983,9 +9988,9 @@ entries: => "turtle" word "a" 6 => "a6" - set directory "c:\foo\fish\" + set directory "c:\\foo\\fish\\" show word directory "bar.txt" - => "c:foofishbar.txt" + => "c:\\foo\\fish\\bar.txt" show word [1 54 8] "fishy" => "[1 54 8]fishy" show (word 3) @@ -10058,7 +10063,7 @@ entries: since: "2.0" description: |+ This command will output *value*, which can be a number, - string, list, boolean, or nobody to the Command Center, *not*followed by a carriage return (unlike [[print|print]]and [[show|show]]). + string, list, boolean, or nobody to the Command Center, *not* followed by a carriage return (unlike [[print|print]]and [[show|show]]). This agent is *not* printed before the value, unlike [[show|show]]. Its output also includes quotes around strings and is prepended with a space. diff --git a/apps/docs/autogen/dictionary.md b/apps/docs/autogen/dictionary.md index d173a0b1..8a44ac9e 100644 --- a/apps/docs/autogen/dictionary.md +++ b/apps/docs/autogen/dictionary.md @@ -35,6 +35,10 @@ actually run a primitive, consult its dictionary entry. {{#each entries}} [[{{{name}}}|{{{id}}}]] +{{#each additional_names}} + · [[{{{.}}}|{{{../id}}}]] +{{/each}} +{{#unless @last}} · {{/unless}} {{/each}} {{/each}} @@ -44,6 +48,7 @@ actually run a primitive, consult its dictionary entry. ## Keywords {{#each keywords.entries}} [[{{{name}}}|{{{id}}}]] +{{#unless @last}} · {{/unless}} {{/each}} ## Constants diff --git a/apps/docs/autogen/netlogopreferences.md b/apps/docs/autogen/netlogopreferences.md index 80dee383..81831889 100644 --- a/apps/docs/autogen/netlogopreferences.md +++ b/apps/docs/autogen/netlogopreferences.md @@ -184,7 +184,7 @@ The places where the selected font will be used include: * Plot dialog editors * Output widget output * Info tab editor -* Info tab rendered content (e.g. the rendering of \`my favorite code\`) +* Info tab rendered content (e.g. the rendering of `my favorite code`) * All editors in agent inspection windows ## Logging Preferences diff --git a/apps/docs/autogen/partials/dictionary/entry.md b/apps/docs/autogen/partials/dictionary/entry.md index 5ae7757f..d7f29fa6 100644 --- a/apps/docs/autogen/partials/dictionary/entry.md +++ b/apps/docs/autogen/partials/dictionary/entry.md @@ -29,7 +29,7 @@ {{/if}} -{{{data.description}}} +{{{interpolate data.description}}} {{/if}} diff --git a/apps/docs/autogen/programming.md b/apps/docs/autogen/programming.md index 3b82e71a..b38354ec 100644 --- a/apps/docs/autogen/programming.md +++ b/apps/docs/autogen/programming.md @@ -1300,6 +1300,17 @@ can be written with an especially concise syntax. You can write: foreach [1 2 3 4] print ;; prints 1 through 4 +This works with any primitive or reporter procedure that can take as many inputs +as the anonymous procedure would be given, either because that is its default +number of inputs or because it is variadic. For example, [[list]] takes two +inputs by default, but it is variadic, so `map list` makes a list out of each +item, or out of each group of items when there are several lists: + + map list [1 2 3] + ;; => [[1] [2] [3]] + (map list [1 2 3] [4 5 6] [7 8 9]) + ;; => [[1 4 7] [2 5 8] [3 6 9]] + In older NetLogo versions (4 and earlier), these had to be written: map [abs ?] [1 -2 3 -4] @@ -2765,7 +2776,9 @@ of such NetLogo colors. ![[programming/colors.webp]] The chart shows that: -- Some of the colors have names. (You can use these names in your code.) +- Some of the colors have names: black, gray, white, red, orange, brown, yellow, + green, lime, turquoise, cyan, sky, blue, violet, magenta, and pink. (You can + use these names in your code.) - Every named color except black and white has a number ending in 5. - On either side of each named color are darker and lighter shades of the color. - 0 is pure black. 9.9 is pure white. diff --git a/apps/docs/lib/docs/runDocsAutogen.ts b/apps/docs/lib/docs/runDocsAutogen.ts index 79c78d16..6be13db3 100644 --- a/apps/docs/lib/docs/runDocsAutogen.ts +++ b/apps/docs/lib/docs/runDocsAutogen.ts @@ -24,6 +24,13 @@ export default async function runDocsAutogen() { handlebarsEngine.engine.registerHelper({ netlogoDictionary: prebuildHandlebarsHelper, + interpolate: (text: unknown, options: { data: { root: unknown } }) => { + const source = String(text ?? ""); + if (!source.includes("{{")) { + return source; + } + return handlebarsEngine.engine.compile(source, { noEscape: true })(options.data.root); + }, }); const buildVariables = { diff --git a/apps/docs/scripts/generate-manual/index.cjs b/apps/docs/scripts/generate-manual/index.cjs index be90366b..9d4c5eee 100644 --- a/apps/docs/scripts/generate-manual/index.cjs +++ b/apps/docs/scripts/generate-manual/index.cjs @@ -221,10 +221,10 @@ async function main() { // If it's an absolute link, we leave it as is return match; }); - // Remove the "Looking for the primitive reference..." paragraph - // It links to pages not in the manual. + // Remove the "Open the catalog here..." paragraph + // It links to the extension catalog, which is not in the manual. fileContent = fileContent.replace( - /

Looking for the primitive reference for the [^\s]+ extension\? You can find the full reference here<\/a>\.<\/p>/g, + /

(?:)*]*>(?:)*Open the catalog here(?:)*<\/a> to search for primitives\.(?:)*<\/p>/g, '', ); if (index === 0) { diff --git a/packages/common-data/datasets/primitives.yaml b/packages/common-data/datasets/primitives.yaml index d2317862..37e545be 100644 --- a/packages/common-data/datasets/primitives.yaml +++ b/packages/common-data/datasets/primitives.yaml @@ -15178,7 +15178,7 @@ primitives: show modes [1 2 2 3 3 4] => [2 3] show modes [ [1 2 [3]] [1 2 [3]] [2 3 4] ] - => __WIKILINK_0__] + => [[1 2 [3]]] show modes [pxcor] of turtles ;; shows which columns of patches have the most ;; turtles on them @@ -15212,7 +15212,7 @@ primitives: show modes [1 2 2 3 3 4] => [2 3] show modes [ [1 2 [3]] [1 2 [3]] [2 3 4] ] - => __WIKILINK_0__] + => [[1 2 [3]]] show modes [pxcor] of turtles ;; shows which columns of patches have the most ;; turtles on them @@ -21642,7 +21642,7 @@ primitives: => [1 2 3] show sentence [1 2] [3 4] => [1 2 3 4] - show sentence __WIKILINK_0__ __WIKILINK_1__ + show sentence [[1 2]] [[3 4]] => [[1 2] [3 4]] show (sentence [1 2] 3 [4 5] (3 + 3) 7) => [1 2 3 4 5 6 7] @@ -21675,7 +21675,7 @@ primitives: => [1 2 3] show sentence [1 2] [3 4] => [1 2 3 4] - show sentence __WIKILINK_0__ __WIKILINK_1__ + show sentence [[1 2]] [[3 4]] => [[1 2] [3 4]] show (sentence [1 2] 3 [4 5] (3 + 3) 7) => [1 2 3 4 5 6 7] @@ -21705,7 +21705,7 @@ primitives: => [1 2 3] show sentence [1 2] [3 4] => [1 2 3 4] - show sentence __WIKILINK_0__ __WIKILINK_1__ + show sentence [[1 2]] [[3 4]] => [[1 2] [3 4]] show (sentence [1 2] 3 [4 5] (3 + 3) 7) => [1 2 3 4 5 6 7] diff --git a/packages/netlogo-docs/src/extension-docs/fixtures.ts b/packages/netlogo-docs/src/extension-docs/fixtures.ts index 6b9c8aa7..bc4b12c5 100644 --- a/packages/netlogo-docs/src/extension-docs/fixtures.ts +++ b/packages/netlogo-docs/src/extension-docs/fixtures.ts @@ -29,7 +29,7 @@ const markdownTemplate = ` {{{prePrimitiveSections}}} ## Primitives -Looking for the primitive reference for the {{extensionName}} extension? You can find [the full reference here](/{{primRoot}}/dictionary). +[Open the catalog here](/{{primRoot}}/dictionary) to search for primitives. {{^emptyTableOfContents}}{{#contents}}