developers:generate_doc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
developers:generate_doc [2017/08/04 06:53] – [Input variables : How to add/modify ?] Xavier Gonze | developers:generate_doc [2019/10/24 00:42] (current) – removed Matteo Giantomassi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== The ABINIT HTML doc ====== | ||
- | |||
- | List of variables, lessons of the tutorial, help files, ABINIT topics, bibliography, | ||
- | |||
- | Usage : <color blue> | ||
- | (No options are allowed at present, except the help ones) | ||
- | |||
- | This script : | ||
- | - Reads information from: (i) a set of YAML files, (ii) a bibtex file, (iii) input files contained in tests/ | ||
- | - Performs some checks. | ||
- | - Establishes intermediate dictionaries and databases. | ||
- | - Expands special strings, of the form %%" | ||
- | - Creates the needed HMTL files (all contained in different subdirectories */ | ||
- | |||
- | The expansion of special strings is documented in [[developers: | ||
- | It can be used in all the YAML files mentioned below. | ||
- | |||
- | ===== Input variables : How to add/modify ? ===== | ||
- | |||
- | Edit the file ~abinit/ | ||
- | |||
- | <color blue> | ||
- | | ||
- | A window should open, and you can fill the requested information ...\\ | ||
- | To add a new variable, click on " | ||
- | |||
- | Note that input variables for the executables other than the main abinit (e.g. anaddb, aim, optic) are | ||
- | denoted " | ||
- | |||
- | After having edited the info related to one input variable (see the infos at [[developers: | ||
- | Then, build the HTML using generate_doc.py. | ||
- | |||
- | ===== Bibliographic reference : how to add/modify ? ===== | ||
- | |||
- | Edit the file ~abinit/ | ||
- | Note that the ID must be of the form " | ||
- | then lower case, then four-digit year). Possibly, a letter might be added in case of ambiguity: e.g. there exists also | ||
- | " | ||
- | Then, build the HTML using generate_doc.py. | ||
- | |||
- | |||
- | ===== Topics : how to add/modify ? ===== | ||
- | |||
- | The topic HTML files are " | ||
- | |||
- | The high-level information is contained in ~abinit/ | ||
- | where NAME is the name of the topic. The first section (" | ||
- | as well as the information on lessons of the tutorial that are relevant for this topic. The " | ||
- | the " | ||
- | |||
- | At variance, the other sections of the topic_NAME.html are created from other sources. The list of input variables that are relevant to this topics is assembled from the information | ||
- | given for these input variables, see [[#input variableshow_to_add_modify|Input variables : how_to_add_modify]], | ||
- | is assembled from the information in each of these input files (see the line " | ||
- | from the references cited in the " | ||
- | |||
- | Note the file default_topic.yml, | ||
- | in the more specific file topic_NAME.yml.\\ | ||
- | |||
- | The list of topics is found in the file ~abinit/ | ||
- | |||
- | Thus, if you want to a modify " | ||
- | |||
- | Then, build the HTML using generate_doc.py. | ||
- | |||
- | ===== Lessons of the tutorial : how to add/modify ? ===== | ||
- | |||
- | The major part of each lesson HTML file comes from ~abinit/ | ||
- | although selected high-level information (name, keyword, author and subtitle) | ||
- | is contained in ~abinit/ | ||
- | that gives a default value for each component of a lesson file that would not have been specified in | ||
- | either lesson_NAME.yml or the specific section of lessons.yml .\\ | ||
- | |||
- | The content of ~abinit/ | ||
- | * an " | ||
- | * or (this is preferred), an " | ||
- | In the latter case, a table of content is automatically generated by generate_doc.py . | ||
- | The latter structure can be seen in lesson_dmft.yml .\\ | ||
- | |||
- | The " | ||
- | Note that the indentation is important in YAML. | ||
- | The " | ||
- | |||
- | In order to add a new lesson, introduce a new section in lessons.yml, | ||
- | ~abinit/ | ||
- | |||
- | Then, build the HTML using generate_doc.py. | ||
- | |||
- | ===== Help files : how to add/modify ? ===== | ||
- | |||
- | The structuration for help files is very similar to the one for the lessons of the tutorial. | ||
- | The major part of comes from ~abinit/ | ||
- | although selected high-level information (name, keyword, author and subtitle) | ||
- | is contained in ~abinit/ | ||
- | |||
- | Do not forget to build the HTML using generate_doc.py. | ||
- | |||
- | |||
- | |||
- | ===== Theory documents : how to add/modify ? ===== | ||
- | |||
- | The structuration for theory documents is very similar to the one for the lessons of the tutorial. | ||
- | The major part of comes from ~abinit/ | ||
- | although selected high-level information (name, keyword, author and subtitle) | ||
- | is contained in ~abinit/ | ||
- | |||
- | Do not forget to build the HTML using generate_doc.py. | ||
- | |||
- | |||
- | |||
developers/generate_doc.1501829584.txt.gz · Last modified: 2017/08/04 06:53 by Xavier Gonze