From: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
To: guile-devel@gnu.org
Subject: [PATCH] doc: add example for module texinfo doc format
Date: Mon, 29 Apr 2024 08:55:57 -0400 [thread overview]
Message-ID: <CAAQmekcU8r6nHnuARcxaXMz6E-7Mr9nt-9s5YtoijUk4wzeakA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 93 bytes --]
Hello,
I'm attaching a minor patch for documentation.
Regards,
Nikolaos Chatzikonstantinou
[-- Attachment #2: 0001-doc-add-example-for-module-texinfo-doc-format.patch --]
[-- Type: text/x-patch, Size: 1460 bytes --]
From ae0cb62a7400a5e45206663c22df6920f7f798f0 Mon Sep 17 00:00:00 2001
From: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
Date: Mon, 29 Apr 2024 08:38:33 -0400
Subject: [PATCH] doc: add example for module texinfo doc format
---
doc/ref/texinfo.texi | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/doc/ref/texinfo.texi b/doc/ref/texinfo.texi
index 64a866b23..45ecb6d68 100644
--- a/doc/ref/texinfo.texi
+++ b/doc/ref/texinfo.texi
@@ -472,11 +472,23 @@ Serialize the stexi @var{tree} into plain texinfo.
@node texinfo reflection
@subsection (texinfo reflection)
@subsubsection Overview
-Routines to generare @code{stexi} documentation for objects and modules.
+Routines to generate @code{stexi} documentation for objects and modules.
Note that in this context, an @dfn{object} is just a value associated
with a location. It has nothing to do with GOOPS.
+The convention for documenting Guile code is to include a
+three-semicolon comment block such as
+
+@example
+;;; Commentary:
+;;; <Module documentation>
+;;; Code:
+@end example
+
+where the documentation of a module is included in texinfo format in
+@code{<Module documentation>} and Guile code follows after@code{Code:}.
+
@subsubsection Usage
@anchor{texinfo reflection module-stexi-documentation}@defun module-stexi-documentation sym-name [%docs-resolver] [#:docs-resolver]
Return documentation for the module named @var{sym-name}. The
--
2.39.2
next reply other threads:[~2024-04-29 12:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 12:55 Nikolaos Chatzikonstantinou [this message]
[not found] ` <8734r45k18.fsf@web.de>
2024-04-30 11:20 ` [PATCH] doc: add example for module texinfo doc format Nikolaos Chatzikonstantinou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAQmekcU8r6nHnuARcxaXMz6E-7Mr9nt-9s5YtoijUk4wzeakA@mail.gmail.com \
--to=nchatz314@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).