Skip to content

Commit

Permalink
Documentation for package level comments
Browse files Browse the repository at this point in the history
  • Loading branch information
martindsouza committed Jul 19, 2017
1 parent 5b01f32 commit 803ca5e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/javadoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This document outlines all the JavaDoc options for PL/SQL as well as examples on
- [`@param`](#tag-param)
- [`@private`](#tag-private)
- [`@return`](#tag-return)
- [Package Level Comments](#package-level)s
- [`@constant`](#constants)s
- [`@type`](#types)s

Expand Down Expand Up @@ -266,6 +267,29 @@ p_user_id |
*return* | User first name
```

## Package Level Comments<a name="package-level"</a>
Packages may contain JavaDoc comments as well. The following is an example of package level documentation:

```plsql
/**
* Some package level comments
* Another line
* @author Martin D'Souza
* @created 18-Jul-2017
*/
create or replace package body oos_util_apex
...
```

```markdown
{{#if global}}
## Package Description
{{#if global.author}}Author: {{global.author}} {{/if}}
{{#if global.created}}Created: {{global.created}} {{/if}}
{{{global.description.full}}}
{{/if}}
```

## `@constant`s<a name="constants"></a>

Constants should be placed at the top of the package. There should only be one JavaDoc documentation area for constants. Constants are documented using the `@constant` tag and use the notation: `@constant <constant name> <optional description>`.
Expand Down
5 changes: 5 additions & 0 deletions templates/package.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# {{toUpperCase name}}

{{#if global}}
## Package Description
{{{global.description.full}}}
{{/if}}

{{#if types}}
- [Data Types](#types)
{{/if}}
Expand Down

0 comments on commit 803ca5e

Please sign in to comment.