Skip to content
Draft
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
21 changes: 21 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy Docusaurus
on:
pull_request:
branches: [main]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
- run: npm ci
- run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
node_modules
# Dependencies
/node_modules
yarn.lock

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

46 changes: 26 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
# Mintlify Starter Kit
# Template

Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including
This template is built for [Docusaurus 3](https://docusaurus.io/), a modern static website generator.

- Guide pages
- Navigation
- Customizations
- API Reference pages
- Use of popular components
### Usage

### 👩‍💻 Development
```bash
npx create-docusaurus@3.5.2 my-website --package-manager yarn
```

Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command
> When prompted to select a template choose `Git repository`.

```
npm i -g mintlify
Template Repository URL:

```bash
https://github.com/PaloAltoNetworks/docusaurus-template-openapi-docs.git
```

Run the following command at the root of your documentation (where mint.json is)
> When asked how the template repo should be cloned choose "copy" (unless you know better).

```
mintlify dev
```bash
cd my-website
yarn
```

### 😎 Publishing Changes
### Local Development

Changes will be deployed to production automatically after pushing to the default branch.
```bash
yarn start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

You can also preview changes using PRs, which generates a preview link of the docs.
### Build

#### Troubleshooting
```bash
yarn build
```

- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
- Page loads as a 404 - Make sure you are running in a folder with `mint.json`
This command generates static content into the `build` directory and can be served using any static contents hosting service.
3 changes: 0 additions & 3 deletions _snippets/snippet-example.mdx

This file was deleted.

243 changes: 0 additions & 243 deletions api-reference/endpoint/check.mdx

This file was deleted.

Loading