|
| 1 | +Welcome to the **Crestal Docs** repository! This documentation hub is designed to guide developers in integrating with Crestal's tools and APIs. |
| 2 | + |
| 3 | +## Getting Started |
| 4 | + |
| 5 | +### Prerequisites |
| 6 | + |
| 7 | +To run this documentation locally, ensure you have the following: |
| 8 | + |
| 9 | +1. **Node.js** - [Download here](https://nodejs.org/en/download/) |
| 10 | +2. **Yarn** - [Install Yarn](https://yarnpkg.com/getting-started/install) |
| 11 | +3. **Mintlify CLI** - Install Mintlify via npm: |
| 12 | + ```bash |
| 13 | + npm install -g mintlify |
| 14 | + ``` |
| 15 | + |
| 16 | +### Local Setup |
| 17 | + |
| 18 | +To set up and run the Crestal Docs locally using Mintlify, follow these steps: |
| 19 | + |
| 20 | +**1. Clone the Repository** |
| 21 | + |
| 22 | +Clone the Crestal Docs repository and navigate to the project directory: |
| 23 | + |
| 24 | +```bash |
| 25 | +git clone https://github.com/crestalnetwork/docs.git |
| 26 | +cd docs |
| 27 | +cd mintlify-docs |
| 28 | +``` |
| 29 | + |
| 30 | +**2. Install Dependencies** |
| 31 | + |
| 32 | +Use Yarn to install the project's dependencies: |
| 33 | + |
| 34 | +```bash |
| 35 | +yarn install |
| 36 | +``` |
| 37 | + |
| 38 | +**4. Run the Mintlify Development Server*** |
| 39 | + |
| 40 | +Use the Mintlify CLI to run the documentation server locally: |
| 41 | + |
| 42 | +```bash |
| 43 | +mintlify dev |
| 44 | +``` |
| 45 | + |
| 46 | +The server will be available at `http://localhost:3000`, where you can view and edit the documentation in real-time. |
| 47 | + |
| 48 | +**5. Build for Production (Optional)** |
| 49 | + |
| 50 | +If you need to generate a production-ready build, use: |
| 51 | + |
| 52 | +```bash |
| 53 | +mintlify build |
| 54 | +``` |
| 55 | + |
| 56 | +This command will create a static output of your documentation in the `dist` folder, ready for deployment. |
| 57 | + |
| 58 | +## Contributing |
| 59 | + |
| 60 | +We welcome contributions! To get started: |
| 61 | + |
| 62 | +1. **Fork the Repo**: Fork `https://github.com/crestalnetwork/docs.git` and clone it locally. |
| 63 | + |
| 64 | +2. **Create a Branch**: Create a new branch for your changes: |
| 65 | +```bash |
| 66 | +git checkout -b feature/your-feature-name |
| 67 | +``` |
| 68 | + |
| 69 | +3. **Make Changes**: Edit the documentation and preview using: |
| 70 | +```bash |
| 71 | +mintlify dev |
| 72 | +``` |
| 73 | + |
| 74 | +4. **Commit and Push**: Commit your changes and push to your fork: |
| 75 | +```bash |
| 76 | +git add . |
| 77 | +git commit -m "Brief description of your changes" |
| 78 | +git push origin feature/your-feature-name |
| 79 | +``` |
| 80 | + |
| 81 | +5. **Open a Pull Request**: Submit a pull request to the main branch of the original repository. |
| 82 | + |
| 83 | +Thanks for contributing! |
| 84 | + |
0 commit comments