Changeset 39 in code for trunk/txt


Ignore:
Timestamp:
Dec 12, 2022, 10:52:55 PM (2 years ago)
Author:
fox
Message:

Read References field; referred by listing; test & tidy documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/txt/hvhhwf.txt

    r35 r39  
    66# New
    77
    8 To create new text files, use `txt new "<My title>"` where <my title> is the initial title you wish the text to have. It's important to enclose the title with quotation marks if it contains spaces. The command will return the filename of the new text. The filename starts with a part of the ID and the title of the text. Use the file name to open it with your text editor.
     8To create new text files, use "txt new". For example:
     9        txt new "Hello world"
     10It's important to enclose the title with quotation marks if it contains spaces. The command will return the filename of the new text. The filename starts with a part of the ID and the title of the text. Use the file name to open it with your text editor.
    911
    10 Alternatively add the -i flag, `txt new -i "<My title>"` to have the text editor launched to edit the newly created file.
     12Alternatively add the -i flag to have the text editor launched to edit the newly created file:
     13        txt new -i "Some title"
    1114
    1215Text files will be stored in either:
     
    1619
    1720The simplest approach is to put all texts in the local-share directory and override that on occasion with
    18 `txtdir`. For example:
    19 txtdir=. txt new "Hello world"
     21$txtdir. For example:
     22        txtdir=. txt new "Hello world"
    2023
    2124
    2225# Publish
    2326
    24 Texts created with "new" are treated as personal until published. To publish a text, use `txt publish <id>` where <id> is the text of the text to publish. Publication requires a `txt.conf` file which must exist in either:
     27Texts created with "new" are treated as personal until published. To publish a text, use `txt publish [id]` where [id] is the text of the text to publish. Publication requires a `txt.conf` file which must exist in either:
    25281. The current working directory
    26292. $HOME/.config/txt/txt.conf
    2730
    28 With the above in place, `txt publish <id>` will add the text file with <id> in the publication-directory and reproduce the `index.pck` in that directory. If Pubdir is not defined in `txt.conf` then the environmental variable `txtpubdir` is used. If that is also undefined, the current working directory is used as a publication directory.
     31With the above in place, `txt publish [id]` will add the text file with [id] in the publication-directory and reproduce the `index.pck` in that directory. If Pubdir is not defined in `txt.conf` then the environmental variable `txtpubdir` is used. If that is also undefined, the current working directory is used as a publication directory.
    2932
    30 Logarion is protocol agnostic, so publish looks for the existence of directories to copy the files, ready for publication. At the time of writing the three directories are `public_html`, `public_gemini` and `public_gopher`. For each of these directories, `txt publish <id>` will copy the text file, revise the `index.pck` and also convert produce converted files, such .htm for public_html.
     33Logarion is protocol agnostic, so publish looks for the existence of directories to copy the files, ready for publication. At the time of writing the three directories are `public_html`, `public_gemini` and `public_gopher`. For each of these directories, `txt publish [id]` will copy the text file, revise the `index.pck` and also convert produce converted files, such .htm for public_html.
    3134
    3235## txt.conf keys
    3336
    34 Id: A random, unique, alphanumeric string for distinguishing the repository (atleast 6 characters of Crockford's Base32 recommended)
    35 Title: a human-friendly title
    36 Authors: comma seperated list of names and, optionally, addresses
    37 Topics: topics the repository aims to cover
    38 Locations: list of URIs the repositories can be accessed
    39 Peers: list of peer URIs
    40 Pubdir: (optional) the directory that contains publication subdirectories
     37Id:
     38        A random, unique, alphanumeric string for distinguishing the repository (atleast 6 characters of Crockford's Base32 recommended)
     39
     40Title:
     41        a human-friendly title
     42
     43Authors:
     44        comma seperated list of names and, optionally, addresses
     45
     46Topics:
     47        topics the repository aims to cover
     48
     49Locations:
     50        list of URIs the repositories can be accessed
     51
     52Peers:
     53        list of peer URIs
     54
     55Pubdir:
     56        (optional) the directory that contains publication subdirectories
    4157
    4258
     
    4561There are some special settings for HTML publication:
    4662
    47 HTM-style: path to a CSS style. It will be inserted in every .htm file. To link to a single CSS consider using `@import`
    48 HTM-header: path to a file, inserted in every .htm file, right after the <body> tag
    49 HTM-footer: path to a file, inserted in every .htm file, right before the </body> tag
    50 HTM-index: if defined, determines the filename for the index files. Left undefined, defaults to `index.html`
    51 HTM-feed: if defined, this will overrite the feed URI used in HTML files. If left undefined the default `feed.atom` is used
     63HTM-style:
     64        path to a CSS style. It will be inserted in every .htm file. To link to a single CSS consider using `@import`
     65
     66HTM-header:
     67        path to a file, inserted in every .htm file, right after the body tag
     68
     69HTM-footer:
     70        path to a file, inserted in every .htm file, right before the body tag
     71
     72HTM-index:
     73        if defined, determines the filename for the index files. Left undefined, defaults to `index.html`
     74
     75HTM-feed:
     76        if defined, this will overrite the feed URI used in HTML files. If left undefined the default `feed.atom` is used
Note: See TracChangeset for help on using the changeset viewer.