The purpose of this script is to generate automatically a markdown for the documentation of an SAP HANA Database project.
Since it's based on the files, one is sure that the documentation reflects the content of the project.
A this stage, "only" the calculated fields are documented. It will generate a markdown with the following structure :
- Subsection : the name of the calculation view
- Subsubsection (h3) : the label of the calculated columns
- list of the name of the column, datatype, and where it is created.
- Replication of the formula typed in the calculationview.
- Subsubsection (h3) : the label of the calculated columns
Exemple:
The text can be either in French (FR) or English (EN).
Requires python 3.10
Clone the repo, open a command prompt and execute this statement:
python make_doc.py "path of the HDB module"
It will scan for all *.hdbcalculationview files in the directory and generate a markdown file at the root of this directory
- List the datasources of the calculationview
- Generate a diagram of the relationships between the entities (tables, synonymes, calculationview) for the project
- Specify where to write the markdown
- Ignore calculationview not in src folder
- Explain how to use this in a pipeline
Please feel free to submit merge requests to enhence the functionnalities