Thanks for your interest in contributing. Any feature and improvement from the community to make this project better is always welcome.
If you find any bugs, issues, or have suggestions, please create a new issue and provide detailed information about the problem or feature.
- Fork the repository on GitLab.
- Create a new branch from the
main
branch for your changes. - Make your modifications and ensure that your code follows the coding standards.
- Compile and test your changes thoroughly.
- Submit a pull request to the
main
branch with a clear title and description.
-
Choose your favorite IDE and check that the configuration matches the
.editorconfig
setup to respect the same coding styles.
By default, this project is developed using VScode with the plugins Prettier and SonarLint. -
Get Git if you don't have it in your computer and after installation clone the repository by typing:
git clone https://gitlab.com/idotj/mastodon-embed-timeline.git
-
Install Node.js if you don't have it and then go into the project folder
mastodon-embed-timeline/
and enter:npm i
-
After all the packages are installed, do a check to see that it compiles as expected typing the following script to run a build:
npm run build
-
All set, time to code!
Ensure that your changes do not break existing functionality. If applicable, provide tests for new features or bug fixes.
The example pages located in the folder examples/
can be a good reference to test the changes made.
If you need to emulate a server for your local development/testing, here are some options:
-
Install a static HTTP server via npm:
npm install --global http-server
After installation, run the command:
http-server ./
Now you can open your browser and navigate to any of the HTML examples. For example to open a Local timeline, your default url will be:
http://localhost:8080/examples/local-timeline.html -
Install Docker compose in your computer and run the following command:
docker compose up
Now open your browser and entering the following url you will land in the Local timeline page:
http://localhost:8080/examples/local-timeline.html
All contributions will go through a code review process. Be prepared to address feedback and make necessary changes to your code.
By contributing to this project, you agree that your contributions will be licensed under the GNU Affero General Public License v3.0.