├── Source ├── AddOne.c ├── AddTwo.c └── Library.c ├── Scripts ├── SetBuildDate.wls └── Compile.wls ├── Kernel ├── Common.wl ├── AddThree.wl ├── AdvancedSamplePaclet.wl ├── AddOne.wl └── AddTwo.wl ├── Tests ├── AddOne.wlt ├── AddTwo.wlt └── AddThree.wlt ├── README.md ├── LICENSE ├── PacletInfo.wl └── Documentation └── English └── ReferencePages └── Symbols ├── AddOne.nb └── AddTwo.nb /Source/AddOne.c: -------------------------------------------------------------------------------- 1 | #include "WolframLibrary.h" 2 | 3 | // This is a good function 4 | static int addOne(mint x) { 5 | return(x + 1); 6 | } -------------------------------------------------------------------------------- /Source/AddTwo.c: -------------------------------------------------------------------------------- 1 | #include "WolframLibrary.h" 2 | 3 | // This is a very good function 4 | static int addTwo(mint x) { 5 | return(x + 2); 6 | } -------------------------------------------------------------------------------- /Scripts/SetBuildDate.wls: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env wolframscript 2 | 3 | $pacletDir = DirectoryName[ $InputFileName, 2 ]; 4 | $pacletInfoFile = FileNameJoin @ { $pacletDir, "PacletInfo.wl" }; 5 | 6 | Export[ 7 | $pacletInfoFile, 8 | StringReplace[ 9 | ReadString @ $pacletInfoFile, 10 | "$BuildDate$" -> DateString[ ] 11 | ], 12 | "String" 13 | ] 14 | -------------------------------------------------------------------------------- /Kernel/Common.wl: -------------------------------------------------------------------------------- 1 | BeginPackage[ "SamplePublisher`AdvancedSamplePaclet`Common`" ]; 2 | 3 | (* Symbols shared across package files, but not publicly exported: *) 4 | $libraryFile; 5 | 6 | Begin[ "`Private`" ]; 7 | 8 | $thisPacletLocation := $thisPacletLocation = 9 | PacletObject[ "SamplePublisher/AdvancedSamplePaclet" ][ "Location" ]; 10 | 11 | $libraryFile := FileNameJoin @ { 12 | $thisPacletLocation, 13 | "LibraryResources", 14 | $SystemID, 15 | "SampleLibrary." <> Internal`DynamicLibraryExtension[ ] 16 | }; 17 | 18 | End[ ]; 19 | EndPackage[ ]; -------------------------------------------------------------------------------- /Kernel/AddThree.wl: -------------------------------------------------------------------------------- 1 | BeginPackage[ "SamplePublisher`AdvancedSamplePaclet`AddThree`" ]; 2 | (* This file does not need definitions from Common.wl, but it does use exported symbols: *) 3 | Needs[ "SamplePublisher`AdvancedSamplePaclet`" ]; 4 | Begin[ "`Private`" ]; 5 | 6 | AddThree::NotInteger = "Argument `1` is expected to be an integer."; 7 | AddThree[ x_Integer ] := adder @ x; 8 | AddThree[ x_ ] := ResourceFunction[ "MessageFailure" ][ AddThree::NotInteger, x ]; 9 | 10 | (* Note that adder is unique to this file *) 11 | adder = AddTwo @* AddOne; 12 | 13 | End[ ]; 14 | EndPackage[ ]; -------------------------------------------------------------------------------- /Kernel/AdvancedSamplePaclet.wl: -------------------------------------------------------------------------------- 1 | BeginPackage[ "SamplePublisher`AdvancedSamplePaclet`" ]; 2 | 3 | (* Exported Symbols *) 4 | AddOne::usage = "AddOne[x] adds one to x."; 5 | AddTwo::usage = "AddTwo[x] adds two to x."; 6 | AddThree::usage = "AddThree[x] adds three to x."; 7 | 8 | (* Definitions shared between subpackages: *) 9 | < "AddOne-Initialization" 5 | ] 6 | 7 | VerificationTest[ 8 | AddOne @ 1, 9 | 2, 10 | TestID -> "AddOne-1" 11 | ] 12 | 13 | VerificationTest[ 14 | AddOne @ 2, 15 | 3, 16 | TestID -> "AddOne-2" 17 | ] 18 | 19 | VerificationTest[ 20 | AddOne[ 2^64 ], 21 | HoldPattern[ LibraryFunction ][ ___ ][ 2^64 ], 22 | { LibraryFunction::cfsa }, 23 | SameTest -> MatchQ, 24 | TestID -> "AddOne-Integer-Overflow" 25 | ] 26 | 27 | VerificationTest[ 28 | AddOne[ x ], 29 | Failure[ "AddOne::NotInteger", _ ], 30 | { AddOne::NotInteger }, 31 | SameTest -> MatchQ, 32 | TestID -> "AddOne-NotInteger" 33 | ] -------------------------------------------------------------------------------- /Tests/AddTwo.wlt: -------------------------------------------------------------------------------- 1 | VerificationTest[ 2 | Needs[ "SamplePublisher`AdvancedSamplePaclet`" ], 3 | Null, 4 | TestID -> "AddTwo-Initialization" 5 | ] 6 | 7 | VerificationTest[ 8 | AddTwo @ 1, 9 | 3, 10 | TestID -> "AddTwo-1" 11 | ] 12 | 13 | VerificationTest[ 14 | AddTwo @ 2, 15 | 4, 16 | TestID -> "AddTwo-2" 17 | ] 18 | 19 | VerificationTest[ 20 | AddTwo[ 2^64 ], 21 | HoldPattern[ LibraryFunction ][ ___ ][ 2^64 ], 22 | { LibraryFunction::cfsa }, 23 | SameTest -> MatchQ, 24 | TestID -> "AddTwo-Integer-Overflow" 25 | ] 26 | 27 | VerificationTest[ 28 | AddTwo[ x ], 29 | Failure[ "AddTwo::NotInteger", _ ], 30 | { AddTwo::NotInteger }, 31 | SameTest -> MatchQ, 32 | TestID -> "AddTwo-NotInteger" 33 | ] -------------------------------------------------------------------------------- /Tests/AddThree.wlt: -------------------------------------------------------------------------------- 1 | VerificationTest[ 2 | Needs[ "SamplePublisher`AdvancedSamplePaclet`" ], 3 | Null, 4 | TestID -> "AddThree-Initialization" 5 | ] 6 | 7 | VerificationTest[ 8 | AddThree @ 1, 9 | 4, 10 | TestID -> "AddThree-1" 11 | ] 12 | 13 | VerificationTest[ 14 | AddThree @ 2, 15 | 5, 16 | TestID -> "AddThree-2" 17 | ] 18 | 19 | VerificationTest[ 20 | AddThree[ 2^64 ], 21 | Failure[ "AddTwo::NotInteger", _ ], 22 | { LibraryFunction::cfsa, AddTwo::NotInteger }, 23 | SameTest -> MatchQ, 24 | TestID -> "AddThree-Integer-Overflow" 25 | ] 26 | 27 | VerificationTest[ 28 | AddThree[ x ], 29 | Failure[ "AddThree::NotInteger", _ ], 30 | { AddThree::NotInteger }, 31 | SameTest -> MatchQ, 32 | TestID -> "AddThree-NotInteger" 33 | ] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PacletCICD-Examples-AdvancedSample 2 | 3 | This is a sample Paclet used for [PacletCICD](https://github.com/WolframResearch/PacletCICD) documentation examples. This Paclet is meant to demonstrate more advanced CI/CD workflows that involves: 4 | 5 | * standard Paclet checks 6 | * multi-platform compilation 7 | * automated tests 8 | * separate workflows for pull requests and releases 9 | 10 | A local copy can be retrieved in Wolfram Language using the following steps. 11 | 12 | Install the [PacletCICD](https://github.com/WolframResearch/PacletCICD) Paclet: 13 | ```Mathematica 14 | PacletInstall[ResourceObject["Wolfram/PacletCICD"]] 15 | ``` 16 | 17 | Load the necessary context: 18 | ```Mathematica 19 | Needs["Wolfram`PacletCICD`"] 20 | ``` 21 | 22 | Get a directory containing this repository's source code: 23 | ```Mathematica 24 | ExampleDirectory["AdvancedSample"] 25 | ``` -------------------------------------------------------------------------------- /Scripts/Compile.wls: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env wolframscript 2 | 3 | If[ FailureQ @ FindFile[ "Wolfram`PacletCICD`" ], 4 | PacletInstall @ ResourceObject[ "Wolfram/PacletCICD" ] 5 | ]; 6 | 7 | Needs[ "Wolfram`PacletCICD`" ]; 8 | Needs[ "CCompilerDriver`" ]; 9 | 10 | $pacletDir = DirectoryName[ $InputFileName, 2 ]; 11 | $sourceDir = FileNameJoin @ { $pacletDir, "Source" }; 12 | $targetDir = FileNameJoin @ { $pacletDir, "LibraryResources", $SystemID }; 13 | 14 | ConsoleNotice[ "Build source directory: " <> $sourceDir ]; 15 | ConsoleNotice[ "Build target directory: " <> $targetDir ]; 16 | 17 | $built = CCompilerDriver`CreateLibrary[ 18 | FileNames[ "*.c", $sourceDir ], 19 | "SampleLibrary", 20 | "TargetDirectory" -> $targetDir, 21 | "CleanIntermediate" -> True 22 | ]; 23 | 24 | If[ FileExistsQ @ $built, 25 | $built, 26 | ConsoleError[ "Failed to build the library.", "Fatal" -> True ] 27 | ] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Wolfram Research 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Source/Library.c: -------------------------------------------------------------------------------- 1 | #include "WolframLibrary.h" 2 | #include "AddOne.c" 3 | #include "AddTwo.c" 4 | 5 | DLLEXPORT mint WolframLibrary_getVersion() { 6 | return WolframLibraryVersion; 7 | } 8 | 9 | DLLEXPORT int WolframLibrary_initialize(WolframLibraryData libData) { 10 | return 0; 11 | } 12 | 13 | DLLEXPORT void WolframLibrary_uninitialize(WolframLibraryData libData) { 14 | return; 15 | } 16 | 17 | DLLEXPORT int constantzero(WolframLibraryData libData, 18 | mint Argc, MArgument *Args, MArgument Res) { 19 | MArgument_setInteger(Res, 0); 20 | return LIBRARY_NO_ERROR; 21 | } 22 | 23 | DLLEXPORT int AddOne(WolframLibraryData libData, 24 | mint Argc, MArgument *Args, MArgument Res) { 25 | mint I0; 26 | mint I1; 27 | I0 = MArgument_getInteger(Args[0]); 28 | I1 = addOne(I0); 29 | MArgument_setInteger(Res, I1); 30 | return LIBRARY_NO_ERROR; 31 | } 32 | 33 | DLLEXPORT int AddTwo(WolframLibraryData libData, 34 | mint Argc, MArgument *Args, MArgument Res) { 35 | mint I0; 36 | mint I1; 37 | I0 = MArgument_getInteger(Args[0]); 38 | I1 = addTwo(I0); 39 | MArgument_setInteger(Res, I1); 40 | return LIBRARY_NO_ERROR; 41 | } 42 | -------------------------------------------------------------------------------- /PacletInfo.wl: -------------------------------------------------------------------------------- 1 | PacletObject[ <| 2 | "Name" -> "SamplePublisher/AdvancedSamplePaclet", 3 | "Description" -> "A complete sample Paclet that includes library resources", 4 | "Creator" -> "Sample Author", 5 | "BuildDate" -> "$BuildDate$", 6 | "Version" -> "1.8.0", 7 | "WolframVersion" -> "13.0+", 8 | "License" -> "MIT", 9 | "PublisherID" -> "SamplePublisher", 10 | "SourceControlURL" -> "https://github.com/WolframResearch/PacletCICD-Examples-AdvancedSample", 11 | "Extensions" -> { 12 | { 13 | "Kernel", 14 | "Root" -> "Kernel", 15 | "Context" -> { "SamplePublisher`AdvancedSamplePaclet`" }, 16 | "Symbols" -> { 17 | "SamplePublisher`AdvancedSamplePaclet`AddOne", 18 | "SamplePublisher`AdvancedSamplePaclet`AddTwo", 19 | "SamplePublisher`AdvancedSamplePaclet`AddThree" 20 | } 21 | }, 22 | { 23 | "Documentation", 24 | "Root" -> "Documentation", 25 | "Language" -> "English" 26 | }, 27 | { 28 | "LibraryLink", 29 | "Root" -> "LibraryResources" 30 | }, 31 | { 32 | "Asset", 33 | "Assets" -> { { "License", "./LICENSE" } } 34 | } 35 | } 36 | |> ] -------------------------------------------------------------------------------- /Documentation/English/ReferencePages/Symbols/AddOne.nb: -------------------------------------------------------------------------------- 1 | Notebook[ 2 | { 3 | Cell[ 4 | TextData[ 5 | { 6 | "New in: ", 7 | Cell["", "HistoryData", CellTags -> "New"], 8 | " | Modified in: ", 9 | Cell[" ", "HistoryData", CellTags -> "Modified"], 10 | " | Obsolete in: ", 11 | Cell[" ", "HistoryData", CellTags -> "Obsolete"], 12 | " | Excised in: ", 13 | Cell[" ", "HistoryData", CellTags -> "Excised"] 14 | } 15 | ], 16 | "History", 17 | CellID -> 2698149 18 | ], 19 | Cell[ 20 | "Created by: rhennigan on 02-06-2022 15:10:56", 21 | "AuthorDate", 22 | CellID -> 289698307 23 | ], 24 | Cell[ 25 | CellGroupData[ 26 | { 27 | Cell[ 28 | "Categorization", 29 | "CategorizationSection", 30 | CellID -> 1890843 31 | ], 32 | Cell[ 33 | "Symbol", 34 | "Categorization", 35 | CellLabel -> "Entity Type", 36 | CellID -> 278079557 37 | ], 38 | Cell[ 39 | "SamplePublisher/AdvancedSamplePaclet", 40 | "Categorization", 41 | CellLabel -> "Paclet Name", 42 | CellID -> 315981816 43 | ], 44 | Cell[ 45 | "SamplePublisher`AdvancedSamplePaclet`", 46 | "Categorization", 47 | CellLabel -> "Context", 48 | CellID -> 506589533 49 | ], 50 | Cell[ 51 | "SamplePublisher/AdvancedSamplePaclet/ref/AddOne", 52 | "Categorization", 53 | CellLabel -> "URI", 54 | CellID -> 109513560 55 | ] 56 | }, 57 | Open 58 | ] 59 | ], 60 | Cell[ 61 | CellGroupData[ 62 | { 63 | Cell["Keywords", "KeywordsSection", CellID -> 115670179], 64 | Cell["XXXX", "Keywords", CellID -> 325425296] 65 | }, 66 | Open 67 | ] 68 | ], 69 | Cell[ 70 | CellGroupData[ 71 | { 72 | Cell[ 73 | "Syntax Templates", 74 | "TemplatesSection", 75 | CellID -> 78575420 76 | ], 77 | Cell[ 78 | BoxData[""], 79 | "Template", 80 | CellLabel -> "Additional Function Template", 81 | CellID -> 184088684 82 | ], 83 | Cell[ 84 | BoxData[""], 85 | "Template", 86 | CellLabel -> "Arguments Pattern", 87 | CellID -> 70479151 88 | ], 89 | Cell[ 90 | BoxData[""], 91 | "Template", 92 | CellLabel -> "Local Variables", 93 | CellID -> 389706526 94 | ], 95 | Cell[ 96 | BoxData[""], 97 | "Template", 98 | CellLabel -> "Color Equal Signs", 99 | CellID -> 635175035 100 | ] 101 | }, 102 | Open 103 | ] 104 | ], 105 | Cell[ 106 | CellGroupData[ 107 | { 108 | Cell["AddOne", "ObjectName", CellID -> 346081556], 109 | Cell[ 110 | TextData[ 111 | { 112 | Cell[" ", "ModInfo"], 113 | Cell[ 114 | BoxData[ 115 | RowBox[ 116 | { 117 | ButtonBox[ 118 | "AddOne", 119 | BaseStyle -> "Link", 120 | ButtonData -> "paclet:SamplePublisher/AdvancedSamplePaclet/CompiledLibraryExamplePaclet/ref/AddOne" 121 | ], 122 | "[", 123 | StyleBox["x", "TI"], 124 | "]" 125 | } 126 | ] 127 | ], 128 | "InlineFormula" 129 | ], 130 | " \[LineSeparator]adds one to ", 131 | Cell[BoxData[StyleBox["x", "TI"]], "InlineFormula"], 132 | "." 133 | } 134 | ], 135 | "Usage", 136 | CellID -> 855245927 137 | ], 138 | Cell["XXXX", "Notes", CellID -> 218348019] 139 | }, 140 | Open 141 | ] 142 | ], 143 | Cell[ 144 | CellGroupData[ 145 | { 146 | Cell["Tech Notes", "TechNotesSection", CellID -> 18719005], 147 | Cell["XXXX", "Tutorials", CellID -> 247007478] 148 | }, 149 | Open 150 | ] 151 | ], 152 | Cell[ 153 | CellGroupData[ 154 | { 155 | Cell[ 156 | "Related Demonstrations", 157 | "RelatedDemonstrationsSection", 158 | CellID -> 21983212 159 | ], 160 | Cell["XXXX", "RelatedDemonstrations", CellID -> 446759829] 161 | }, 162 | Open 163 | ] 164 | ], 165 | Cell[ 166 | CellGroupData[ 167 | { 168 | Cell[ 169 | "Related Links", 170 | "RelatedLinksSection", 171 | CellID -> 3101712 172 | ], 173 | Cell["XXXX", "RelatedLinks", CellID -> 10036333] 174 | }, 175 | Open 176 | ] 177 | ], 178 | Cell[ 179 | CellGroupData[ 180 | { 181 | Cell["See Also", "SeeAlsoSection", CellID -> 961950540], 182 | Cell["XXXX", "SeeAlso", CellID -> 129680049] 183 | }, 184 | Open 185 | ] 186 | ], 187 | Cell[ 188 | CellGroupData[ 189 | { 190 | Cell[ 191 | "Related Guides", 192 | "MoreAboutSection", 193 | CellID -> 140869081 194 | ], 195 | Cell["XXXX", "MoreAbout", CellID -> 96871097] 196 | }, 197 | Open 198 | ] 199 | ], 200 | Cell[ 201 | CellGroupData[ 202 | { 203 | Cell[ 204 | BoxData[ 205 | InterpretationBox[ 206 | GridBox[ 207 | { 208 | { 209 | StyleBox["Examples", "PrimaryExamplesSection"], 210 | ButtonBox[ 211 | RowBox[ 212 | { 213 | RowBox[{"More", " ", "Examples"}], 214 | " ", 215 | "\[RightTriangle]" 216 | } 217 | ], 218 | BaseStyle -> "ExtendedExamplesLink", 219 | ButtonData :> "ExtendedExamples" 220 | ] 221 | } 222 | } 223 | ], 224 | $Line = 0; 225 | Null 226 | ] 227 | ], 228 | "PrimaryExamplesSection", 229 | CellID -> 498832176 230 | ], 231 | Cell[ 232 | BoxData[ 233 | RowBox[ 234 | { 235 | "Needs", 236 | "[", 237 | "\"SamplePublisher`AdvancedSamplePaclet`\"", 238 | "]" 239 | } 240 | ] 241 | ], 242 | "Input", 243 | InitializationCell -> True, 244 | CellLabel -> "In[1]:=", 245 | CellID -> 37376475 246 | ], 247 | Cell[ 248 | "Add one to a number:", 249 | "ExampleText", 250 | CellID -> 680947663 251 | ], 252 | Cell[ 253 | CellGroupData[ 254 | { 255 | Cell[ 256 | BoxData[RowBox[{"AddOne", "[", "5", "]"}]], 257 | "Input", 258 | CellLabel -> "In[2]:=", 259 | CellID -> 562441377 260 | ], 261 | Cell[ 262 | BoxData["6"], 263 | "Output", 264 | CellLabel -> "Out[2]=", 265 | CellID -> 83977556 266 | ] 267 | }, 268 | Open 269 | ] 270 | ] 271 | }, 272 | Open 273 | ] 274 | ], 275 | Cell[ 276 | CellGroupData[ 277 | { 278 | Cell[ 279 | "More Examples", 280 | "ExtendedExamplesSection", 281 | CellTags -> "ExtendedExamples", 282 | CellID -> 237977234 283 | ], 284 | Cell[ 285 | BoxData[ 286 | InterpretationBox[ 287 | Cell["Scope", "ExampleSection"], 288 | $Line = 0; 289 | Null 290 | ] 291 | ], 292 | "ExampleSection", 293 | CellID -> 246542634 294 | ], 295 | Cell[ 296 | BoxData[ 297 | InterpretationBox[ 298 | Cell["Generalizations & Extensions", "ExampleSection"], 299 | $Line = 0; 300 | Null 301 | ] 302 | ], 303 | "ExampleSection", 304 | CellID -> 235892829 305 | ], 306 | Cell[ 307 | CellGroupData[ 308 | { 309 | Cell[ 310 | BoxData[ 311 | InterpretationBox[ 312 | Cell["Options", "ExampleSection"], 313 | $Line = 0; 314 | Null 315 | ] 316 | ], 317 | "ExampleSection", 318 | CellID -> 41840792 319 | ], 320 | Cell[ 321 | BoxData[ 322 | InterpretationBox[ 323 | Cell["XXXX", "ExampleSubsection"], 324 | $Line = 0; 325 | Null 326 | ] 327 | ], 328 | "ExampleSubsection", 329 | CellID -> 10033054 330 | ], 331 | Cell[ 332 | BoxData[ 333 | InterpretationBox[ 334 | Cell["XXXX", "ExampleSubsection"], 335 | $Line = 0; 336 | Null 337 | ] 338 | ], 339 | "ExampleSubsection", 340 | CellID -> 308687114 341 | ] 342 | }, 343 | Open 344 | ] 345 | ], 346 | Cell[ 347 | BoxData[ 348 | InterpretationBox[ 349 | Cell["Applications", "ExampleSection"], 350 | $Line = 0; 351 | Null 352 | ] 353 | ], 354 | "ExampleSection", 355 | CellID -> 102268982 356 | ], 357 | Cell[ 358 | BoxData[ 359 | InterpretationBox[ 360 | Cell["Properties & Relations", "ExampleSection"], 361 | $Line = 0; 362 | Null 363 | ] 364 | ], 365 | "ExampleSection", 366 | CellID -> 605204674 367 | ], 368 | Cell[ 369 | BoxData[ 370 | InterpretationBox[ 371 | Cell["Possible Issues", "ExampleSection"], 372 | $Line = 0; 373 | Null 374 | ] 375 | ], 376 | "ExampleSection", 377 | CellID -> 480940539 378 | ], 379 | Cell[ 380 | BoxData[ 381 | InterpretationBox[ 382 | Cell["Interactive Examples", "ExampleSection"], 383 | $Line = 0; 384 | Null 385 | ] 386 | ], 387 | "ExampleSection", 388 | CellID -> 101638628 389 | ], 390 | Cell[ 391 | BoxData[ 392 | InterpretationBox[ 393 | Cell["Neat Examples", "ExampleSection"], 394 | $Line = 0; 395 | Null 396 | ] 397 | ], 398 | "ExampleSection", 399 | CellID -> 854742653 400 | ] 401 | }, 402 | Open 403 | ] 404 | ] 405 | }, 406 | TaggingRules -> <| 407 | "Author" -> "rhennigan", 408 | "CreationDate" -> "02-06-2022 15:10:56" 409 | |>, 410 | CellContext -> "Global`", 411 | FrontEndVersion -> "13.1 for Microsoft Windows (64-bit) (February 16, 2022)", 412 | StyleDefinitions -> FrontEnd`FileName[ 413 | {"Wolfram"}, 414 | "FunctionPageStylesExt.nb", 415 | CharacterEncoding -> "UTF-8" 416 | ], 417 | ExpressionUUID -> "993c5570-9393-4f7b-ae65-a80f3a87a584" 418 | ] -------------------------------------------------------------------------------- /Documentation/English/ReferencePages/Symbols/AddTwo.nb: -------------------------------------------------------------------------------- 1 | Notebook[ 2 | { 3 | Cell[ 4 | TextData[ 5 | { 6 | "New in: ", 7 | Cell["", "HistoryData", CellTags -> "New"], 8 | " | Modified in: ", 9 | Cell[" ", "HistoryData", CellTags -> "Modified"], 10 | " | Obsolete in: ", 11 | Cell[" ", "HistoryData", CellTags -> "Obsolete"], 12 | " | Excised in: ", 13 | Cell[" ", "HistoryData", CellTags -> "Excised"] 14 | } 15 | ], 16 | "History", 17 | CellID -> 442953916 18 | ], 19 | Cell[ 20 | "Created by: rhennigan on 02-06-2022 15:12:13", 21 | "AuthorDate", 22 | CellID -> 485145089 23 | ], 24 | Cell[ 25 | CellGroupData[ 26 | { 27 | Cell[ 28 | "Categorization", 29 | "CategorizationSection", 30 | CellID -> 227341607 31 | ], 32 | Cell[ 33 | "Symbol", 34 | "Categorization", 35 | CellLabel -> "Entity Type", 36 | CellID -> 102775589 37 | ], 38 | Cell[ 39 | "SamplePublisher/AdvancedSamplePaclet", 40 | "Categorization", 41 | CellLabel -> "Paclet Name", 42 | CellID -> 13203781 43 | ], 44 | Cell[ 45 | "SamplePublisher`AdvancedSamplePaclet`", 46 | "Categorization", 47 | CellLabel -> "Context", 48 | CellID -> 423919477 49 | ], 50 | Cell[ 51 | "SamplePublisher/AdvancedSamplePaclet/ref/AddTwo", 52 | "Categorization", 53 | CellLabel -> "URI", 54 | CellID -> 123088812 55 | ] 56 | }, 57 | Open 58 | ] 59 | ], 60 | Cell[ 61 | CellGroupData[ 62 | { 63 | Cell["Keywords", "KeywordsSection", CellID -> 426345023], 64 | Cell["XXXX", "Keywords", CellID -> 160805281] 65 | }, 66 | Open 67 | ] 68 | ], 69 | Cell[ 70 | CellGroupData[ 71 | { 72 | Cell[ 73 | "Syntax Templates", 74 | "TemplatesSection", 75 | CellID -> 640652960 76 | ], 77 | Cell[ 78 | BoxData[""], 79 | "Template", 80 | CellLabel -> "Additional Function Template", 81 | CellID -> 956382 82 | ], 83 | Cell[ 84 | BoxData[""], 85 | "Template", 86 | CellLabel -> "Arguments Pattern", 87 | CellID -> 23784209 88 | ], 89 | Cell[ 90 | BoxData[""], 91 | "Template", 92 | CellLabel -> "Local Variables", 93 | CellID -> 8091423 94 | ], 95 | Cell[ 96 | BoxData[""], 97 | "Template", 98 | CellLabel -> "Color Equal Signs", 99 | CellID -> 356873526 100 | ] 101 | }, 102 | Open 103 | ] 104 | ], 105 | Cell[ 106 | CellGroupData[ 107 | { 108 | Cell["AddTwo", "ObjectName", CellID -> 19534339], 109 | Cell[ 110 | TextData[ 111 | { 112 | Cell[" ", "ModInfo"], 113 | Cell[ 114 | BoxData[ 115 | RowBox[ 116 | { 117 | ButtonBox[ 118 | "AddTwo", 119 | BaseStyle -> "Link", 120 | ButtonData -> "paclet:SamplePublisher/AdvancedSamplePaclet/CompiledLibraryExamplePaclet/ref/AddTwo" 121 | ], 122 | "[", 123 | StyleBox["x", "TI"], 124 | "]" 125 | } 126 | ] 127 | ], 128 | "InlineFormula" 129 | ], 130 | " \[LineSeparator]adds two to ", 131 | Cell[BoxData[StyleBox["x", "TI"]], "InlineFormula"], 132 | "." 133 | } 134 | ], 135 | "Usage", 136 | CellID -> 105697128 137 | ], 138 | Cell["XXXX", "Notes", CellID -> 1421668] 139 | }, 140 | Open 141 | ] 142 | ], 143 | Cell[ 144 | CellGroupData[ 145 | { 146 | Cell["Tech Notes", "TechNotesSection", CellID -> 347851740], 147 | Cell["XXXX", "Tutorials", CellID -> 162451092] 148 | }, 149 | Open 150 | ] 151 | ], 152 | Cell[ 153 | CellGroupData[ 154 | { 155 | Cell[ 156 | "Related Demonstrations", 157 | "RelatedDemonstrationsSection", 158 | CellID -> 45062672 159 | ], 160 | Cell["XXXX", "RelatedDemonstrations", CellID -> 238366849] 161 | }, 162 | Open 163 | ] 164 | ], 165 | Cell[ 166 | CellGroupData[ 167 | { 168 | Cell[ 169 | "Related Links", 170 | "RelatedLinksSection", 171 | CellID -> 186783056 172 | ], 173 | Cell["XXXX", "RelatedLinks", CellID -> 302714530] 174 | }, 175 | Open 176 | ] 177 | ], 178 | Cell[ 179 | CellGroupData[ 180 | { 181 | Cell["See Also", "SeeAlsoSection", CellID -> 784238168], 182 | Cell["XXXX", "SeeAlso", CellID -> 34451787] 183 | }, 184 | Open 185 | ] 186 | ], 187 | Cell[ 188 | CellGroupData[ 189 | { 190 | Cell[ 191 | "Related Guides", 192 | "MoreAboutSection", 193 | CellID -> 506359065 194 | ], 195 | Cell["XXXX", "MoreAbout", CellID -> 549981261] 196 | }, 197 | Open 198 | ] 199 | ], 200 | Cell[ 201 | CellGroupData[ 202 | { 203 | Cell[ 204 | BoxData[ 205 | InterpretationBox[ 206 | GridBox[ 207 | { 208 | { 209 | StyleBox["Examples", "PrimaryExamplesSection"], 210 | ButtonBox[ 211 | RowBox[ 212 | { 213 | RowBox[{"More", " ", "Examples"}], 214 | " ", 215 | "\[RightTriangle]" 216 | } 217 | ], 218 | BaseStyle -> "ExtendedExamplesLink", 219 | ButtonData :> "ExtendedExamples" 220 | ] 221 | } 222 | } 223 | ], 224 | $Line = 0; 225 | Null 226 | ] 227 | ], 228 | "PrimaryExamplesSection", 229 | CellID -> 487261667 230 | ], 231 | Cell[ 232 | BoxData[ 233 | RowBox[ 234 | { 235 | "Needs", 236 | "[", 237 | "\"SamplePublisher`AdvancedSamplePaclet`\"", 238 | "]" 239 | } 240 | ] 241 | ], 242 | "Input", 243 | InitializationCell -> True, 244 | CellLabel -> "In[1]:=", 245 | CellID -> 37376475 246 | ], 247 | Cell[ 248 | "Add two to a number:", 249 | "ExampleText", 250 | CellID -> 680947663 251 | ], 252 | Cell[ 253 | CellGroupData[ 254 | { 255 | Cell[ 256 | BoxData[RowBox[{"AddTwo", "[", "5", "]"}]], 257 | "Input", 258 | CellLabel -> "In[2]:=", 259 | CellID -> 562441377 260 | ], 261 | Cell[ 262 | BoxData["7"], 263 | "Output", 264 | CellLabel -> "Out[2]=", 265 | CellID -> 92191522 266 | ] 267 | }, 268 | Open 269 | ] 270 | ] 271 | }, 272 | Open 273 | ] 274 | ], 275 | Cell[ 276 | CellGroupData[ 277 | { 278 | Cell[ 279 | "More Examples", 280 | "ExtendedExamplesSection", 281 | CellTags -> "ExtendedExamples", 282 | CellID -> 58008317 283 | ], 284 | Cell[ 285 | BoxData[ 286 | InterpretationBox[ 287 | Cell["Scope", "ExampleSection"], 288 | $Line = 0; 289 | Null 290 | ] 291 | ], 292 | "ExampleSection", 293 | CellID -> 158239516 294 | ], 295 | Cell[ 296 | BoxData[ 297 | InterpretationBox[ 298 | Cell["Generalizations & Extensions", "ExampleSection"], 299 | $Line = 0; 300 | Null 301 | ] 302 | ], 303 | "ExampleSection", 304 | CellID -> 56840277 305 | ], 306 | Cell[ 307 | CellGroupData[ 308 | { 309 | Cell[ 310 | BoxData[ 311 | InterpretationBox[ 312 | Cell["Options", "ExampleSection"], 313 | $Line = 0; 314 | Null 315 | ] 316 | ], 317 | "ExampleSection", 318 | CellID -> 814023423 319 | ], 320 | Cell[ 321 | BoxData[ 322 | InterpretationBox[ 323 | Cell["XXXX", "ExampleSubsection"], 324 | $Line = 0; 325 | Null 326 | ] 327 | ], 328 | "ExampleSubsection", 329 | CellID -> 342729074 330 | ], 331 | Cell[ 332 | BoxData[ 333 | InterpretationBox[ 334 | Cell["XXXX", "ExampleSubsection"], 335 | $Line = 0; 336 | Null 337 | ] 338 | ], 339 | "ExampleSubsection", 340 | CellID -> 278729250 341 | ] 342 | }, 343 | Open 344 | ] 345 | ], 346 | Cell[ 347 | BoxData[ 348 | InterpretationBox[ 349 | Cell["Applications", "ExampleSection"], 350 | $Line = 0; 351 | Null 352 | ] 353 | ], 354 | "ExampleSection", 355 | CellID -> 124342531 356 | ], 357 | Cell[ 358 | BoxData[ 359 | InterpretationBox[ 360 | Cell["Properties & Relations", "ExampleSection"], 361 | $Line = 0; 362 | Null 363 | ] 364 | ], 365 | "ExampleSection", 366 | CellID -> 230619992 367 | ], 368 | Cell[ 369 | BoxData[ 370 | InterpretationBox[ 371 | Cell["Possible Issues", "ExampleSection"], 372 | $Line = 0; 373 | Null 374 | ] 375 | ], 376 | "ExampleSection", 377 | CellID -> 364240322 378 | ], 379 | Cell[ 380 | BoxData[ 381 | InterpretationBox[ 382 | Cell["Interactive Examples", "ExampleSection"], 383 | $Line = 0; 384 | Null 385 | ] 386 | ], 387 | "ExampleSection", 388 | CellID -> 217509762 389 | ], 390 | Cell[ 391 | BoxData[ 392 | InterpretationBox[ 393 | Cell["Neat Examples", "ExampleSection"], 394 | $Line = 0; 395 | Null 396 | ] 397 | ], 398 | "ExampleSection", 399 | CellID -> 62185671 400 | ] 401 | }, 402 | Open 403 | ] 404 | ] 405 | }, 406 | TaggingRules -> <| 407 | "Author" -> "rhennigan", 408 | "CreationDate" -> "02-06-2022 15:12:13" 409 | |>, 410 | CellContext -> "Global`", 411 | FrontEndVersion -> "13.1 for Microsoft Windows (64-bit) (February 16, 2022)", 412 | StyleDefinitions -> FrontEnd`FileName[ 413 | {"Wolfram"}, 414 | "FunctionPageStylesExt.nb", 415 | CharacterEncoding -> "UTF-8" 416 | ], 417 | ExpressionUUID -> "1baa4172-0fb3-4562-b7ba-39e87846f736" 418 | ] --------------------------------------------------------------------------------