Documentar um projecto
In application projects, you can document your methods as well as your forms, tables, or fields. Creating documentation is particularly appropriate for projects being developed by multiple programmers and is generally good programming practice. Documentation can contain a description of an element as well as any information necessary to understand how the element functions in the application.
Os seguintes elementos do projeto aceitam documentação:
- Methods (database methods, component methods, project methods, form methods, 4D Mobile methods, triggers, and classes)
- Classes
- Formulários
- Tabela
Your documentation files are written in Markdown syntax (.md files) using any editor that supports Markdown. São armazenados como ficheiros independentes na pasta do seu projeto.
Documentation is displayed in the preview area (right-side panel) of the Explorer:
También se puede exponer parcialmente como consejos del editor de código.
Ficheiros documentação
Nome do ficheiro de documentação
Documentation files have the same name as their attached element, with the ".md" extension. Por ejemplo, el archivo de documentación adjunto al método proyecto myMethod.4dm
se llamará myMethod.md
.
In the Explorer, 4D automatically displays the documentation file with the same name as the selected element (see below).
Arquitetura dos ficheiros de documentação
Todos los archivos de documentación se almacenan en la carpeta Documentación
, situada en el primer nivel de la carpeta Package.
La arquitectura de la carpeta Documentation
es la siguiente:
-
Documentation
Classes
- myClass.md
DatabaseMethods
- onStartup.md
- ...
Formulários
- loginDial.md
- ...
Página Métodos
- myMethod.md
- ...
TableForms
- 1
- input.md
- ...
- ...
- 1
Triggers
- table1.md
- ...
-
A project form and its project form method share the same documentation file for form and method.
-
A table form and its table form method share the same documentation file for form and method.
Renaming or deleting a documented element in your project will also rename or delete the element's associated Markdown file.