Skip to content

Commit 1bf4229

Browse files
author
tobias-mintlify
committed
Open source documentation components
Additional work is needed to fix the CSS generated
1 parent 7ab3129 commit 1bf4229

24 files changed

+12019
-3
lines changed

.babelrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
"@babel/typescript",
4+
["@babel/react", { "runtime": "automatic" }],
5+
["@babel/env", { "modules": false }]
6+
]
7+
}

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# we are using npm in this project
2+
yarn.lock
3+
4+
# dependencies
5+
/node_modules
6+
/.pnp
7+
.pnp.js
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
/public/feeds/
16+
17+
# production
18+
/build
19+
/dist
20+
21+
# generated files
22+
/public/*
23+
/src/pages/*
24+
!/src/pages/api
25+
/src/pages/api/*.mdx
26+
!/src/pages/*.tsx
27+
!/src/pages/*.ts
28+
/src/config.json
29+
/src/openapi.json
30+
31+
# misc
32+
.DS_Store
33+
34+
# debug
35+
npm-debug.log*
36+
yarn-debug.log*
37+
yarn-error.log*
38+
39+
# local env files
40+
.env
41+
.env.local
42+
.env.development.local
43+
.env.test.local
44+
.env.production.local

.npmignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Storybook Tests
2+
/stories
3+
4+
# Source code (we publish webpack's results not the source code itself)
5+
/src
6+
.babelrc
7+
webpack.config.js
8+
postcss.config.js
9+
tailwind.config.js
10+
tsconfig.json

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Mintlify
3+
Copyright (c) 2022 Mintlify, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+35-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
# components
2-
Reusable library of UI components used in Mintlify websites.
1+
# Mintlify Components
2+
3+
Open-source library of UI components made with React and TailwindCSS. Checkout [Mintlify.com](https://mintlify.com/) to see the components in action.
4+
5+
Mintlify uses Mintlify Components in customers' docs. We encourage you to use them elsewhere on your site!
6+
7+
# Designed for Next.js
8+
9+
The project is designed for use in static side rendering where we don't have access to `document` or `window`. Thus, our webpack config has to use `mini-css-extract-plugin` instead of `style-loader`.
10+
11+
# Documentation
12+
13+
Our [wiki](https://github.com/mintlify/components/wiki) contains most of the library's documentation.
14+
15+
[Mintlify's documentation platform also explains how to use documentation components.](https://www.mintlify.com/components/overview)
16+
17+
# Long Term Vision
18+
19+
The first version of this library only included documentation components. In the long run, Mintlify will include layout components you could use to build an entire site.
20+
21+
## Contributing
22+
23+
All pull requests are welcome. Component files are in the `src` folder.
24+
25+
## Community
26+
27+
Join our Discord community if you have questions or just want to chat:
28+
29+
[![](https://dcbadge.vercel.app/api/server/ACREKdwjG5)](https://discord.gg/ACREKdwjG5)
30+
31+
# License
32+
33+
[MIT](https://tldrlegal.com/license/mit-license)
34+
35+
_Built with 💚 by the Mintlify team._

0 commit comments

Comments
 (0)