Skip to content

Commit 8d52baa

Browse files
Enabling doc8 stylecheck #29
2 parents 034173a + 5f1574e commit 8d52baa

File tree

6 files changed

+35
-17
lines changed

6 files changed

+35
-17
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
repos:
2-
- repo: https://github.com/sphinx-contrib/sphinx-lint
3-
rev: "v0.9.1"
4-
hooks:
5-
- id: sphinx-lint
2+
- repo: https://github.com/sphinx-contrib/sphinx-lint
3+
rev: "v0.9.1"
4+
hooks:
5+
- id: sphinx-lint
6+
- repo: https://github.com/PyCQA/doc8
7+
rev: v1.1.1
8+
hooks:
9+
- id: doc8
10+
files: ^docs/.*\.rst$

docs/contact.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Contact us
22
==========
33

4-
To get in touch with us, write us an email at `[email protected] <mailto:[email protected]>`__.
4+
To get in touch with us, write us an email at
5+
56

67

docs/dependencies.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Archivematica consists of several projects working together.
1818
- `Storage Service <https://github.com/artefactual/archivematica-storage-service>`__: Responsible for moving files to Archivematica for processing, and from Archivematica into storage
1919
- and the associated `Storage Service Documentation <https://github.com/artefactual/archivematica-storage-service-docs>`__
2020

21-
There are also several smaller repositories that support Archivematica in various ways. In general, you will not need these to develop on Archivematica.
21+
There are also several smaller repositories that support Archivematica in
22+
various ways. In general, you will not need these to develop on Archivematica.
2223

2324
- `AM client <https://github.com/artefactual-labs/amclient>`__ : Archivematica API client module
2425
- `AMmcpc <https://github.com/artefactual-labs/ammcpc>`__ : Archivematica MediaConch policy check wrapper

docs/digipres.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,22 @@ Talks
120120
-----
121121

122122
Many interesting talks on digital preservation have been made
123-
vailable online, such as
124-
this one on the `Learn with Scholars Portal on digital preservation and what it looks like`_,
123+
vailable online, such as this one on the
124+
`Learn with Scholars Portal on digital preservation and what it looks like`_,
125125
and this `video of talk by Trevor Owens on communities and platform`_.
126126

127127
And... many more!
128128
------------------
129129

130-
This list was not meant to be exhaustive - here a few other links as a conclusion:
130+
This list was not meant to be exhaustive - here a few other links as a
131+
conclusion:
131132

132133
- `Unesco’s charter on the preservation of digital heritage`_
133134
- `Sustainability of digital formats`_
134135
- `Levels of digital preservation`_ to help you build or assess a program
135136

136-
If we missed something that was helpful to you on your digital preservation journey, consider `opening an issue to add it`_.
137+
If we missed something that was helpful to you on your digital preservation
138+
journey, consider `opening an issue to add it`_.
137139

138140
.. _`Novice to Know-How: Digital Preservation for Beginners`: https://dpc.getlearnworlds.com/course/novice-to-know-how-beginners
139141
.. _`Digital Preservation Coalition`: https://www.dpconline.org/digipres

docs/i18n.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Internationalization
22
====================
33

4-
One way you can get involved with our projects is through translation and localizations efforts, helping us reach a broader international audience by making meaningful, useful tools for digital preservation.
4+
One way you can get involved with our projects is through translation and
5+
localizations efforts, helping us reach a broader international audience by
6+
making meaningful, useful tools for digital preservation.
57

68
Here are the current efforts we help maintain for each project.
79

@@ -16,25 +18,28 @@ For the AtoM, here is `more information about contributing documentation transla
1618
User interface
1719
______________
1820

19-
In AtoM documentation, there is a `Translate section <https://accesstomemory.org/docs/latest/#translate>`__ on how to translate both database contents and user interface elements in AtoM.
21+
In AtoM documentation, there is a
22+
`Translate section <https://accesstomemory.org/docs/latest/#translate>`__ on
23+
how to translate both database contents and user interface elements in AtoM.
2024

2125
Archivematica
2226
-------------
2327

2428
Documentation
2529
_____________
2630

27-
At the moment speaking, there are some partial translations of Archivematica documentation, but no guidelines to follow for doing one. You will find the `.po files on GitHub <https://github.com/artefactual/archivematica-docs/tree/1.16/locale>`__.
31+
At the moment speaking, there are some partial translations of Archivematica
32+
documentation, but no guidelines to follow for doing one. You will find the
33+
`.po files on GitHub <https://github.com/artefactual/archivematica-docs/tree/1.16/locale>`__.
2834

2935
User interface
3036
______________
3137

32-
We are not currently working on translations for the Archivematica UI, in date of March 2024. You can `access previous documentation for translating the AM user interface <https://archivematica.org/docs/latest/user-manual/translations/translations/>`__.
38+
We are not currently working on translations for the Archivematica UI, in date
39+
of March 2024. You can `access previous documentation for translating the AM user interface <https://archivematica.org/docs/latest/user-manual/translations/translations/>`__.
3340

3441

3542
Enduro
3643
------
3744

3845
There is no current internationalization effort for Enduro.
39-
40-

requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ certifi==2024.7.4
55
cfgv==3.4.0
66
charset-normalizer==3.3.2
77
distlib==0.3.8
8-
docutils==0.21.2
8+
doc8==1.1.1
9+
docutils==0.20.1
910
filelock==3.15.4
1011
furo==2024.8.6
1112
identify==2.6.0
@@ -15,11 +16,13 @@ Jinja2==3.1.4
1516
MarkupSafe==2.1.5
1617
nodeenv==1.9.1
1718
packaging==24.1
19+
pbr==6.0.0
1820
platformdirs==4.2.2
1921
pre-commit==3.8.0
2022
Pygments==2.18.0
2123
PyYAML==6.0.2
2224
requests==2.32.3
25+
restructuredtext-lint==1.4.0
2326
snowballstemmer==2.2.0
2427
soupsieve==2.6
2528
Sphinx==8.0.2
@@ -30,6 +33,7 @@ sphinxcontrib-htmlhelp==2.1.0
3033
sphinxcontrib-jsmath==1.0.1
3134
sphinxcontrib-qthelp==2.0.0
3235
sphinxcontrib-serializinghtml==2.0.0
36+
stevedore==5.3.0
3337
tomli==2.0.1
3438
urllib3==2.2.2
3539
virtualenv==20.26.3

0 commit comments

Comments
 (0)