Thank you for your interest in contributing to the Awesome Amortized Inference repository! This is a community-driven project, and contributions are always welcome. You can add new resources by simply adding a BibTeX entry to the resources.bib
file.
Information on how to contribute to the backend code can be found at the bottom of this file.
To contribute a new resource, follow these steps:
-
Clone the Repository: Fork this repository and clone it to your local machine.
-
Edit the
resources.bib
File: Add your resource to theresources.bib
file.- Make sure to follow the guidelines below when creating a new BibTeX entry.
-
Create a Pull Request: Once you have added your BibTeX entry, create a pull request so that your contribution can be reviewed and added to the project.
-
Mandatory Fields: Every BibTeX entry must include:
title
: The title of the resource.author
: The list of authors. Use the standard BibTeX format (e.g.,author = {Doe, John and Smith, Jane}
).
-
Awesome Fields: You can add important meta-information for the resource list in the
awesome-
fields:awesome-category
: The category of the paper, choose fromsoftware, method, application, overview
.awesome-tldr
: A short one-sentence summary of the paper (TL;DR = too long, didn't read). Please try to make the TLDR say more than the title. We know it's hard, but it's well worth the effort because it helps others get the gist of a resource.- These fields will not be included in the BibTeX export.
-
Awesome Links: You can add any additional links using fields of the form
awesome-link-<key> = {<value>}
. These fields will create links in theREADME.md
:- For example:
awesome-link-paper = {https://arxiv.org/abs/2302.09125}
will render as[Paper](https://arxiv.org/abs/2302.09125)
. - These fields will not be included in the BibTeX export.
- For example:
-
Other Fields: All other fields, such as
journal
,year
, etc., will be included in the BibTeX export and are optional.
@article{example2023,
title = {An Example Resource},
author = {Doe, John and Smith, Jane},
journal = {Journal of Example Studies},
year = {2023},
awesome-category = {method},
awesome-tldr = {Creating examples for resources significantly increases the quality of contributions.},
awesome-link-paper = {https://arxiv.org/abs/2302.09125},
awesome-link-code = {https://github.com/example/software}
}
In the above example:
- The
title
,author
,journal
, andyear
fields are standard BibTeX fields. - The resource will be categorized in the "Methodological Papers" section and have the TLDR Creating examples for resources significantly increases the quality of contributions.
- The
awesome-link-paper
andawesome-link-software
fields will generate links labeled[Paper]
and[Code]
, respectively, in theREADME.md
.
The README.md
file is automatically generated from the resources.bib
file by a GitHub Action workflow. Do not edit the README.md
file directly, as your changes will be overwritten. Instead, make all changes by editing the resources.bib
file.
Once you have added your BibTeX entry to resources.bib
, follow these steps to submit your contribution:
-
Commit Your Changes: Commit your changes with a clear commit message.
-
Push to Your Fork: Push the changes to your fork of the repository.
-
Create a Pull Request: Go to the original repository on GitHub and create a pull request. Please provide a brief description of the resource you are adding.
If you have any questions or run into any issues, feel free to open an issue in the repository. We're here to help!
Thank you for contributing and helping make this resource more useful for everyone!
If you are interested in contributing to the backend code that generates the README.md
file, you can find the code in the .github/workflows/
directory.
The generation of the README.md
file is handled by a GitHub Action workflow, which in turn calls the Python backend.
Please lint your code with ruff
before submitting a pull request that involves Python code.
We use the static site generator Zola to render the README.md
into a simple website.
The HTML templates reside in website/templates
, the CSS can be found in website/templates/partials/styles.css
.
The website/content
directory is empty, as the README.md
file is automatically copied in the GitHub action we use to build the site.
To build the website locally, first install Zola.
Next, copy the README.md
to website/content/_index.md
.
$ cp README.md website/content/_index.md
Then, add the following frontmatter at the top of website/content/_index.md
:
---
template: index.html
---
You can either do this manually, or (on Linux-based systems) use the following sed
command:
$ sed -i '1i ---\\ntemplate: index.html\\n---\\n' website/content/_index.md
Finally, change into the website
directory and run Zola:
$ cd website
$ zola serve --open