-
Notifications
You must be signed in to change notification settings - Fork 180
Add-ons Pages #638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
IHSten
wants to merge
4
commits into
main
Choose a base branch
from
ian/add-ons
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add-ons Pages #638
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
title: Continuous Improvement | ||
description: "User analytics and checks to improve your documentation" | ||
icon: "circle-check" | ||
--- | ||
|
||
<Info> | ||
This feature is only available for customers on [paid | ||
plans](https://mintlify.com/pricing?ref=docs-ci) and for GitHub. Support for | ||
other platforms is coming soon. Please{" "} | ||
<a href="mailto:[email protected]">contact sales</a> for more information. | ||
</Info> | ||
|
||
To begin, you will need to have followed the steps on the [GitHub](/settings/github) page and have the `Mintlify` GitHub app installed on your repository. | ||
|
||
### Configuration | ||
|
||
You can configure the CI checks enabled for a deployment on the Mintlify dashboard by navigating to the 'Add-Ons' tab. There you can enable or disable the checks you'd like to run. | ||
|
||
When enabling checks, you can choose to run them at a `Warning` or `Blocking` level. | ||
|
||
<Note> | ||
|
||
A `Blocking` level check will provide a failure status if not passed, or changes are suggested.<br/> | ||
|
||
A `Warning` level check will never provide a failure status, even if there is an error or suggestions. | ||
|
||
</Note> | ||
|
||
### When Do They Run? | ||
|
||
CI checks are configured to run on pull requests against your configured deployment branch. | ||
|
||
### Available CI Checks | ||
|
||
#### Broken Links | ||
|
||
Similarly to how the [CLI link checker](/settings/broken-links#broken-links) works on your local machine, the GitHub app will automatically check your docs for broken links. | ||
To see the results of this check, you can visit the GitHub's check results page for a specific commit. | ||
|
||
#### Vale.sh | ||
|
||
[Vale.sh](https://vale.sh/) is an open-source rule-based prose linter which supports a range of document types, including Markdown and MDX. | ||
|
||
Mintlify supports automatically running Vale.sh in a CI check, and displaying the results as a check status. | ||
|
||
##### Configuration | ||
|
||
If you have a `.vale.ini` file in the root the content directory for your deployment, we will automatically use that configuration file. | ||
We will also automatically use any configuration files in your specified `stylesPath`. For security reasons, we are unable to use any paths that reference files using `..` or absolute paths. | ||
|
||
<Tip> | ||
Don't have a Vale.sh config or not sure where to get started? Don't worry, | ||
Mintlify has a default configuration that will automatically be used if one is | ||
not provided. | ||
</Tip> | ||
|
||
##### Packages | ||
|
||
Vale.sh supports a range of [packages](https://vale.sh/docs/keys/packages), which can be used to check for spelling and style errors. | ||
Any packages you include in your repository under the correct `stylesPath` will be automatically installed and used in your Vale.sh configuration. | ||
|
||
For packages not included in your repository, you may specify any packages from the [Vale.sh package registry](https://vale.sh/explorer), and they will automatically be downloaded and used in your Vale.sh configuration. | ||
|
||
<Warning> | ||
Please note that for security reasons, we are unable to support automatically | ||
downloading packages that are not from the [Vale.sh package | ||
registry](https://vale.sh/explorer). | ||
</Warning> | ||
|
||
##### Vale.sh with MDX | ||
|
||
Vale.sh does not natively support MDX, but its author has provided a [custom extension](https://github.com/errata-ai/MDX) to support it. | ||
|
||
If you'd prefer not to use this extension, we recommend the following lines in your `.vale.ini` file: | ||
|
||
```ini | ||
[formats] | ||
mdx = md | ||
|
||
[*.mdx] | ||
CommentDelimiters = {/*, */} | ||
|
||
TokenIgnores = (?sm)((?:import|export) .+?$), \ | ||
(?<!`)(<\w+ ?.+ ?\/>)(?!`), \ | ||
(<[A-Z]\w+>.+?<\/[A-Z]\w+>) | ||
|
||
BlockIgnores = (?sm)^(<\w+\n .*\s\/>)$, \ | ||
(?sm)^({.+.*}) | ||
``` | ||
|
||
To use Vale.sh's in-document comments, use MDX-style comments `{/* ... */}`. | ||
If you use the `CommentDelimiters = {/*, */}` [setting](https://vale.sh/docs/keys/commentdelimiters) in your configuration, Vale.sh will automatically interpret these comments while linting. | ||
This means you can easily use Vale's in-built features, like skipping lines or sections. | ||
|
||
```mdx | ||
{/* vale off */} | ||
|
||
This text will be ignored by Vale | ||
|
||
{/* vale on */} | ||
``` | ||
|
||
If you choose not to use `CommentDelimiters`, but still choose to use Vale.sh's comments, you must wrap any Vale.sh comments in MDX comments `{/* ... */}`. For example: | ||
|
||
```mdx | ||
{/* <!-- vale off --> */} | ||
|
||
This text will be ignored by Vale | ||
|
||
{/* <!-- vale on --> */} | ||
``` | ||
|
||
Please note that these comment tags are not supported within Mintlify components, but can be used anywhere at the base level of a document. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: Feedback | ||
description: 'Allow users to give feedback on your docs' | ||
icon: 'chart-line' | ||
--- | ||
|
||
Mintlify supports a range of [feedback](#feedback) and [analytics tools](/integrations/analytics) to help you improve your documentation. | ||
|
||
Alongside third party integrations, Mintlify maintains features to help you collect feedback and build analytics on your docs. | ||
|
||
### Feedback | ||
You can enable feedback collection on your docs in three ways: | ||
|
||
1. **Thumbs Rating**: Allow users to rate your docs with a thumbs up or down. This is useful for gauging user satisfaction and identifying areas for improvement | ||
2. **Edit Suggestion**: Allow users to suggest edits to your docs. These edits are presented in your version control system (e.g. GitHub) as a pull request. This feature is only available on documentation which uses a public repository | ||
3. **Raise Issues**: Allow users to raise issues with your docs. This is useful for users to report bugs, inconsistencies, or to raise accessibility concerns | ||
|
||
### Analytics | ||
Mintlify automatically collects analytics on your docs to help you understand how users are interacting with your docs. This includes: | ||
|
||
- Any feedback you've chosen to collect | ||
- Unique visitors | ||
- Page views | ||
- Actions taken on page | ||
- Source\(s\) of traffic | ||
- Your most popular pages | ||
- Popular search queries | ||
|
||
These analytics are available in the 'Analytics' tab in your dashboard. | ||
|
||
### Privacy & Compliance | ||
Built-in analytics can be disabled at any time using [data privacy integrations](/integrations/privacy/overview) for compliance purposes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,14 @@ icon: "scan-eye" | |
--- | ||
|
||
<Info> | ||
Preview Deployments are available on the [Growth and Enterprise plans](https://mintlify.com/pricing?ref=preview-deployments). Please{" "} | ||
Preview Deployments are available on the [Growth and Enterprise | ||
plans](https://mintlify.com/pricing?ref=preview-deployments). Please{" "} | ||
<a href="mailto:[email protected]">contact sales</a> for more information. | ||
</Info> | ||
|
||
Preview Deployments allow you to preview changes to your docs in a live deployment without merging those changes to your production branch. | ||
|
||
If you have created a pull or merge request when using Git, the generated preview URL will be available as a comment from the Mintlify bot in the PR. This URL will always reflect the latest deployment changes. | ||
If you have created a pull request (GitHub) or merge request (GitLab) when using Git, the generated preview URL will be available as a comment from the Mintlify bot in the pull or merge request. This URL will always reflect the latest deployment changes. | ||
|
||
## Sharing Preview Deployments | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use a custom SVG in the dashboard for add-ons, which looks kind of like a puzzle piece (and puzzle pieces make sense here)