Martini is a coarse-grained force field suited for molecular dynamics simulations of (bio)molecular systems. The Martini Force Field Initiative website, live at cgmartini.nl, 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.
| Path | Contents |
|---|---|
docs/publications/ |
One .qmd per paper, filed by year under entries/ |
docs/announcements/ |
One folder per post under posts/; _metadata.yml is generated |
docs/tutorials/Martini3/ |
One folder per tutorial, listed in tutorials.qmd |
docs/downloads/ |
Tools, force-field parameters, example inputs |
scripts/validate/ |
The contribution validator: schemas, rules, tests |
We welcome contributions from the community and appreciate your efforts to improve and expand the Martini Force Field Initiative website! This guide walks through setting up your environment, making your changes, validating them locally, and submitting a pull request for review.
Everything a contributor needs is a make target. Run make help to list them.
| Command | What it does |
|---|---|
make setup |
Create .venv with the one Python dependency (PyYAML) |
make preview |
Serve the site locally on http://localhost:4040 |
make validate |
Check every contribution against its validation rules |
make lint-itp FILES="…" |
Lint Martini .itp topologies anywhere on disk |
make metadata |
Regenerate the homepage news feed from the announcement posts |
make links |
Also check that external and download links resolve |
make render |
Build the site once into _site/ |
Before you open a pull request, run
make validate. Every contribution type is checked automatically against a declared se of validation rules. See Validating Your Changes for what is checked and how to read a failure.
- Setting Up Your Environment
- Types of Contributions
- Validating Your Changes
- Submitting a Pull Request
- Reviewing and Merging
- Additional Resources
You need Quarto to build and preview the site, and Python 3.9 or newer with PyYAML to run the validator. Nothing else.
Follow the instructions below based on your operating system:
-
Windows:
- Download the
.msifile from the official website [here]. - Run the installer and follow the prompts.
- Download the
-
macOS:
- Download the
.dmgfile from the official website [here]. - Open the file and drag Quarto to your Applications folder.
- Download the
-
Ubuntu/Debian:
- Download the amd64
.debfile 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.gzfile from the official website [here]. - Extract the archive and move the
quartobinary to a directory in yourPATH.
- Download the
After installation, verify it 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/In most cases the validator runs straight away. If you get
ModuleNotFoundError: No module named 'yaml', or if pip install pyyaml
refuses with externally-managed-environment (usual on macOS and recent Linux
distributions), run:
make setup # creates .venv with PyYAML; make picks it up automaticallyOptionally, run the same checks on every commit:
pip install pre-commit && pre-commit installThis is never required, CI will run the validator regardless. It simply surfaces problems before a push rather than after.
There are six main types of contributions you can make to the website. Each one has a matching form under Issues → New issue.
Whichever type you pick, the last three steps are always the same, so they are not repeated below:
- Preview locally with
make previewand open http://localhost:4040 to check that your change appears as expected. - Run
make validateand fix any errors — see Validating Your Changes. - Commit, push, and open a pull request — see Submitting a Pull Request.
- 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 attributes in the header are self-explanatory, and the content should follow best-practice Markdown syntax.
- Verify the entry appears in the
Publicationssection of the local preview.
Categories are the filter tags on the Publications page, so an ad-hoc synonym makes the filter worse for everyone. The validator warns on any term not in scripts/validate/schemas/vocab/publication-categories.yml and suggests the closest existing one. If your paper genuinely needs a new term, add one line to that file in the same pull request. The publications editors will review it along with the entry.
- 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 announcement, 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.
- Run
make metadataand commit the regenerateddocs/announcements/posts/_metadata.yml. This file drives the homepage news feed; CI fails if it does not match the posts. - Verify the announcement is displayed correctly in the
Announcementssection of the local preview.
- Refer to the
index.qmdfile 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,
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. - Verify in the local preview that the tutorial is correctly formatted and reachable from the tutorials page.
- Include the description of your tool in one of the existing
.qmdfiles underdocs/downloads/tools/. - Current subsections for Actively Maintained tools are
Topology/Structure generation(topology-structure-generation.qmd),Multiscaling(multiscaling.qmd), andAnalysis(analysis.qmd). Tools that are no longer maintained live in legacy.qmd. - Verify the tool has integrated seamlessly into the
Downloads/Tools/section of the local preview.
- Add the description for the new parameters in the appropriate
.qmdfile indocs/downloads/force-field-parameters/martini3/, choosing the molecule type that best fits your case. - Share the
.itpfile(s) with the parameters editors. They are not added to this repository — they live in the Martini download library, and the editors publish them there once the parameters are approved. Open the Force-field parameters issue form and give a link to a shared location or a repository where the files can be reviewed, along with the molecule names, Martini version, reference DOI, and what you validated the parameters against. If you are also opening a pull request for the description page, link the issue from it. - Verify the description shows correctly under
Downloads/Force field parameters/Martini 3/in the local preview.
Before sharing the files, lint them — they can be anywhere on disk:
make lint-itp FILES="path/to/martini_MOL.itp"This checks section grammar, atom numbering, bead types against the Martini 3 naming scheme, bonded indices within range, duplicate or self-bonded pairs, pairs given both a bond and a constraint, non-integral net charge, and fragments disconnected from the rest of the molecule.
We also welcome contributions that improve the overall appearance or functionality of the website:
- Familiarize yourself with the code in this repository, see Repository Layout for where things live.
- Implement your changes.
- Test extensively in the local preview to ensure no existing functionality is broken.
make renderbuilds the whole site if you need to check something the preview server does not show.
Whatever you contributed, run the checks before you push:
make validate # check everything
make validate-changed # check only what you changed against main
make preview # serve the site at http://localhost:4040make validate runs exactly what CI runs. Catching a problem here is cheaper
for everyone than catching it in review. If the validator cannot start because
PyYAML is missing, see Set Up the Validator.
Every contribution type has a declared contract:
| Type | Contract |
|---|---|
| Publications | scripts/validate/schemas/publication.yml |
| Announcements | scripts/validate/schemas/announcement.yml |
| Tutorials, tools | structural rules in scripts/validate/rules/structure.py |
| Force-field parameters | the download pages, via the site-wide rules; the .itp files themselves through make lint-itp |
| Site-wide | scripts/validate/rules/site.py |
The schemas are plain YAML on purpose. Adding a field, tightening a format, or extending the list of publication categories is a one-line edit that a maintainer can make without touching Python.
The .itp linter sits outside make validate for a reason: parameter files are
never in this repository, so there is nothing for CI to check. It runs on demand
instead — see scripts/validate/core/itp.py for
what it looks at.
Errors block the merge. Each one corresponds to something that is broken for readers: a page missing from navigation, a download link pointing at a file that is not there, an announcement that would never be emailed.
Warnings do not block. They flag drift worth a human decision — a new publication category, a tutorial not yet listed on the tutorials page, a date in the folder name that disagrees with the date in the post.
Failures appear as annotations on the exact line in the pull-request diff. Every error also carries a suggested fix.
Once your changes are ready and make validate is clean:
-
Commit your changes:
git add . git commit -m "Brief description of your changes"
-
Push to your fork:
git push origin your-branch-name
-
Open the 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, which asks you to confirm you previewed the change and that
make validatereports no errors.iv- Submit the pull request.
Reviewers are requested automatically based on what you touched — publications, announcements, tutorials, tools, and parameters each have their own editors, as set out in .github/CODEOWNERS. Approval from one of the editors for each area you touched is required before the pull request can be merged. We may request or suggest additional changes, or approve directly. Once approved, your changes are merged into main, and the website is re-validated, rebuilt, and deployed automatically by 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!:)