Skip to content

Commit 97da567

Browse files
authored
docs: update images and contributing guidelines (#180)
* docs: update images and contributing guidelines * lint * fix alignment
1 parent 314272e commit 97da567

File tree

5 files changed

+36
-61
lines changed

5 files changed

+36
-61
lines changed

CONTRIBUTING.md

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
11
## How to contribute
22

3-
Thank you for considering contributing to htmldate!
43

5-
Here are some important resources:
4+
If you value this software or depend on it for your product,
5+
consider sponsoring it and contributing to its codebase.
6+
Your support will help ensure the sustainability and growth of the project.
67

7-
- [List of currently open issues](https://github.com/adbar/htmldate/issues) (no pretention to exhaustivity!)
8-
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
8+
There are many ways to contribute:
99

10-
There are many ways to contribute, you could:
10+
* Sponsor the project: Show your appreciation [on GitHub](https://github.com/sponsors/adbar) or [ko-fi.com](https://ko-fi.com/adbarbaresi)
11+
* Find bugs and submit bug reports: Help making Htmldate an even more robust tool
12+
* Write code: Fix bugs or add new features by writing [pull requests](https://docs.github.com/en/pull-requests) with a list of what you have done
1113

12-
- Improve the documentation
13-
- Find bugs and submit bug reports
14-
- Submit feature requests
15-
- Write tutorials or blog posts
16-
- Write code
14+
A special thanks to the [contributors](https://github.com/adbar/htmldate/graphs/contributors) who have played a part in Htmldate.
1715

18-
## Installing and Running Pre-commit
1916

20-
### Introduction
17+
## Testing and evaluating the code
2118

22-
Pre-commit is a tool that helps maintain a consistent code style and quality in our project by running a set of hooks before each commit. These hooks perform checks such as code formatting, linting, and ensuring compliance with project-specific guidelines.
2319

24-
### Installation and Running
20+
Here is how you can run the tests and code quality checks.
21+
Pull requests will only be accepted if the changes are tested
22+
and if there are no errors.
2523

26-
To install and set up pre-commit in your development environment, follow these steps:
24+
1. Install the necessary packages with `pip install htmldate[dev]`
25+
2. Run the tests and code quality tools:
26+
- Tests with `pytest`
27+
- Type checking with `mypy` on the directory: `mypy htmldate/`
28+
- Code formatting with `black` on the directory as well
29+
- Optional: install `pre-commit` to use the corresponding commit hooks
2730

28-
1. Run `pip install pre-commit` to your terminal to install pre-commit using pip.
29-
2. Navigate to your project directory and run `pre-commit install` to initialize pre-commit hooks.
30-
3. Run it manually on your changes using `git ls-files -- 'htmldate/*.py' | xargs pre-commit run --files`
3131

32-
## Submitting changes
33-
34-
Please send a [GitHub Pull Request to htmldate](https://github.com/adbar/htmldate/pull/new/master) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)).
35-
36-
**Working on your first Pull Request?** You can learn how from this series: [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
37-
38-
For further questions you can contact me on [GitHub issues](https://github.com/adbar/htmldate/issues), [Twitter](https://twitter.com/adbarbaresi) or by [E-Mail](http://adrien.barbaresi.eu/contact.html)
32+
For further questions you can use [GitHub issues](https://github.com/adbar/htmldate/issues) or [E-Mail](https://adrien.barbaresi.eu/).
3933

4034
Thanks,
4135

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<br/>
1111

12-
<img src="https://raw.githubusercontent.com/adbar/htmldate/master/docs/htmldate-logo.png" alt="Logo as PNG image" width="60%"/>
12+
<img src="https://raw.githubusercontent.com/adbar/htmldate/master/docs/htmldate-logo.png" alt="Htmldate Logo" align="center" width="60%"/>
1313

1414
<br/>
1515

@@ -27,7 +27,7 @@ The package is used in production on millions of documents and integrated into
2727

2828
<br/>
2929

30-
<img src="https://raw.githubusercontent.com/adbar/htmldate/master/docs/htmldate-demo.gif" alt="Demo as GIF image" width="80%"/>
30+
<img src="https://raw.githubusercontent.com/adbar/htmldate/master/docs/htmldate-demo.gif" alt="Demo as GIF image" align="center" width="80%"/>
3131

3232
<br/>
3333

@@ -116,17 +116,18 @@ license](https://www.apache.org/licenses/LICENSE-2.0.html).
116116

117117
Versions prior to v1.8.0 are under GPLv3+ license.
118118

119-
## Context
119+
## Context and contributions
120120

121121
Initially launched to create text databases for research purposes
122122
at the Berlin-Brandenburg Academy of Sciences (DWDS and ZDL units),
123123
this project continues to be maintained but its future development
124124
depends on community support.
125125

126126
**If you value this software or depend on it for your product, consider
127-
sponsoring it and contributing to its codebase**. Your support will
128-
help maintain and enhance this popular package, ensuring its growth,
129-
robustness, and accessibility for developers and users around the world.
127+
sponsoring it and contributing to its codebase**. Your support
128+
will help maintain and enhance this package.
129+
Visit the [Contributing page](https://github.com/adbar/htmldate/blob/master/CONTRIBUTING.md)
130+
for more information.
130131

131132
Reach out via the software repository or the [contact page](https://adrien.barbaresi.eu/)
132133
for inquiries, collaborations, or feedback.
@@ -161,15 +162,6 @@ for inquiries, collaborations, or feedback.
161162
Proceedings of the [10th Web as Corpus Workshop
162163
(WAC-X)](https://www.sigwac.org.uk/wiki/WAC-X), 2016.
163164

164-
## Contributing
165-
166-
[Contributions](https://github.com/adbar/htmldate/blob/master/CONTRIBUTING.md)
167-
are welcome as well as issues filed on the [dedicated
168-
page](https://github.com/adbar/htmldate/issues).
169-
170-
Special thanks to the
171-
[contributors](https://github.com/adbar/htmldate/graphs/contributors)
172-
who have submitted features and bugfixes!
173165

174166
## Acknowledgements
175167

docs/htmldate-demo.gif

-9.87 KB
Loading

docs/htmldate-logo.png

-1.57 KB
Loading

docs/index.rst

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
htmldate: find the publication date of web pages
1+
Htmldate: Find the Publication Date of Web Pages
22
================================================
33

44
.. image:: https://img.shields.io/pypi/v/htmldate.svg
@@ -28,7 +28,7 @@ htmldate: find the publication date of web pages
2828
|
2929
3030
.. image:: htmldate-logo.png
31-
:alt: Logo as PNG image
31+
:alt: Htmldate Logo
3232
:align: center
3333
:width: 60%
3434

@@ -52,7 +52,7 @@ In a nutshell
5252
.. image:: htmldate-demo.gif
5353
:alt: Demo as GIF image
5454
:align: center
55-
:width: 95%
55+
:width: 80%
5656
:target: https://htmldate.readthedocs.org/
5757

5858
|
@@ -253,18 +253,20 @@ This package is distributed under the `Apache 2.0 license <https://www.apache.or
253253
Versions prior to v1.8.0 are under GPLv3+ license.
254254

255255

256-
Context
257-
-------
256+
Context and contributions
257+
-------------------------
258258

259259
Initially launched to create text databases for research purposes
260260
at the Berlin-Brandenburg Academy of Sciences (DWDS and ZDL units),
261261
this project continues to be maintained but its future development
262262
depends on community support.
263263

264264
**If you value this software or depend on it for your product, consider
265-
sponsoring it and contributing to its codebase**. Your support will
266-
help maintain and enhance this popular package, ensuring its growth,
267-
robustness, and accessibility for developers and users around the world.
265+
sponsoring it and contributing to its codebase**. Your support
266+
`on GitHub <https://github.com/sponsors/adbar>`_ or `ko-fi.com <https://ko-fi.com/adbarbaresi>`_
267+
will help maintain and enhance this package.
268+
Visit the `Contributing page <https://github.com/adbar/htmldate/blob/master/CONTRIBUTING.md>`_
269+
for more information.
268270

269271
Reach out via the software repository or the `contact page
270272
<https://adrien.barbaresi.eu/>`_ for inquiries, collaborations, or feedback.
@@ -298,19 +300,6 @@ Reach out via the software repository or the `contact page
298300
- Barbaresi, A. "`Efficient construction of metadata-enhanced web corpora <https://hal.archives-ouvertes.fr/hal-01371704v2/document>`_", Proceedings of the `10th Web as Corpus Workshop (WAC-X) <https://www.sigwac.org.uk/wiki/WAC-X>`_, 2016.
299301

300302

301-
Contributing
302-
------------
303-
304-
`Contributions <https://github.com/adbar/htmldate/blob/master/CONTRIBUTING.md>`_ are welcome!
305-
306-
Feel free to file issues on the `dedicated page <https://github.com/adbar/htmldate/issues>`_. Thanks to the `contributors <https://github.com/adbar/htmldate/graphs/contributors>`_ who submitted features and bugfixes!
307-
308-
Kudos to the following software libraries:
309-
310-
- `lxml <http://lxml.de/>`_, `dateparser <https://github.com/scrapinghub/dateparser>`_
311-
- A few patterns are derived from the `python-goose <https://github.com/grangier/python-goose>`_, `metascraper <https://github.com/ianstormtaylor/metascraper>`_, `newspaper <https://github.com/codelucas/newspaper>`_ and `articleDateExtractor <https://github.com/Webhose/article-date-extractor>`_ libraries. This module extends their coverage and robustness significantly.
312-
313-
314303
Going further
315304
-------------
316305

0 commit comments

Comments
 (0)