Skip to contentSkip to conversation

Generated docs

Xenomai-core Heikki Lindholm 3 participants 10 messages Oct 11, 2005 5 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

One thing that always bothered my in fusion cvs: why do the generated docs have to be in the cvs/svn? Why not just let them be... well... generated?

-- Heikki Lindholm

#1 lore raw
Quoted 5 lines · Heikki Lindholm

Hi,

One thing that always bothered my in fusion cvs: why do the generated docs have to be in the cvs/svn? Why not just let them be... well... generated?

Because it allows the releases to be done taking the docs from the generated dir instead of generating them.

IOW: separate maintenance of documentation and code.

What I do not understand is what is so bothering ?

Signature · 1 line
					    Gilles Chanteperdrix.
#14 lore raw
In reply to Heikki Lindholm
Quoted 5 lines · Heikki Lindholm

Hi,

One thing that always bothered my in fusion cvs: why do the generated docs have to be in the cvs/svn? Why not just let them be... well... generated?

The real answer is that if you do not "svn checkout" the "doc" directory, Xenomai build system should continue working properly. The same goes for the "sim" directory.

Signature · 1 line
					    Gilles Chanteperdrix.
#4 lore raw
In reply to a message not in the archive

Gilles Chanteperdrix kirjoitti:

Quoted 15 lines
Quoted 8 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:

Quoted 7 lines
Quoted 5 lines · Heikki Lindholm

Hi,

One thing that always bothered my in fusion cvs: why do the generated docs have to be in the cvs/svn? Why not just let them be... well... generated?

Quoted 5 lines
Quoted 2 lines

Because it allows the releases to be done taking the docs from the generated dir instead of generating them.

How about having "dist" or similar target in the Makefile do that, instead? Releases aren't that often anyway.

Quoted 8 lines

dist does that only if documentation generation is enabled, if this was not an option, it would not allow separate maintenance of documentation and code. Some time ago, the plan was even to let documentation have its own configure, like the simulator.

If you do not checkout the "doc" or "sim" directory, the build system is supposed to continue working properly. It will not let you enable documentation generation or simulator, though.

Ok. I haven't actually tried that ever.

Quoted 11 lines
Quoted 9 lines
Quoted 4 lines

IOW: separate maintenance of documentation and code.

What I do not understand is what is so bothering ?

(1) Kind of like having binaries in the repo: changes between generated docs aren't usually meaningful. Doing diff between version dirs where there's not much changed codewise, but different generations of docs brings unneccessarily big diff or needs special attention not to. Btw.

diff (and probably svn diff) have a --exclude option. So, you can skip

Indeed. But this is the special attention I'm talking about ;) I'm still not convinced about the "need 'em for the release" reasoning. Let's put it this way: what trouble would it bring, if we had "dist" always generate docs for a release (and not have them in the repo)?

Quoted 8 lines
Quoted 2 lines

Many projects don't even have autoconf/make generated stuff (=configure) in the repository..

I guess this is a matter of taste, but by putting the generated stuff into the repository, we do not impose contributors and users who want to work with the svn head to have the proper version of the autotools installed and to know how to use them. This is a little effort with a big pay off.

True. I've had my share of autoconf troubles and don't like the whole system at all. Having it ready-made is definitely the right thing to do.

-- Heikki Lindholm

#7 lore raw
In reply to a message not in the archive

Gilles Chanteperdrix kirjoitti:

Quoted 7 lines
Quoted 5 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:
Indeed. But this is the special attention I'm talking about ;) I'm still not convinced about the "need 'em for the release" reasoning. Let's put it this way: what trouble would it bring, if we had "dist" always generate docs for a release (and not have them in the repo)?

Quoted 5 lines

Allows to share the load during releases: I generate the doc, using the "generate-doc" target in the doc directory, run svn commit to put them in the repository. Then Philippe runs svn update and make dist. As I said, it allows to have a separate maintenance of documentation and sources.

Hehe. So Philippe's machine would choke, if it had to generate the docs, too(?) And since most(?) of the docs comes from the sources, you don't actually edit them by hand now do you? So what does maintaining mean here?

Quoted 3 lines

Having the generated documentation in svn repository also allows us to copy it to the documentation directory of the download zone from a script run by cron.

Ok, this makes sense. But could be done by other means, too, I guess.

-- Heikki Lindholm

#8 lore raw
Quoted 4 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:
Hehe. So Philippe's machine would choke, if it had to generate the docs, too(?) And since most(?) of the docs comes from the sources, you don't actually edit them by hand now do you? So what does maintaining mean here?

