Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfoxtyler authored Apr 8, 2024
1 parent 9b3f5c8 commit 3801191
Showing 1 changed file with 66 additions and 10 deletions.
76 changes: 66 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,80 @@
# Docs
Self-serve documentation is a critical part of any technical product. Beyond current users, docs are an important evaluation tool for prospective users.

Check notice on line 1 in README.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD041)

[new] First line in a file should be a top-level heading

Check failure on line 1 in README.md

View check run for this annotation

Trunk.io / Trunk Check

prettier

Incorrect formatting, autoformat by running 'trunk fmt'

### Development
# Source Control

Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command
Our docs are maintained in markdown files in this repo. All changes are managed through a code-first release flow.

```
# Hosting

The design and hosting of our site is provided by [Mintlify](https://mintlify.com/). The vast majority of configuration is in code in `mint.json`.

Changes will be deployed to [production](https://docs.hypermode.com) automatically after pushing to the `main` branch.

# Development Environment Setup

The following components are useful when developing locally:

## Mintlify CLI
See live changes as you write and edit.

```bash
npm i -g mintlify
```

Run the following command at the root of your documentation (where mint.json is)
## Vale CLI
Validate alignment of changes with style guide.

```bash
npm i -D @ocular-d/vale-bin
```

## Trunk CLI
Format and lint changes for easy merging.

```bash
npm i -D @trunkio/launcher
```



# Writing

Mintlify includes a [number of components](https://mintlify.com/docs/content/components/accordions) to make it easier to build easy-to-consume documentation.

To spin up a local server, run the following command at the root of the docs repo:

```bash
mintlify dev
```

### Publishing Changes
## Style

Consistency is important in any documentation experience. Beyond Markdown’s opinionated structure, we adhere to a consistent style for Hypermode.

We have adopted [Google’s Developer Documentation Style Guide](https://developers.google.com/style/) as a baseline, with Hypermode-specific terms [stored in a vocabulary file](https://github.com/gohypermode/docs/blob/9b3f5c88a4274c549d65288339a4f7c5a7d6ae2a/styles/config/vocabularies/general/accept.txt).

[Vale](https://vale.sh/) has been implemented in the repo for easy alignment. Vale is implemented within CI/CD, but also executable locally with:

```bash
vale --glob='*.{mdx}' *
```

## Iconography

When icons are required, select from [Font Awesome](https://fontawesome.com/icons)’s catalog for easy rendering with Mintlify.

Changes will be deployed to production automatically after pushing to the `main` branch.
## Formatting and Linting

#### Troubleshooting
Trunk has been implemented for easy formatting and linting across different file types. It is implemented within CI/CD, but also executable locally.

- 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`
To format the repo locally, run:

```bash
trunk fmt
```

To run lint checks, run:

```bash
trunk check # appending --all will run checks beyond changes on the current branch
```

0 comments on commit 3801191

Please # to comment.