Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 4.54 KB

CONTRIBUTING.md

File metadata and controls

82 lines (51 loc) · 4.54 KB

How to contribute to ts-markdown

ts-markdown uses GitHub flow for project collaboration:

  • Create a branch
  • Make changes
  • Create a pull request
  • Address review comments
  • Merge the pull request
  • Delete the branch

Note:

If you are not a specified collaborator in the project, be sure to fork the repo and then follow the usual GitHub flow guidelines.

Committing Code

  • Open a new GitHub pull request with the changes.
  • Ensure the PR description clearly describes the problem/feature/change and the solution. Include the relevant issue number if applicable.
  • Before submitting, ensure your changes have test coverage and that all unit tests pass.

Creating GitHub Issues

Feel free to create a GitHub issue if

  • 🐞 There's a bug
  • 💡 You have a feature idea
  • 📃 You'd like to propose changes to config, settings, or documentation
  • ❓ You have questions about the code base, and the repository documentation and unit tests are not helping

🐞 Did you find a bug?

  • Ensure the bug was not already reported by searching on GitHub under Issues.

  • If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.

  • If possible, use the relevant bug report templates to create the issue. Simply copy the content of the appropriate template into a Github issue, make the necessary changes to demonstrate the issue, and paste the content into the issue description:

📃 Did you fix whitespace, format code, or make a purely cosmetic patch?

I greatly appreciate any assistance in making ts-markdown look its very best!

Fixing Documentation

Expanding, fixing, or improving documentation is valuable in many ways for the contributor:

  • It's a great way to get to know the code base
  • It provides an opportunity for a contributor to get started in contributing to open source
  • It gives the contributor a sense of ownership and builds momentum for more involved pull requests

Fixing Code Formatting

ts-markdown's code is typically auto-formatted based on prettier config settings. Formatting also occurs upon committing to the repo, ensuring a consistent style.

If you would like to change how the code itself is laid out, we're usually talking about a change to the .prettierrc file. To get started on proposing a change to how the code formats, see:

💡 Do you intend to add a new feature or change an existing one?

To get started with proposing a new feature, check out

If the template doesn't work for your needs, feel free to write your own, providing a description of the feature, reasoning for the feature, and what it should do.

❓ Do you have questions about the source code?

If you have questions about the source code, feel free to post an issue with your question. This project is fairly new, and the author is new to open-source software. The maintainers will make a best effort to answer questions.

Note: We've Got Tests 🔬🧪🥼

Check out the unit tests for ts-markdown. They are in files ending in .test.ts. These tests provide both an example of how to use the code, as well as entrypoints to debug into the source code.

If you are using VS code, check out this Jest extension; it gives the option to debug into the code from any test or test suite with a clickable link.

🙏 Thank You! 🙏

Thanks to all who utilize, contribute to, and report issues for ts-markdown.