Skip to content

Commit 61f9019

Browse files
authored
Update templating text (#28)
* Update language * Include custom style
1 parent 66757df commit 61f9019

File tree

8 files changed

+109
-18
lines changed

8 files changed

+109
-18
lines changed

.github/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# CONTRIBUTING
2+
3+
Thank you for considering contributing! We appreciate your interest in helping us improve our project. By contributing, you agree to abide by our [Code of Conduct](docs/CODE_OF_CONDUCT.md).
4+
5+
Please take a moment to review this document for important information on how to contribute effectively.
6+
7+
## How Can I Contribute?
8+
9+
There are several ways you can contribute to this project:
10+
11+
- **Bug Reports:** If you encounter a bug or unexpected behavior, please open an issue on our GitHub issue tracker. Be sure to include as much detail as possible to help us identify and fix the problem.
12+
13+
- **Feature Requests**: If you have an idea for a new feature or enhancement, please open an issue on our GitHub issue tracker and label it as a "feature request." Describe the feature and its use case in detail.
14+
15+
- **Pull Requests:** If you'd like to contribute code or documentation changes, we encourage you to submit a pull request (PR). Please follow the guidelines outlined in the [Contributing Code](CONTRIBUTING.md) section below.
16+
17+
- **Documentation:** If you find any errors or have suggestions for improving our documentation, you can submit changes directly through a pull request.
18+
19+
- **Community Engagement:** Help answer questions and engage with other users and contributors on our GitHub Discussions (if applicable).
20+
21+
## Contributing Code
22+
23+
If you're contributing code, please follow these guidelines:
24+
25+
1. **Fork the Repository**: Click the "Fork" button on the top-right corner of this repository on GitHub. This will create a copy of the project in your GitHub account.
26+
27+
2. **Create a Branch:** Create a new branch for your feature or bug fix. Use a clear and descriptive name for your branch, like `feature/my-new-feature` or `bugfix/issue-123`.
28+
29+
3. **Make Changes:** Make your code changes and ensure they adhere to our coding standards.
30+
31+
4. **Test:** Ensure that your changes do not break existing functionality and add tests for new features or bug fixes.
32+
33+
5. **Commit and Push:** Commit your changes with a clear and concise commit message. Reference any related issues or pull requests in your commit message. Push your branch to your forked repository on GitHub.
34+
35+
6. **Create a Pull Request:** Open a pull request against the main branch of this repository. Provide a clear description of your changes and reference any relevant issues. Your PR will be reviewed by maintainers.
36+
37+
7. **Review and Iterate:** Expect feedback and be prepared to make additional changes if necessary. We may request changes, and once everything looks good, your PR will be merged.
38+
39+
## Code of Conduct
40+
41+
Please note that we have a [Code of Conduct](docs/CODE_OF_CONDUCT) in place. We expect all contributors to adhere to it, both in interactions within this project and in interactions with other project members.
42+
43+
## Licensing
44+
45+
By contributing to this project, you agree that your contributions will be licensed under the project's [LICENSE](LICENSE).

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
The <span style="color:#3EACAD">template</span> is a standardized, but flexible *project* and *documentation* structure of folders and files for sharing your data science work.
44

5-
Inspired by [literate programming](http://literateprogramming.com) and [Cookiecutter Data Science](https://drivendata.github.io/cookiecutter-data-science/), maintained by the [World Bank Development Data Group](https://www.worldbank.org/en/about/unit/unit-dec#2) and built as [GitHub template repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template), the <span style="color:#3EACAD">template</span> contains:
5+
Inspired by [literate programming](http://literateprogramming.com), maintained by the [Development Data Group](https://www.worldbank.org/en/about/unit/unit-dec/dev) and built as [GitHub template repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template), the <span style="color:#3EACAD">template</span> contains:
66

7-
- **README**, **CODE_OF_CONDUCT**, **CONTRIBUTING** templates
7+
- [**README**](README), [**CODE_OF_CONDUCT**](docs/CODE_OF_CONDUCT.md), [**CONTRIBUTING**](CONTRIBUTING.md) templates
88
> README files are important and often neglected. The files should inform anyone about the first steps to use, learn and contribute to your project.
99
1010
- **LICENSE**

_static/custom.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
root {
2+
--sd-color-primary: #3eacad;
3+
--sd-color-primary-highlight: #df6b00;
4+
--sd-color-secondary: #56c3c4;
5+
--sd-color-secondary-highlight: #f7951d;
6+
}
7+
8+
iframe {
9+
display: block;
10+
border-style: none;
11+
margin: 0 auto;
12+
}
13+
14+
a:hover {
15+
color: #56c3c4;
16+
}
17+
18+
a:visited {
19+
color: #310459;
20+
}
21+
22+
a.headerlink {
23+
color: #3eacad;
24+
}
25+
26+
a.reference.external:hover {
27+
color: #f7951d;
28+
}
29+
30+
a.reference.internal:hover {
31+
color: #3eacad;
32+
}
33+
34+
a.current.reference.internal {
35+
color: #56c3c4;
36+
}
37+
38+
.prev-next-area a p.prev-next-title:hover {
39+
color: #3eacad;
40+
}
41+
42+
.prev-next-area a:visited p.prev-next-title:hover {
43+
color: #56c3c4;
44+
}
45+
46+
#pst-back-to-top {
47+
background-color: #3eacad;
48+
}
File renamed without changes.

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Book settings
22
title:
3-
author: World Bank
3+
author: Development Data Group
44
logo: docs/images/logo.png
55
only_build_toc_files: true
66

@@ -30,7 +30,7 @@ execute:
3030
#######################################################################################
3131
# Bibliography settings
3232
bibtex_bibfiles:
33-
- docs/bibliography.bib
33+
- docs/bibliography.bib
3434

3535
#######################################################################################
3636
# Sphinx settings

docs/_toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ parts:
1212
- caption: Gallery
1313
chapters:
1414
- file: docs/gallery
15+
- caption: Templates
16+
chapters:
17+
- file: docs/CODE_OF_CONDUCT
18+
- file: CONTRIBUTING
1519
- caption: Additional Resources
1620
chapters:
1721
- url: https://datapartnership.org

pyproject.toml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ build-backend = "setuptools.build_meta"
66
name = "datalab"
77
dynamic = ["version"]
88
description = "An Python exampe package from the World Bank Data Lab"
9-
readme = {file = "README.md", content-type = "text/markdown"}
10-
license = {file = "LICENSE"}
11-
keywords = ["world bank", "template", "reproducible research"]
12-
authors = [
13-
{name="World Bank Development Data Group", email="[email protected]"},
14-
]
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
license = { file = "LICENSE" }
11+
keywords = ["template", "reproducible research"]
12+
authors = [{ name = "Development Data Group", email = "[email protected]" }]
1513
maintainers = [
16-
{name="Gabriel Stefanini Vicente", email="[email protected]"},
14+
{ name = "Gabriel Stefanini Vicente", email = "[email protected]" },
1715
]
1816
classifiers = [
19-
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3",
2018
"Programming Language :: Python :: 3.7",
2119
"Programming Language :: Python :: 3.8",
2220
"Programming Language :: Python :: 3.9",
@@ -28,10 +26,7 @@ classifiers = [
2826
"Operating System :: OS Independent",
2927
]
3028
requires-python = ">=3.7"
31-
dependencies = [
32-
"requests>=2.28.1",
33-
"pycountry>=22.3.5",
34-
]
29+
dependencies = ["requests>=2.28.1", "pycountry>=22.3.5"]
3530
[project.optional-dependencies]
3631
notebook = ["notebook>=6.5.2"]
3732

@@ -41,4 +36,4 @@ notebook = ["notebook>=6.5.2"]
4136
"Source" = "https://github.com/worldbank/template"
4237

4338
[tool.setuptools.dynamic]
44-
version = {attr = "datalab.__version__"}
39+
version = { attr = "datalab.__version__" }

0 commit comments

Comments
 (0)