Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ apexdocs changelog --previousVersionDir force-app-previous --currentVersionDir f
|----------------------------|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|----------|
| `--sourceDir` | `-s` | The directory where the source files are located. | N/A | Yes |
| `--targetDir` | `-t` | The directory where the generated files will be placed. | `docs` | No |
| `--scope` | `-p` | A list of scopes to document. Values should be separated by a space, e.g --scope global public namespaceaccessible. | `global` | No |
| `--scope` | `-p` | A list of scopes to document. Values should be separated by a space, e.g --scope global public namespaceaccessible. | `[global]` | No |
| `--customObjectVisibility` | `-v` | Controls which custom objects are documented. Values should be separated by a space. | `[public]` | No |
| `--defaultGroupName` | N/A | The default group name to use when a group is not specified. | `Miscellaneous` | No |
| `--namespace` | N/A | The package namespace, if any. If provided, it will be added to the generated files. | N/A | No |
| `--sortAlphabetically` | N/A | Sorts files appearing in the Reference Guide alphabetically, as well as the members of a class, interface or enum alphabetically. If false, the members will be displayed in the same order as the code. | `false` | No |
Expand Down Expand Up @@ -184,14 +185,15 @@ apexdocs openapi -s force-app -t docs -n MyNamespace --title "My Custom OpenApi

#### Flags

| Flag | Alias | Description | Default | Required |
|------------------------|-------|--------------------------------------------------------------------|-------------|----------|
| `--previousVersionDir` | `-p` | The directory location of the previous version of the source code. | N/A | Yes |
| `--currentVersionDir` | `-t` | The directory location of the current version of the source code. | N/A | Yes |
| `--targetDir` | `-t` | The directory location where the changelog file will be generated. | `./docs/` | No |
| `--fileName` | N/A | The name of the changelog file to be generated. | `changelog` | No |
| `--scope` | N/A | The list of scope to respect when generating the changelog. | ['global'] | No |
| `--skipIfNoChanges` | N/A | Whether to skip generating the changelog if there are no changes. | `true` | No |
| Flag | Alias | Description | Default | Required |
|----------------------------|-------|--------------------------------------------------------------------------------------|-------------|----------|
| `--previousVersionDir` | `-p` | The directory location of the previous version of the source code. | N/A | Yes |
| `--currentVersionDir` | `-t` | The directory location of the current version of the source code. | N/A | Yes |
| `--targetDir` | `-t` | The directory location where the changelog file will be generated. | `./docs/` | No |
| `--fileName` | N/A | The name of the changelog file to be generated. | `changelog` | No |
| `--scope` | N/A | The list of scope to respect when generating the changelog. | ['global'] | No |
| `--customObjectVisibility` | `-v` | Controls which custom objects are documented. Values should be separated by a space. | ['public'] | No |
| `--skipIfNoChanges` | N/A | Whether to skip generating the changelog if there are no changes. | `true` | No |

#### Sample Usage

Expand Down
8 changes: 6 additions & 2 deletions examples/changelog/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ These members have been added or modified.
- New Method: newMethod
- Removed Method: deprecatedMethod

## New or Removed Fields in Existing Objects
## New or Removed Fields to Custom Objects or Standard Objects

These custom fields have been added or removed.

Expand All @@ -66,4 +66,8 @@ These custom fields have been added or removed.

### Product__c

- New Field: Description__c
- New Field: Description__c

### Contact

- New Field: PhotoUrl__c
3 changes: 3 additions & 0 deletions examples/markdown/docs/custom-objects/Event__c.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Represents an event that people can register for.

---
### End Date
**Required**

**API Name**

Expand All @@ -29,6 +30,7 @@ Represents an event that people can register for.

---
### Location
**Required**

**API Name**

Expand All @@ -40,6 +42,7 @@ Represents an event that people can register for.

---
### Start Date
**Required**

**API Name**

Expand Down
8 changes: 7 additions & 1 deletion examples/markdown/docs/custom-objects/Price_Component__c.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,17 @@ Use this when the Price Component represents a Flat Price. To represent a Percen

---
### Type
**Required**

**API Name**

`ns__Type__c`

**Type**

*Picklist*
*Picklist*

#### Possible values are
* List Price
* Surcharge
* Discount
1 change: 1 addition & 0 deletions examples/markdown/docs/custom-objects/Product__c.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Product that is sold or available for sale.

---
### Event
**Required**

**API Name**

Expand Down
9 changes: 8 additions & 1 deletion examples/markdown/docs/custom-objects/Sales_Order_Line__c.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Represents a line item on a sales order.

## Fields
### Amount
**Required**

**API Name**

Expand All @@ -18,6 +19,7 @@ Represents a line item on a sales order.

---
### Product
**Required**

**API Name**

Expand Down Expand Up @@ -51,11 +53,16 @@ Represents a line item on a sales order.

---
### Type
**Required**

**API Name**

`ns__Type__c`

**Type**

*Picklist*
*Picklist*

#### Possible values are
* Charge
* Discount
Loading