To contribute, simply fork this repository and create a new branch for your changes.
- Betim's note: I recommend that you make small changes at a time and make sure you have tested them before pushing them up. This will make sure the site is up and running, without any huge problems!
When contributing to this repository, Please double check that your build doesn't crash by running the command
npm run docs:build
npm run docs:preview
- this way it ensures that you don't cause crashes :}
- Clone the repo using
git clone https://github.com/mobibyte/momonote
in your terminal or command prompt. - Install NodeJS from here if you haven't already installed it.
- Install NPM & VitePress by using these commands in terminal or cmd : bash
sudo apt update && upgrade
sudo apt install nodejs
sudo apt install npm
npm install -g vitepress
- Once all dependencies installed you can run the dev site by
npm run docs:dev
and you can build / preview public site by running
npm run docs:build
npm run docs:preview
- Now you can start editing the site
- You can add folders to the /CTF Notes/ folder
- Create Markdown files to write your notes
- You can link your files inside of index.md in the root (follow the format there)
- You can also link it to the navbar by going to /.vitepress/config.mjs and update the nav bar
- Make sure all the markdown is formatted correctly (use VS Code or similar).
- When working on the website run npm run docs:dev
- when you are done with your changes check that it builds w/ npm run docs:build and also preview it too w/ npm run docs:preview
- Add an index file in the relevant section of the repo if you want it to be searchable by the search bar at the top right
- Use
#
for headers (####
,###
, etc.) instead of underlines. - Make sure you open a pull request once all your changes are done, good git commits are greatly appreciated!
You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? You can help us by submitting an issue on GitHub. Before you create an issue, make sure to search the issue archive -- your issue may have already been addressed!
Please try to create bug reports that are:
- Reproducible. Include steps to reproduce the problem.
- Specific. Include as much detail as possible: which version, what environment, etc.
- Unique. Do not duplicate existing opened issues.
- Scoped to a Single Bug. One bug per report.
Even better: Submit a pull request with a fix or new feature!
- Fork the project
- Create your feature branch (
git checkout -b feat/amazing_feature
) - Commit your changes (
git commit -m 'feat: add amazing_feature'
) CSECNote uses conventional commits, so please follow the specification in your commit messages. - Push to the branch (
git push origin feat/amazing_feature
) - Open a Pull Request