Skip to content

Commit 11ee7f5

Browse files
authored
docs: Migrate docs to starlight (#16)
1 parent 75bf047 commit 11ee7f5

File tree

75 files changed

+12415
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+12415
-39
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v5
23+
- name: Install, build, and upload site
24+
uses: withastro/action@v5
25+
26+
deploy:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
steps:
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
.DS_Store
1+
.DS_Store
2+
node_modules/
3+
dist/
4+
.astro/

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
# Mintlify Starter Kit
1+
# Minish Docs
22

3-
Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including
3+
This repository contains the Minish documentation site, built with Astro and Starlight.
44

5-
- Guide pages
6-
- Navigation
7-
- Customizations
8-
- API Reference pages
9-
- Use of popular components
5+
## Development
106

11-
### Development
7+
Install dependencies:
128

13-
Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command
14-
15-
```
16-
npm i -g mintlify
9+
```bash
10+
npm install
1711
```
1812

19-
Run the following command at the root of your documentation (where docs.json is)
13+
Start the local development server:
2014

15+
```bash
16+
npm run dev
2117
```
22-
mintlify dev
18+
19+
Build the site:
20+
21+
```bash
22+
npm run build
2323
```
2424

25-
### Publishing Changes
25+
Preview the production build locally:
2626

27-
Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
27+
```bash
28+
npm run preview
29+
```
2830

29-
#### Troubleshooting
31+
## Deployment
3032

31-
- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
32-
- Page loads as a 404 - Make sure you are running in a folder with `docs.json`
33+
The site is deployed with GitHub Pages via GitHub Actions on pushes to `main`.

astro.config.mjs

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
import { defineConfig } from 'astro/config';
2+
import starlight from '@astrojs/starlight';
3+
import starlightBlog from 'starlight-blog';
4+
import remarkMath from 'remark-math';
5+
import rehypeKatex from 'rehype-katex';
6+
7+
export default defineConfig({
8+
site: 'https://minish.ai',
9+
redirects: {
10+
'/packages': '/packages/overview/',
11+
},
12+
integrations: [
13+
starlight({
14+
title: 'Minish',
15+
components: {
16+
Header: './src/components/Header.astro',
17+
},
18+
description: 'Fast open-source NLP models and packages',
19+
logo: {
20+
light: '/logo/minish_logo_lighter.png',
21+
dark: '/logo/minish_logo_lighter.png',
22+
replacesTitle: false,
23+
},
24+
favicon: '/logo/minish_logo.png',
25+
customCss: ['./src/styles/custom.css'],
26+
social: [
27+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/minishlab' },
28+
{ icon: 'linkedin', label: 'LinkedIn', href: 'https://linkedin.com/company/minish-lab' },
29+
{ icon: 'x.com', label: 'X', href: 'https://x.com/minishlab' },
30+
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/4BDPR5nmtK' },
31+
],
32+
plugins: [
33+
starlightBlog({
34+
title: 'Blog',
35+
authors: {
36+
minish: { name: 'Minish Lab', url: 'https://minish.ai' },
37+
},
38+
}),
39+
],
40+
sidebar: [
41+
{
42+
label: 'Packages',
43+
items: [
44+
{ label: 'Overview', link: '/packages/overview/' },
45+
{
46+
label: 'Model2Vec',
47+
items: [
48+
{ label: 'Introduction', link: '/packages/model2vec/introduction/' },
49+
{ label: 'Installation', link: '/packages/model2vec/installation/' },
50+
{ label: 'Inference', link: '/packages/model2vec/inference/' },
51+
{ label: 'Distillation', link: '/packages/model2vec/distillation/' },
52+
{ label: 'Training', link: '/packages/model2vec/training/' },
53+
{ label: 'Models', link: '/packages/model2vec/models/' },
54+
{ label: 'Results', link: '/packages/model2vec/results/' },
55+
{ label: 'Integrations', link: '/packages/model2vec/integrations/' },
56+
],
57+
},
58+
{
59+
label: 'SemHash',
60+
items: [
61+
{ label: 'Introduction', link: '/packages/semhash/introduction/' },
62+
{ label: 'Installation', link: '/packages/semhash/installation/' },
63+
{ label: 'Deduplication', link: '/packages/semhash/deduplication/' },
64+
{ label: 'Outlier Filtering', link: '/packages/semhash/outlier-filtering/' },
65+
{ label: 'Representative Sampling', link: '/packages/semhash/representative-sampling/' },
66+
{ label: 'Benchmarks', link: '/packages/semhash/benchmarks/' },
67+
{ label: 'Custom Encoders', link: '/packages/semhash/custom-encoders/' },
68+
],
69+
},
70+
{
71+
label: 'Vicinity',
72+
items: [
73+
{ label: 'Introduction', link: '/packages/vicinity/introduction/' },
74+
{ label: 'Installation', link: '/packages/vicinity/installation/' },
75+
{ label: 'Usage', link: '/packages/vicinity/usage/' },
76+
{ label: 'Supported Backends', link: '/packages/vicinity/supported-backends/' },
77+
],
78+
},
79+
{
80+
label: 'Tokenlearn',
81+
items: [
82+
{ label: 'Usage', link: '/packages/tokenlearn/usage/' },
83+
],
84+
},
85+
{
86+
label: 'Model2Vec-rs',
87+
items: [
88+
{ label: 'Usage', link: '/packages/model2vec-rs/usage/' },
89+
],
90+
},
91+
],
92+
},
93+
],
94+
}),
95+
],
96+
markdown: {
97+
remarkPlugins: [remarkMath],
98+
rehypePlugins: [rehypeKatex],
99+
},
100+
});

favicon.svg

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)