Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7c67215
Bump cross-spawn from 7.0.3 to 7.0.6 in /examples/changelog
dependabot[bot] Jan 29, 2025
73097a9
Bump vite from 5.4.6 to 5.4.14 in /examples/vitepress
dependabot[bot] Jan 29, 2025
a65618e
Custom metadata records are picked up for documentation
cesarParra Feb 4, 2025
0387543
Preventing objects to appear twice in the reference guide
cesarParra Feb 4, 2025
b760ebd
Records describe if they are protected or not
cesarParra Feb 4, 2025
b162278
Custom Metadata rendering tests
cesarParra Feb 4, 2025
411b134
Custom Metadata Type records appear in the changelog
cesarParra Feb 4, 2025
6515faa
Changelog unit tests
cesarParra Feb 4, 2025
3fe9d70
Doc updates
cesarParra Feb 4, 2025
5f9f0fd
Refactorings
cesarParra Feb 4, 2025
98521ab
3.8 Release
cesarParra Feb 4, 2025
68d8c70
Merge pull request #230 from cesarParra/custom-metadata-type-parsing
cesarParra Feb 4, 2025
7a8fe4a
Setting up wireit
cesarParra Feb 6, 2025
7f3cafc
Setting up wireit
cesarParra Feb 6, 2025
5fb5964
Setting up caching for the GH Action
cesarParra Feb 6, 2025
93bce7e
Setting up caching for the GH Action
cesarParra Feb 6, 2025
3e1778d
Merge pull request #231 from cesarParra/wireit-setup
cesarParra Feb 6, 2025
697b79b
Upgrading the Typescript version
cesarParra Feb 6, 2025
772b729
Merge pull request #232 from cesarParra/ts-upgrade
cesarParra Feb 6, 2025
17869ab
Merge pull request #228 from cesarParra/dependabot/npm_and_yarn/examp…
cesarParra Feb 11, 2025
92259e4
Merge pull request #227 from cesarParra/dependabot/npm_and_yarn/examp…
cesarParra Feb 11, 2025
c756c67
Configurable custom object visibility
cesarParra Feb 11, 2025
4869960
Configurable custom object visibility
cesarParra Feb 11, 2025
8ffaa51
Configurable custom object visibility - changelog support
cesarParra Feb 11, 2025
8f5b418
READMe updates
cesarParra Feb 11, 2025
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
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: ["master", "develop"]
branches: [ "master", "develop" ]
pull_request:
branches: ["main", "master", "develop"]
branches: [ "main", "master", "develop" ]
workflow_dispatch:

jobs:
Expand All @@ -17,6 +17,9 @@ jobs:
with:
node-version: "20"
cache: "npm"

# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v2

- run: npm ci
- run: npm run build --if-present
- run: npm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ npm-debug.log
/dist/
/lib/
.sfdx/
.wireit/

# Added by Illuminated Cloud
.localdev/
Expand All @@ -16,4 +17,4 @@ npm-debug.log
target/
/.illuminatedCloud/
**/tsconfig*.json
**/*.tsbuildinfo
**/*.tsbuildinfo
29 changes: 20 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 Expand Up @@ -309,6 +311,15 @@ export default defineMarkdownConfig({
});
```

You can also leverage the `exclude` property to indirectly modify things like custom metadata records you do
not want included in the custom metadata type object documentation.

```typescript
//...
exclude: ['**/*.md-meta.xml']
//...
```

### Excluding Tags from Appearing in the Documentation

Note: Only works for Markdown documentation.
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
6 changes: 3 additions & 3 deletions examples/changelog/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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