Thank you for wanting to contribute to the PyScript project!
The PyScript Code of Conduct governs the project and everyone participating in it. By participating, you are expected to uphold this code. Please report unacceptable behavior to the maintainers or administrators as described in that document.
Bugs are tracked on the project issues page. Please check if your issue has already been filed by someone else by searching the existing issues before filing a new one. Once your issue is filed, it will be triaged by another contributor or maintainer. If there are questions raised about your issue, please respond promptly.
- Use a clear and descriptive title.
- Describe the specific steps that reproduce the problem with as many details as possible so that someone can verify the issue.
- Describe the behavior you observed, and the behavior you had expected.
- Include screenshots if they help make the issue clear.
If you aren't confident that it is appropriate to submit a security issue using the above process, you can e-mail it to [email protected]
If you have questions about the project, using PyScript, or anything else, please ask in the PyScript forum.
- Clone the repo using
git clone https://github.com/pyscript/pyscript
- cd into the
pyscriptjs
folder using the line below in your terminal (if your terminal is already in pyscript then use cd pyscriptjs instead)
cd pyscript/pyscriptjs
- Install the dependencies with the command below
make setup
NOTE: If make setup
gives a node/npm version required error then go to troubleshooting
- You can also run the examples locally by running the command below in your terminal
make examples
- Run npm run dev to build and run the dev server. This will also watch for changes and rebuild when a file is saved.
npm run dev
NOTE: To access your local build paste http://localhost:8080
into your browser
- When you make changes locally, double check that your contribution follows the PyScript formatting rules by running
npm run lint
. Note that in this case you're looking for the errors, NOT the warnings (Unless the warning is created by a local change). If an error is found by lint you should fix it before creating a pull request
Now that node and npm have both been updated make setup
should work, and you can continue setting up your local environment without problems (hopefully).
To build the documentation locally first make sure you are in the docs
directory.
You'll need make
and conda
installed in your machine. The rest of the environment should be automatically download and created for you once you use the command:
make setup
Use conda activate $environment_name
to activate your environment.
To add new information to the documentation make sure you conform with PyScript's code of conduct and with the general principles of Diataxis. Don't worry about reading too much on it, just do your best to keep your contributions on the correct axis.
Write your documentation files using Markedly Structured Text, which is very similar to vanilla Markdown but with some addons to create the documentation infrastructure.
Once done, initialize a server to check your work:
make livehtml
Visible here: http:///127.0.0.1:8000
If you would like to contribute to PyScript, but you aren't sure where to begin, here are some suggestions.
- Read over the existing documentation. Are there things missing, or could they be clearer? Make some changes/additions to those documents.
- Review the open issues. Are they clear? Can you reproduce them? You can add comments, clarifications, or additions to those issues. If you think you have an idea of how to address the issue, submit a fix!
- Look over the open pull requests. Do you have comments or suggestions for the proposed changes? Add them.
- Check out the examples. Is there a use case that would be good to have sample code for? Create an example for it.
All contributions must be licensed Apache 2.0, and all files must have a copy of the boilerplate license comment (can be copied from an existing file).
To create a change for PyScript, you can follow the process described here.
- Fork a personal copy of the PyScript project.
- Make the changes you would like (don't forget to test them!)
- Please squash all commits for a change into a single commit (this can be done using "git rebase -i"). Do your best to have a well-formed commit message for the change.
- Open a pull request back to the PyScript project and address any comments/questions from the maintainers and other contributors.
This Project welcomes contributions, suggestions, and feedback. All contributions, suggestions, and feedback you submitted are accepted under the Apache 2.0 license. You represent that if you do not own copyright in the code that you have the authority to submit it under the Apache 2.0 license. All feedback, suggestions, or contributions are not confidential.
Contributors are invited to be maintainers of the project by demonstrating good decision making in their contributions, a commitment to the goals of the project, and consistent adherence to the code of conduct. New maintainers are invited by a 3/4 vote of the existing maintainers.
The Project abides by the Organization's trademark policy.
Part of MVG-0.1-beta. Made with love by GitHub. Licensed under the CC-BY 4.0 License.