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/18 08:56] – [The ABINIT HTML doc] 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. For equations/ | ||
- | [[http:// | ||
- | to visualize correctly TeX formulas, see also [[developers: | ||
- | |||
- | ===== 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 (add a line "#%% topics = " in the last section of the input file.). The bibliography list is assembled | ||
- | 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 " | ||
- | |||
- | To add a new topic, add the name in list_of_topics.yml, | ||
- | The different components are used by the script generate_doc.py as follows: | ||
- | * name : must be the name of the topics, also used in the name of file (topic_name.yml) | ||
- | * keyword : will be inserted in the HTML header to create the Web name of the HTML page, if the default header is used | ||
- | * authors : will be inserted in the copyright, if the default copyright is used | ||
- | * howto : will be inserted in the subtitle of the Web page "How to ... ?" if the default subtitle is ised | ||
- | * header : the HTML header (usually, take the default, that uses the component " | ||
- | * title : the title that will be echoed in the HTML page | ||
- | * subtitle : the subtitle (usually, take the default, that uses the component " | ||
- | * copyright : the copyright (usually, take the default, that uses the component " | ||
- | * links : list of links to other pages (usually, take the default) | ||
- | * introduction : see above | ||
- | * tutorials : see above | ||
- | * end : final tags, take the default | ||
- | |||
- | 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.1503046619.txt.gz · Last modified: 2017/08/18 08:56 by Xavier Gonze