Changeset 3a8f94f in tol


Ignore:
Timestamp:
Nov 11, 2009, 11:29:42 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a422cc8
Parents:
01f6b1c7
Message:

In-line wiki header must be written in an external file to avoid scape C characters

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1681 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol_pkg
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/_uploader.tol

    r01f6b1c7 r3a8f94f  
    4545Real wiki = FOpen(tolpkg+"wiki.txt","wb");
    4646
    47 Real FPutText(wiki,"
    48 [[PageOutline]]
    49 = TOL Packages =
    50 TOL packages are objects of type NameBlock containinig libraries, tools and
    51 examples writen in TOL in order to help users to make an efficient and
    52 standarized use of the language.
    53 
    54 The only requirement to use them is open source cross-platform sofware
    55 [http://www.gnu.org/software/wget/ wget] that is distributed with almost
    56 all linux systems. A Windows binary setup is available
    57 [http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe here].
    58 
    59 In order to load a package like !GraphTools in your code you only need to
    60 write
    61 {{{
    62 #Require GraphTools;
    63 }}}
    64 
    65 This command creates an object of type NameBlock with the same name in the
    66 global scope, so that subsequent calls from the same session does
    67 absolutely nothing. The command returns nothing in the current scope, ie is
    68 transparent to the browser !TolBase and for the contents of the sets,
    69 instances, etc. The first time you use a package in a computer it will be
    70 automatically installed from this public repository.
    71 
    72 If you want to upgrade to a newer version of a package you can call global
    73 function
    74 {{{
    75 Real UpgradePackage(Text PackageName)
    76 }}}
    77 In order to upgrade all local packages you can write
    78 {{{
    79 Real UpgradePackage(\"all\")
    80 }}}
    81 
    82 The package is a root directory whose name follows the CamelCase convention,
    83 and it will have a file almost a file with teh same name and extension
    84 {{{.tol}}} containg just one object of type NameBlock that is the TOL engine
    85 of the package. From the NameBlock it will be loaded any file situated
    86 inside the root directory in an arbitrary hierarchy of subdirectories.
    87 
    88 Usually the directory have also an special directory called '''test''' where
    89 there standard TOL checking programs tha can be used also as examples of use.
    90 
    91 Some complex packages can require specific documentation that will be put in
    92 '''doc''' directory
    93 
    94 ");
     47Real FPutText(wiki,ReadFile("_wiki_header.txt"));
    9548
    9649Text WriteFile(tolpkg+"compress.bat",
    … …  
    10861  Real FPutText(wiki,
    10962"
    110 == !"+name+" ==
     63=== !"+name+" ===
    11164 * '''description''' : "+nb::_.autodoc.description+"
    11265 * '''keywords''' : "+SetOfTextToWikiList(nb::_.autodoc.keys," ","__")+"
Note: See TracChangeset for help on using the changeset viewer.