Means proof-reading and correcting typos or avoiding doxygen parse errors actually.

Quoted 5 lines
Quoted 3 lines

Having the generated documentation in svn repository also allows us to copy it to the documentation directory of the download zone from a script run by cron.

Ok, this makes sense. But could be done by other means, too, I guess.

Automatically ? It could result in broken documentation on the web site, which is not quite user-friendly.

Now that you answered publically to a discussion you started privately, I guess our readers will not understand anything :-)

Signature · 1 line
					    Gilles Chanteperdrix.
#12 lore raw
In reply to a message not in the archive

Gilles Chanteperdrix kirjoitti:

Quoted 15 lines
Quoted 14 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:

Quoted 12 lines
Quoted 5 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:
Indeed. But this is the special attention I'm talking about ;) I'm still not convinced about the "need 'em for the release" reasoning. Let's put it this way: what trouble would it bring, if we had "dist" always generate docs for a release (and not have them in the repo)?

Allows to share the load during releases: I generate the doc, using the "generate-doc" target in the doc directory, run svn commit to put them in the repository. Then Philippe runs svn update and make dist. As I said, it allows to have a separate maintenance of documentation and sources.

Quoted 8 lines
Quoted 3 lines

Hehe. So Philippe's machine would choke, if it had to generate the docs, too(?) And since most(?) of the docs comes from the sources, you don't actually edit them by hand now do you? So what does maintaining mean here?

It means looking at the doc, if there are no anomalies, like warnings, parsing errors of doxygen, or typos in the text. Usually takes an hour or two. I admit I am not fast, but I think it would take some time for Philippe to do that too.

Okay. Although, I would be stupid enough to trust that if it generates nicely for you it does so for Philippe, too, and not take the usual metaphysical factors into account. Assuming that some coordination is done to ensure that similar configurations are used - not too hard if both use the same distro, for example.

-- hl

#13 lore raw
Quoted 11 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:

Quoted 4 lines

It means looking at the doc, if there are no anomalies, like warnings, parsing errors of doxygen, or typos in the text. Usually takes an hour or two. I admit I am not fast, but I think it would take some time for Philippe to do that too.

Okay. Although, I would be stupid enough to trust that if it generates nicely for you it does so for Philippe, too, and not take the usual metaphysical factors into account. Assuming that some coordination is done to ensure that similar configurations are used - not too hard if both use the same distro, for example.

Definitely not enough: doxygen need some external programs, which presence is detected by the configure script, but in their absence the same documentation is not generated. The docbook generation use some tools which do not even exist as Debian packages.

Signature · 1 line
					    Gilles Chanteperdrix.
#9 lore raw
In reply to Gilles Chanteperdrix

Gilles Chanteperdrix kirjoitti:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Having the generated documentation in svn repository also allows us to copy it to the documentation directory of the download zone from a script run by cron.

Ok, this makes sense. But could be done by other means, too, I guess.

Automatically ? It could result in broken documentation on the web site, which is not quite user-friendly.

Well, there are always other means. I don't know doxygen specifics, so I'll just shut up here. When the generated docs grow to some few hundreds of megs, maybe I'll raise this point again.

Quoted 2 lines

Now that you answered publically to a discussion you started privately, I guess our readers will not understand anything :-)

That'll be true. Or rather, I answered publicly/privately in random fashion --- there are just too many buttons on a mail client for my intellect.

-- Heikki Lindholm

#10 lore raw
Quoted 13 lines · Heikki Lindholm

Gilles Chanteperdrix kirjoitti:

Quoted 9 lines
Quoted 1 line
Quoted 1 line

Having the generated documentation in svn repository also allows

us to

Quoted 3 lines
Quoted 3 lines

copy it to the documentation directory of the download zone from a script run by cron.
Ok, this makes sense. But could be done by other means, too, I

guess.

Automatically ? It could result in broken documentation on the web site, which is not quite user-friendly.

Quoted 8 lines

Well, there are always other means. I don't know doxygen specifics, so I'll just shut up here. When the generated docs grow to some few hundreds of megs, maybe I'll raise this point again.

Quoted 2 lines

Now that you answered publically to a discussion you started privately, I guess our readers will not understand anything :-)

That'll be true. Or rather, I answered publicly/privately in random fashion --- there are just too many buttons on a mail client for my intellect.

Yeah, same for me. For this reason, I'm sticking a lot of post-it full of reminders about how to use all these devilish interfaces on my screen; problem now is that I can't see clearly what's displayed on the latter anymore. No wonder why we are going to need a huge number of Xenomai releases in the future... :o>

Signature · 1 line
Philippe.