-
Install
mkdocs
:pip install mkdocs
-
Install the
mkdocs-material
theme:pip install mkdocs-material
-
Fork the Repository:
- Go to the repository page on GitHub.
- Click the "Fork" button at the top right of the page.
-
Clone Your Forked Repository:
git clone https://github.com/YOUR_USERNAME/metaiitgn.git cd REPOSITORY_NAME
-
Create a New Branch:
git checkout -b your-branch-name
-
Make Your Changes:
- Refer How to add a webpage heading below this
- Edit the files as needed.
-
Commit Your Changes:
git add . git commit -m "Describe your changes"
-
Push Your Changes to GitHub:
git push origin your-branch-name
-
Create a Pull Request:
- Go to your forked repository on GitHub.
- Click the "Compare & pull request" button.
- Add a title and description for your pull request.
- Click "Create pull request".
-
Prepare for the Next Change:
- Go to your fork on Github, open the
main
branch. Here, click "Sync Fork" - Now, go back to your code editor (eg. VS Code)
- Go to the
main
branch:
git checkout main
- Pull the latest changes:
git pull origin main
- Create a new branch for your next change:
git checkout -b your-next-branch-name
- Go to your fork on Github, open the
- Follow the first 3 steps mentioned above.
- The folder (containing the clone) in a code editor, eg. VS Code
- Open the docs folder
- Create an md file with the appropriate name, eg.
academics_branches.md
- Add your content to this file
- Open the mkdocs.yml file
- Add your page to the list, eg.
Branches: academics_branches.md
-
Serve the documentation locally:
mkdocs serve
-
Open the following link in your browser to preview your website: http://127.0.0.1:8000/