docidx_lang_cmdref(n)
β¨ NAME β¨
okay bestie, listen up π this is docidx_lang_cmdref β the docidx language command reference, aka the master list of every command the docidx markup language speaks. it's the cheat sheet, the glossary, the whole vibe. π
πΈ SYNOPSIS πΈ
comment plaintext
include filename
index_begin text title
index_end
key text
lb
manpage file text
rb
url url label
vset varname value
vset varname
π DESCRIPTION π
so here's the tea, bestie: this document spills both the names AND the syntax of every single command that makes up the docidx markup language, version 1. π¦
because this is meant to be a reference and not a bedtime story, the commands are listed in alphabetical order and the descriptions stay pretty short β no yapping, just facts. β¨
real talk though: if you're a beginner, go read the way more informally written docidx language introduction first. this page is not the place to start, it's the place to look stuff up. periodt. π
π COMMANDS π
π comment plaintext
Index markup. the text argument gets marked up as a comment, and it stands outside the actual text of the document. main use? free-form text, bestie. it's giving "just vibing in the margins". π¬
π include filename
Templating. the contents of the named file get interpreted as text written in docidx markup, and then processed in the place of the include command. π«Ά
β οΈ heads up: the markup in that file has to be self-contained. a markup command is not allowed to cross the file boundaries. no sneaky spans across files, nope, not today. π«
π index_begin text title
Document structure. this is the command that starts an index. π
the arguments are:
- text β a label for the whole group of documents the index refers to
- title β the overall title text for the index, and ngl it's without markup
fun fact: the label is often the name of the package (or extension) that the documents belong to. iykyk. π
π index_end
Document structure. the command that ends an index. π
π¨ anything in the document that comes after this command is in error. like, do not pass go, do not collect $200. π
π key text
Index structure. this one adds the keyword text to the index. simple, iconic, does exactly what it says. β
π lb
Text. gets replaced with a left bracket. use it in free-form text. it's required so that a left bracket doesn't get interpreted as the start of a markup command. π§
β οΈ its usage is restricted to the arguments of other markup commands. stay in your lane, lb. π
π manpage file text
Index structure. adds an element to the index that refers to a document. π
the document is specified through the symbolic name file, and the text argument is used to label the reference.
now why symbolic names, you ask? because they preserve the convertibility of this format to any output format, bestie. β¨ the actual name of the file gets inserted by whichever formatting engine you chose, when it converts the input. and that's based on a mapping from symbolic β actual names that you hand to the engine. slay. π
π rb
Text. gets replaced with a right bracket. use it in free-form text. required so that a right bracket doesn't get interpreted as the end of a markup command. π§
β οΈ same deal as lb: usage is restricted to the arguments of other commands. π«Ά
π url url label
Index structure. this is the second command that adds an element to the index. π₯
the difference? to refer to a document it does not use a symbolic name β instead it uses a (possibly format-specific) url describing the exact location of the document being indexed here. π
π vset varname value
Templating. in this form, the command sets the named document variable to the specified value. and no, it does not generate output β the command gets replaced by the empty string. poof. π¬οΈ
π vset varname
Templating. in this form, the command gets replaced by the value of the named document variable. that's it, that's the whole thing. π
π BUGS, IDEAS, FEEDBACK π
ngl bestie, this document and the package it describes will undoubtedly contain bugs and other problems. it's not a vibe, but it's reality. π
please report such in the category doctools of the Tcllib Trackers:
http://core.tcl.tk/tcllib/reportlist
also please report any ideas for enhancements you may have for either the package and/or the documentation. we want the glow-up. β¨
when proposing code changes, please provide unified diffs, i.e. the output of diff -u. π
π note further that attachments are strongly preferred over inlined patches. you can make attachments by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. that's the move. π«Ά
π SEE ALSO π
docidx_introdocidx_lang_faqdocidx_lang_introdocidx_lang_syntax
π KEYWORDS π
docidx commands, docidx language, docidx markup, markup, semantic markup
πΈ CATEGORY πΈ
Documentation tools
π COPYRIGHT π
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, bestie! π₯³ this was docidx_lang_cmdref(n) from the tcllib crew, version 1.0, part of the Documentation tools fam. go forth and mark up your docs with main character energy. mwah π
β¨π¦
π¦ where this page comes from
- alpine 3.24: tcl-lib-doc 1.21-r1 Β· BSD-2-Clause
- epel 9: tcllib 1.21-1.el9 Β· BSD
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- opensuse-leap 16.0: tcllib 1.21-bp160.1.2 Β· TCL
- Copyright (c) 2007 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms