unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to include Info manuals in packages?
@ 2023-01-26 18:39 Mariano Montone
  2023-01-27  0:25 ` Basil L. Contovounesios
  0 siblings, 1 reply; 3+ messages in thread
From: Mariano Montone @ 2023-01-26 18:39 UTC (permalink / raw)
  To: emacs-devel

Hello,

I'm considering adding a manual an Info format to my package. My package 
is installable from ELPA.

I have these questions:

1) Is it good practice to include an Info manual in same package that 
contains the package source code?

2) How to get the Info manual installed when the user installs my package?


Thank you,

       Mariano




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to include Info manuals in packages?
  2023-01-26 18:39 How to include Info manuals in packages? Mariano Montone
@ 2023-01-27  0:25 ` Basil L. Contovounesios
  2023-01-27  0:28   ` Mariano Montone
  0 siblings, 1 reply; 3+ messages in thread
From: Basil L. Contovounesios @ 2023-01-27  0:25 UTC (permalink / raw)
  To: Mariano Montone; +Cc: emacs-devel

Mariano Montone [2023-01-26 15:39 -0300] wrote:

> I'm considering adding a manual an Info format to my package. My package is
> installable from ELPA.
>
> I have these questions:
>
> 1) Is it good practice to include an Info manual in same package that contains
> the package source code?

Yes, but you need to check in only the .texi file.  GNU ELPA will then
automatically generate the required 'dir' and .info files and include
them in the package tarball.

> 2) How to get the Info manual installed when the user installs my package?

If you tell GNU ELPA where to find the .texi file, then it (and
package.el) should handle the rest automatically for you.

This is specified in the elpa-packages file under elpa.git:
https://git.sv.gnu.org/cgit/emacs/elpa.git/tree/elpa-packages
Look for the :doc keyword for examples.

The available keywords are documented in the repo's README:
https://git.sv.gnu.org/cgit/emacs/elpa.git/tree/README

Finally, what happens during package-install is mentioned under
(info "(elisp) Multi-file Packages").

HTH,

-- 
Basil



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to include Info manuals in packages?
  2023-01-27  0:25 ` Basil L. Contovounesios
@ 2023-01-27  0:28   ` Mariano Montone
  0 siblings, 0 replies; 3+ messages in thread
From: Mariano Montone @ 2023-01-27  0:28 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: emacs-devel

Basil,

    thanks for the info! Much appreciated.

Mariano

El 26/1/23 a las 21:25, Basil L. Contovounesios escribió:
> Mariano Montone [2023-01-26 15:39 -0300] wrote:
>
>> I'm considering adding a manual an Info format to my package. My package is
>> installable from ELPA.
>>
>> I have these questions:
>>
>> 1) Is it good practice to include an Info manual in same package that contains
>> the package source code?
> Yes, but you need to check in only the .texi file.  GNU ELPA will then
> automatically generate the required 'dir' and .info files and include
> them in the package tarball.
>
>> 2) How to get the Info manual installed when the user installs my package?
> If you tell GNU ELPA where to find the .texi file, then it (and
> package.el) should handle the rest automatically for you.
>
> This is specified in the elpa-packages file under elpa.git:
> https://git.sv.gnu.org/cgit/emacs/elpa.git/tree/elpa-packages
> Look for the :doc keyword for examples.
>
> The available keywords are documented in the repo's README:
> https://git.sv.gnu.org/cgit/emacs/elpa.git/tree/README
>
> Finally, what happens during package-install is mentioned under
> (info "(elisp) Multi-file Packages").
>
> HTH,
>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-27  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-26 18:39 How to include Info manuals in packages? Mariano Montone
2023-01-27  0:25 ` Basil L. Contovounesios
2023-01-27  0:28   ` Mariano Montone

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).