There are two ways to contribute to our documentation. You can either do it directly from this website or you can clone the repository and run the website locally.
We recommend that you use the first method if you want to make small changes to the documentation. However, if you want to make a bigger change, you can clone the repository and run the website locally.
Directly from this documentation website
You can create a pull request or an issue for any page, directly from this website. This is the easiest way to contribute to our documentation.
There are two icons on the top right corner of each page. The left one is for opening a pull request and the right one is for opening an issue.
Cosine distance of embeddings from initial embeddings as they are being learnt with time.
This is convenient for small changes where you don’t need to clone the repository and run the website locally.
However, if you want to make a bigger change, you can clone the repository and run the website locally by following the instructions below.
Fork the repository to your own GitHub account. This will create a copy of the repository that you can make changes to.
Clone the repository to your local system (replace “YOUR_GITHUB_USERNAME” with your GitHub username)
git clone https://github.com/YOUR_GITHUB_USERNAME/uptrain
cd uptrainto change your current working directory and run the following command to create a new branch:
git checkout -b YOUR_GITHUB_USERNAME/somefeature
- Before you get started, you’ll need to install the dependencies. You can do this by running the following commands:
npm i -g mintlify
- Navigate to the docs folder using
cd docsand run the following command to start the development server:
Now it’s time to make changes! You can add new files, modify existing files, or delete files that are no longer needed and preview them in your browser at http://localhost:3000.
Once you’ve made the changes you want, you’ll need to add them to a commit. You can do this by running the command
git add filenamefor each file name you want to add/update. This will add all changes to the next commit.
Now you’re ready to commit your changes. You’ll need to provide a commit message that briefly describes the changes you’ve made. (replace “Add something” with a brief description of your changes)
git commit -m 'Add something'
- Finally, you’ll need to push your changes to the branch you created in step 3. You can do this by running the command (using
HEADwill prevent you from accidentally pushing to the wrong remote branch. )
git push origin HEAD
- Once your changes are pushed, you can go back to the UpTrain repository on GitHub and make a pull request. This is where you’ll describe your changes and ask for them to be reviewed and merged into the main repository.
Thank you for your interest in contributing to UpTrain! We look forward to reviewing your pull request and incorporating your changes ❤️
Was this page helpful?