NHibernate Forge
The official new home for the NHibernate community

Documentation Project Launch

I started to restructure and enhance the NHibernate documentation. I want to move from a "Reference Documentation" to a "Programmers Manual". The difference is, that when you read a reference documentation you already know the concepts and only need to know details like xml elements or HQL syntax. A manual should explain the concepts in detail and you should be able to understand it even if you are new to NHibernate.

The current documentation is explaining quite a lot - it is not only a reference. Most of the documentation is already there. But in my opinion it is sometimes on the wrong place.

Let me demonstrate this with some randomly picked examples:

  • Chapter 2.3 "Contextual Sessions": We don't even know, what a session actually is at this point and what it is used for.
  • Chapter 3.3 "User Provided ADO.NET connection": It is the first chapter about how to optain a connection and it appears to be the easiest and recommended way. This chapter should be last option and there should be a hint that some things won't work with user provided connections (eg. Hi-Lo identities afaik).
  • Chapter 3.5 "Optional configuration properties": There is a list of all optional properties. This is a "reference" kind of documentation. For instance, all the hibernate.cache.* parameters should be explained in a chapter about NH second level caches, unless the reader can't do anything with the information.
  • By the way, the possible values for each parameter is documented as "eg: ...". It should be a complete list.

And so on.

The new structure how I propose it is available as draft in the wiki. Please read it and comment to it if you think it should be different. Now it is still easy to change.

It will be quite a bit of work, and I will need some help. Now stop moving the mouse towards the "return" or "close tab" button and keep reading. Thanks. You can even help if you don't have much time and if you are not the Great Master of NHibernate. This is how you can help:

  • Give me some feedback to my plans, on this blog and on the structure proposal. This is important to me.
  • Tell me what you miss in the documentation, or what you would like be changed. Also tell me what you like and should be kept as it is.
  • I will ask specific questions in further blogs. So please keep reading them :-)

Later, I will need some people to:

  • review the docs. For instance, a native English speaker to turn my (and probably others) Pidgin English into real English. Or a NH developer who checks if it is actually true.
  • develop the tools. We are using DocBook, if you know about XSL:FO or how to configure HTML output, your help will be much appreciated.
  • develop examples and diagrams. But before we start writing such things, we need to know what has to be demonstrated with it.

Posted jun 02 2009, 05:52 p.m. by Stefan Steinegger

Comments

Fred Morrison wrote re: Documentation Project Launch
on 06-03-2009 13:50

In addition to Reference type documentation I would like to suggest a "NHibernate Cookbook" type of documentation.  That style of documentation would be patterned after "C# 3.0 Cookbook" (O'Reilly books) in which a single "recipe" is discussed in one or two pages with a "Problem", "Solution" (including code), "Discussion" and "See Also".  Each recipe takes only 2-3 pages total.

Jon wrote re: Documentation Project Launch
on 06-23-2009 2:21

I'd like to know what happened to the API docs? i.e the ones that integrate into Visual Studio Help. Have they been discontinued? It really makes you wonder about this project under it's new leadership when the documentation is missing.

Stefan Steinegger wrote re: Documentation Project Launch
on 06-23-2009 3:38

I aim to a printable documentation. API docs are usually not in a printable form. Of course it would also be nice to have it online somewhere. You're welcome to contribute, then you don't need to wonder about this project anymore :-)

Jon wrote re: Documentation Project Launch
on 06-23-2009 18:00

Don't you already have a script for generating the Visual Studio docs? I'm sure I'm not the only one that found that documentation useful. So, you're saying that at present there are no API docs?

Stefan Steinegger wrote re: Documentation Project Launch
on 06-24-2009 3:35

Not sure what you mean. The API docs are distributed with the assemblies as xml files. I use them only within visual studio, these tooltip-style boxes. Afaik, there is no generated html around. But I might be wrong.

Jon wrote re: Documentation Project Launch
on 06-24-2009 16:00

There used to be a .chm file and an installer that would integrate the API documentation with Visual Studio 2008's help viewer. It was nice because it was fully integrated and looked like Microsoft's normal documentation. I think Dynamic Help would work with it also.

Stefan Steinegger wrote re: Documentation Project Launch
on 06-25-2009 9:29

Ah, now I understand what you mean. It's a long time since I used an installer of NHibernate :-)

This actually doesn't have to do much with the manual, since there are different people writing it and different tools to create it and finally a different release time.

Honestly, I have enough work to do on the manual and will not care about API docs in the near future. It's actually just about applying the right tools, but I don't know these tools.

Powered by Community Server (Commercial Edition), by Telligent Systems