Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Add Texinfo support #4514

Closed
CeylonMigrationBot opened this issue Aug 21, 2015 · 16 comments
Closed

Add Texinfo support #4514

CeylonMigrationBot opened this issue Aug 21, 2015 · 16 comments

Comments

@CeylonMigrationBot
Copy link

[@lucaswerkmeister] I wrote some XSLT stylesheets that transform the spec’s Docbook into Texinfo.

To test it, run:

ant -Dlang=en lang.docinfo.install

and then you can view the specification with

info ceylon-spec

or

emacs # open emacs
C-h i # open info directory
mCeylon # menu item Ceylon

We could also add Texinfo→HTML and Texinfo→PDF transformation, but that’s kinda pointless, since we already have those two formats, and the Texinfo version looks worse.

Note: this pull request also contains the commit from #4513 (closes #4513), since it’s required for this to work (all nodes need to have IDs).

[Migrated from ceylon/ceylon-spec#1408]
[Closed at 2015-08-21 12:35:09]

@CeylonMigrationBot
Copy link
Author

[@quintesse] NB: for this to work you need to have makeinfo installed

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister] Is that not installed by default on most Linuxes?

@CeylonMigrationBot
Copy link
Author

[@quintesse] It wasn't on mine (Fedora 21)

@CeylonMigrationBot
Copy link
Author

[@quintesse] btw to test I had to type info build/en/ceylon-spec

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister] so you didn’t install it?

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister]

It wasn't on mine (Fedora 21)

seems to be part of the texinfo package on Debian and Arch, and in both distros that package seems to be part of the base distribution

@CeylonMigrationBot
Copy link
Author

[@quintesse]

so you didn’t install it?

I ran the "ant" command just as you describe above

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister]

ant -Dlang=en lang.docinfo.install

This one should install it in your global info directory. Needs sudo, install, install-info though.

@CeylonMigrationBot
Copy link
Author

[@quintesse] I don't think the "sudo" command got executed at all

@CeylonMigrationBot
Copy link
Author

[@quintesse] Does it ask you for credentials when you run that task?

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister] yes

@CeylonMigrationBot
Copy link
Author

[@quintesse] Wtf? IT's because you put -Dlang.en in the command instead of -Dlang=en!

But then why does it even get to the doc generation?

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister]
…oops :D

sorry, but does it work with -Dlang=en?

@CeylonMigrationBot
Copy link
Author

[@quintesse] yup

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister] ok good

I should probably do something in ceylon-dist too so that our published packages install the file as well.

@CeylonMigrationBot
Copy link
Author

[@quintesse] Although I'm thinking of just doing an <echo> of that install line, running sudo from a script without seeing what it is going to do is not something I normally like to do

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant