Martini is a coarse-grained force field suited for molecular dynamics simulations of (bio)molecular systems. The Martini Force Field Initiative website serves as a central hub for the Martini community, providing resources, publications, tutorials, and tools to facilitate the use and development of the Martini force field.
We welcome contributions from the community and appreciate your efforts to improve and expand the Martini Force Field Initiative website! This guide provides a step-by-step walkthrough of how to contribute to this website, including setting up your environment, making your changes, and submitting pull requests for review.
- Setting Up Your Environment
- Types of Contributions
- Submitting a Pull Request
- Reviewing and Merging
- Additional Resources
Before you begin contributing, you need to set up your local environment to work with Quarto and this repository.
To build and preview the website locally, you need to install Quarto. Follow the instructions below based on your operating system:
-
Windows:
- Download the
.msi
file from the official website [here]. - Run the installer and follow the prompts.
- Download the
-
macOS:
- Download the
.dmg
file from the official website [here]. - Open the file and drag Quarto to your Applications folder.
- Download the
-
Ubuntu/Debian:
- Download the amd64
.deb
file from the official website [here]. - Complete the installation by running the following command in your terminal:
sudo dpkg -i quarto-*-linux-amd64.deb
- Download the amd64
-
Other Linux Distributions:
- Download the
.tar.gz
file from the official website [here]. - Extract the archive and move the
quarto
binary to a directory in yourPATH
.
- Download the
After installation, verify the installation by running quarto check
in your terminal.
Navigate to this GitHub repository and click on the Fork button in the top-right corner of the page to create your own copy.
Clone your fork to your local workstation using the following commands:
git clone https://github.com/your-username/Martini-Force-Field-Initiative.github.io.git
cd Martini-Force-Field-Initiative.github.io/
There are six main types of contributions you can make to the website:
- Navigate to docs/publications/entry_template.qmd.
- Copy the template file to the appropriate folder by year under
docs/publications/entries/
, and rename it with a unique identifier, e.g.,author-first_word_in_title.qmd
. - Fill in the required fields in the template. The attribute in the headers are self-explanatory, and the content should follow best-practice Markdown syntax.
- Preview the website locally using the following command from the root directory of the repository:
quarto preview --port 4040
- Open your browser and navigate to
http://localhost:4040
to verify that the publication has been integrated as expected in thePublications
section of the website. - Once verified, commit your changes and submit a pull request to this repository to be reviewed by the Martini Developers Team.
- Navigate to docs/announcements/entry_template.qmd.
- Copy the template file to the
docs/announcements/posts/
directory and place it in a new folder with a descriptive name including the date and some keywords in the announcements, e.g.,YYYY-MM-DD-keywords/
. We recommend naming the file inside the folder asindex.qmd
, but you can choose a different name of your preference. - Complete the template with the relevant details for your announcement.
- Preview the website locally using the following command from the root directory of the repository:
quarto preview --port 4040
- Open your browser and navigate to
http://localhost:4040
to verify that the announcement is displayed correctly in theAnnouncements
section of the website. - Once verified, commit your changes and submit a pull request to this repository to be reviewed by the Martini Developers Team.
- Refer to the
index.qmd
file in any of the existing tutorials indocs/tutorials/Martini3/
as reference, e.g., docs/tutorials/Martini3/LipidsI/index.qmd. - Create a new tutorial by following the structure and format used in the examples.
- Place the new tutorial in a dedicated directory under
docs/tutorials/Martini3/
. You can name the directory based on the tutorial topic and application. All the related files (images, data, etc.) should be placed in this directory. - Open the file that keeps track of all the tutorials in
docs/tutorials/Martini3/tutorials.qmd
and add a new entry for your tutorial following the same Markdown syntax as the other entries in the list. - Preview the website locally using the following command from the root directory of the repository:
quarto preview --port 4040
- Open your browser and navigate to
http://localhost:4040
to verify that the tutorial is correctly formatted and functional. - Once verified, commit your changes and submit a pull request to this repository to be reviewed by the Martini Developers Team.
- Include the description of your tool in one of the existing
.qmd
files underdocs/downloads/tools/
. - Current subsections include
Proteins and Bilayers
(proteins-and-bilayers.qmd),Resolution transformation
(resolution-transformation.qmd),Visualization
(visualization.qmd), andOther tools
(other-tools.qmd). - Preview the website locally using the following command from the root directory of the repository:
quarto preview --port 4040
- Open your browser and navigate to
http://localhost:4040
to verify that the tool has integrated seamlessly in theDownloads/Tools/
section of the website. - Once verified, commit your changes and submit a pull request to this repository to be reviewed by the Martini Developers Team.
- Add the description for the new parameters in the appropriate
.qmd
file indocs/downloads/force-field-parameters/martini3/
attending to the molecule type that better fits your case. - Keep your
.itp
parameter files at hand to share them with the Martini Developers Team during the reviewing of your pull request. If approved, the files will be included in the backend martini library to be directly available from the website. - Preview the website locally using the following command from the root directory of the repository:
quarto preview --port 4040
- Open your browser and navigate to
http://localhost:4040
to verify that the description of the parameters is showing correctly in the subsection atDownloads/Force field parameters/Martini 3/
corresponding to the specific molecule type you choose. - Once verified, commit your changes and submit a pull request to this repository to be reviewed by the Martini Developers Team.
We also welcome contributions that improve the overall appearance or functionality of the website. The recommended steps for this type of contribution are as follows:
- Familiarize yourself with the code in this repository.
- Implement your changes.
- Preview the changes in the website locally using the following command from the root directory of the repository:
quarto preview --port 4040
- Test extensively to ensure no existing functionality is broken.
- Submit your enhancements via a pull request to this repository to be reviewed by the Martini Developers Team.
Once your changes are ready you can follow these steps to submit a pull request:
- Commit Your Changes:
git add .
git commit -m "Brief description of your changes"
- Push to Your Fork of the Repository:
git push origin your-branch-name
-
Submit a Pull Request:
i- Go to your own copy of the repository on GitHub.
ii- Click the Contribute button right below the name of your recently pushed branch.
iii- Click on Open pull request and fill in the pull request template with details about your changes.
iv- Submit the pull request.
Your pull request will be reviewed by other users in the Martini Developers Team. We may request/suggest additional changes or approve it directly. Once approved, your changes will be merged into the main branch, and the website will be automatically updated and deployed via a GitHub Action.
For further guidance, please refer to the following:
If you have any questions or need assistance, feel free to open an issue on GitHub or contact the team through our Discussion Board.
Thank you for your interest in contributing to the Martini Force Field Initiative website!:)