Welcome to the UOK CS 5th Batch website repository! 🎉 We’re excited to have you contribute and share your personal details through the website.
Follow these guidelines to ensure a smooth contribution process.
Start by forking the repository to your GitHub account.
Clone your forked repository to your local machine:
git clone https://github.com/your-username/batch5.gitGo to the pages/Meet_our_team directory in your project, and create a folder with your name (without spaces). For example, if your name is Peter Parker, the folder name should be Peter_Parker.
Inside this folder, create your MDX files (about.mdx, me.mdx, etc.) and an _meta.js file.
pages/
Meet_our_team/
Peter_Parker/
about.mdx
me.mdx
_meta.js
const meta = {
me: "Peter Parker",
about: "About Me"
}
export default meta;This file will be used to manage the titles of your pages as they appear on the website.
Ensure that your MDX files (about.mdx, me.mdx, etc.) are properly formatted. Use the existing structure and format for consistency.
---
title: "About Me"
description: "Learn more about Peter Parker, a passionate Computer Science student."
---
# About Me
Hi! I'm **Peter**, a 5th batch Computer Science student at the University of Kelaniya. I have a passion for programming and problem-solving, and I enjoy working on web development projects.Go to the pages directory in your project, you'll see _meta.js. Inside of this file, add your folder with your prefered name to display on the website.
pages/
Meet_our_team/
Harry_Potter
Peter_Parker
_meta.js
batch.mdx
const meta = {
batch: "About us",
'---': {
type: "separator",
},
Pawan_Pinsara: "Pawan Pinsara",
Peter_Parker: "Peter Parker", # --> add your name here
}
export default meta;This file will be used to manage the titles of your pages as they appear on the website.
Before submitting your pull request, always run the tests to ensure your MDX files are properly formatted and everything is in order.
To run the tests, use the following command:
npm testpages\about.mdx: no issues found
pages\component\mydoc.mdx: no issues found
pages\index.mdx: no issues found
pages\Peter_Parker\about.mdx: no issues found
pages\Peter_Parker\me.mdx: no issues found
✅ All tests passed successfully!If you're on Windows, you may see the following warning:
'cat' is not recognized as an internal or external command,
operable program or batch file.
This is expected and does not affect the tests. You can ignore this message.
Make sure there are no errors or warnings before proceeding. 🚀
Once you’ve made your changes, commit them to your branch:
git add .
git commit -m "your commit message"Push your changes to your fork:
git push origin your-branch-nameGo to your forked repository on GitHub and create a pull request against the main branch of the UOK-CS-Batch5 organization’s repository.
Provide a detailed description of the changes you've made, including your name and any files you've added.
We expect all contributors to adhere to our Code of Conduct:
- Be respectful to all contributors.
- Communicate in a friendly and professional manner.
- Be open to feedback.
If you have any questions, need clarification, or want to discuss ideas with other contributors, please use the Discussions page in the repository. It’s a great place to collaborate, ask for help, and share ideas.
You can access the discussions page here:
UOK-CS-Batch5 Discussions
If you find any bugs or issues with the website, please report them by opening an issue in the Issues tab.
Thank you for contributing! We appreciate your efforts in building a fantastic portal for the UOK CS 5th Batch! 🎉