Update documentation.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
CismonX 2021-04-29 20:23:46 +08:00
parent c09d267d66
commit dd2294f59c
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
1 changed files with 27 additions and 11 deletions

View File

@ -113,17 +113,18 @@ binary release, which is proprietary. You can also build it from
@url{https://github.com/microsoft/vscode, source} yourself. @url{https://github.com/microsoft/vscode, source} yourself.
@quotation Note @quotation Note
Theoretically vscode-texinfo can be installed on any version of Visual Studio Theoretically vscode-texinfo can work on any version of Visual Studio Code since
Code since 1.40, but not all versions are tested. It's recommended to install a 1.40, but not all versions are tested. It's recommended to install a latest
latest release. release.
@end quotation @end quotation
The easiest way to install vscode-texinfo is from the extension marketplace. The easiest way to install vscode-texinfo is from the extension marketplace.
Click the ``Extensions'' tab on Visual Studio Code's sidebar, type ``texinfo'' Click the ``Extensions'' tab on Visual Studio Code's sidebar, type ``texinfo''
and you can find and install this extension. and you can find and install this extension (Extension ID:
@code{cismonx.texinfo}).
@menu @menu
* Manual Installation:: Download and install vscode-texinfo manually * Manual Installation:: Download and install vscode-texinfo manually.
* Build from Source:: Build vscode-texinfo from source code. * Build from Source:: Build vscode-texinfo from source code.
@end menu @end menu
@ -413,22 +414,37 @@ There are some other settings which can affect the behaviour and appearance of
HTML previews. HTML previews.
@itemize @bullet @itemize @bullet
@item @code{texinfo.preview.noHeaders}: When enabled, headers and menus are no @item @code{texinfo.preview.errorLimit}: Number of errors which @code{makeinfo}
longer displayed in preview (by passing @code{--no-headers} to @code{makeinfo}). can produce before quitting. (@code{--error-limit=NUM})
@item @code{texinfo.preview.includePaths}: Array of extra paths to search for
@code{@@include} files. (@code{-I PATH})
@item @code{texinfo.preview.maxSize}: Max allowed size for the genereated HTML @item @code{texinfo.preview.maxSize}: Max allowed size for the genereated HTML
file before it's displayed in the preview. Files larger than this limit will file before it's displayed in the preview. Files larger than this limit will
trigger an error. trigger an error.
@item @code{texinfo.preview.errorLimit}: Number of errors which @code{makeinfo} @item @code{texinfo.preview.noHeaders}: When enabled, headers and menus are no
can produce before quitting. (@code{--error-limit=NUM}) longer displayed in preview. (@code{--no-headers})
@item @code{texinfo.preview.noNumberSections}: When enabled, do not display
chapter and section numbers in preview. (@code{--no-number-sections})
@item @code{texinfo.preview.noValidation}: When enabled, node cross-references @item @code{texinfo.preview.noValidation}: When enabled, node cross-references
are not validated. (@code{--no-validate}) are not validated. (@code{--no-validate})
@item @code{texinfo.preview.noWarnings}: When enabled, @code{makeinfo} does not @item @code{texinfo.preview.variables}: Array of variables to define (as with
produce any warnings. (@code{--no-warn}) @code{@@set}). If a variable has a value, use the ASCII space character to
separate key and value.
@end itemize @end itemize
@node Diagnosis @node Diagnosis
@section Diagnosis @section Diagnosis
Diagnosis can help you locate syntactic and semantic problems in a Texinfo
document, by parsing the error output of @code{makeinfo} and display the
diagnostic information on the editor.
The diagnostic information of a document is calculated automatically, whenever
an attempt to generate preview is made.
By default, all error and warning messages are shown. To disable warnings,
switch on the configuration item @code{texinfo.diagnosis.noWarnings}.
@bye @bye