mastodon icon indicating copy to clipboard operation
mastodon copied to clipboard

Reorganize documentation

Open cbolisetti opened this issue 6 years ago • 6 comments

Currently, when we create a new material (with multiple classes, usually kernel, material classes and an action) we have the documentation for this material spread out in the documentation for all of these classes. We need a better organization.

My idea is as follows. For each new material (or other entity which involves creating multiple classes), we will create two new documentation files apart from the individual documentation for the classes. These two files are for theory (background and the math of the material/other entity) and user (how to use model this material, i.e., what classes to use or what actions to use.) We can then index all the theory doc files and the user doc files into the main theory and user manuals. This way, the theory and user manuals will be updated automatically every time we create a new material.

cbolisetti avatar Aug 22 '18 22:08 cbolisetti

Looking at the current doc structure, I would move the "user" and "theory" folders to the top-level of doc/content. Also, "interfaces" should be moved to the "source" directory. Just my two cents.

May I suggest adding instructions for writing documentation in MASTODON, where this wording is explained and linked against some examples.

aeslaughter avatar Aug 23 '18 13:08 aeslaughter

@aeslaughter, yes both sound good. I will do that.

@sveerara @hoffwm @colejust If you have any suggestions about how the documentation can be improved, please let me know.

cbolisetti avatar Aug 23 '18 16:08 cbolisetti

@cbolisetti, i like both your suggestions and Andrew's suggestions on editing the documentation.

Should a test be added to check whether the theory and user documentation file exists for each .C file?

sveerara avatar Aug 23 '18 16:08 sveerara

@sveerara, yes, I think a test like that would be very helpful. And perhaps generate user and theory stub files with a template too? @aeslaughter how difficult would it be to do this?

cbolisetti avatar Aug 23 '18 23:08 cbolisetti

@sveerara, actually I don't think that would work since we need theory and user manual files for each material or BC, etc., and not each class. Should we check for it manually, if there's no other way?

cbolisetti avatar Aug 24 '18 15:08 cbolisetti

Oh, I din't think about that. Yes, I guess we can just check manually.

sveerara avatar Aug 28 '18 18:08 sveerara