Skip to content

Commit 979a32b

Browse files
committed
Fix docs
1 parent 88c0fce commit 979a32b

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858
rev: v1.1.1
5959
hooks:
6060
- id: doc8
61-
args: [docs]
61+
args: [docs, README.md, -e, .rst, -e, .md]
6262

6363
- repo: https://github.com/pre-commit/mirrors-mypy
6464
rev: v1.11.0

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ Installation
2424
[![Code Size](https://img.shields.io/github/languages/code-size/chdemko/pandoc-codeblock-include.svg?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cgo8c3ZnCiAgIGZpbGw9IiMwMDAwMDAiCiAgIHdpZHRoPSI4MDBweCIKICAgaGVpZ2h0PSI4MDBweCIKICAgdmlld0JveD0iMCAwIDI0IDI0IgogICBkYXRhLW5hbWU9IkxheWVyIDEiCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzE0NzYiCiAgIHNvZGlwb2RpOmRvY25hbWU9IndlaWdodC1zdmdyZXBvLWNvbS5zdmciCiAgIGlua3NjYXBlOnZlcnNpb249IjEuMS4yICgwYTAwY2Y1MzM5LCAyMDIyLTAyLTA0KSIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2R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sMTksNFpNOC41Miw0LjM0QTEsMSwwLDAsMSw5LjI3LDRoNS40NmExLDEsMCwwLDEsLjc1LjM0LDEsMSwwLDAsMSwuMjUuNzhsLS41LDRhMSwxLDAsMCwxLTEsLjg4SDEyLjU5bDEuMTQtMi40YTEsMSwwLDAsMC0xLjgtLjg2TDEwLjM3LDEwaC0uNmExLDEsMCwwLDEtMS0uODhsLS41LTRBMSwxLDAsMCwxLDguNTIsNC4zNFpNMjAsMTlhMSwxLDAsMCwxLTEsMUg1YTEsMSwwLDAsMS0xLTFWN0ExLDEsMCwwLDEsNSw2SDYuMzdsLjQyLDMuMzdhMywzLDAsMCwwLDMsMi42M2g0LjQ2YTMsMywwLDAsMCwzLTIuNjNMMTcuNjMsNkgxOWExLDEsMCwwLDEsMSwxWm0tNi0zSDEwYTEsMSwwLDAsMCwwLDJoNGExLDEsMCwwLDAsMC0yWiIKICAgICBpZD0icGF0aDE0NzQiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZiIgLz4KPC9zdmc+Cg==)](http://pandoc-codeblock-include.readthedocs.io/en/latest/)
2525
[![Source Rank](https://img.shields.io/librariesio/sourcerank/pypi/pandoc-codeblock-include.svg?logo=libraries.io&logoColor=white)](https://libraries.io/pypi/pandoc-codeblock-include)
2626

27-
*pandoc-codeblock-include* is a [pandoc] filter for including files in `CodeBlock` elements.
27+
*pandoc-codeblock-include* is a [pandoc] filter for including files in
28+
`CodeBlock` elements.
2829

2930
[pandoc]: http://pandoc.org/
3031

3132
Instructions
3233
------------
3334

34-
*pandoc-codeblock-include* requires [python], a programming language that comes pre-installed on linux and Mac OS X, and which is easily installed [on Windows].
35+
*pandoc-codeblock-include* requires [python], a programming language that
36+
comes pre-installed on linux and Mac OS X, and which is easily installed
37+
[on Windows].
3538

3639
Install *pandoc-codeblock-include* using the bash command
3740

@@ -45,7 +48,9 @@ To upgrade to the most recent release, use
4548
$ pipx upgrade pandoc-codeblock-include
4649
~~~
4750

48-
`pipx` is a script to install and run python applications in isolated environments from the Python Package Index, [PyPI]. It can be installed using instructions given [here](https://pipx.pypa.io/stable/).
51+
`pipx` is a script to install and run python applications in isolated
52+
environments from the Python Package Index, [PyPI]. It can be installed
53+
using instructions given [here](https://pipx.pypa.io/stable/).
4954

5055
[python]: https://www.python.org
5156
[on Windows]: https://www.python.org/downloads/windows
@@ -55,7 +60,8 @@ $ pipx upgrade pandoc-codeblock-include
5560
Getting Help
5661
------------
5762

58-
If you have any difficulties with *pandoc-codeblock-include*, please feel welcome to [file an issue] on github so that we can help.
63+
If you have any difficulties with *pandoc-codeblock-include*, please feel
64+
welcome to [file an issue] on github so that we can help.
5965

6066
[file an issue]: https://github.com/chdemko/pandoc-codeblock-include/issues
6167

docs/usage.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ $ pandoc --filter pandoc-codeblock-include
1010
Explanation
1111
-----------
1212

13-
In the attributes of a `CodeBlock` element, you can specify an file to be included and the start and end lines using attributes:
13+
In the attributes of a `CodeBlock` element, you can specify an file
14+
to be included and the start and end lines using attributes:
15+
1416
* `include` for the path of the included file
1517
* `startFrom` for the first line to include
1618
* `endAt` for the last line to include
1719

1820
Example
1921
-------
2022

21-
Demonstration: Using [pandoc-codeblock-include-sample.txt] as input gives output file in [pdf] (use [lorem] content).
23+
Demonstration: Using [pandoc-codeblock-include-sample.txt] as input gives
24+
output file in [pdf] (use [lorem] content).
2225

2326
[pandoc-codeblock-include-sample.txt]: https://raw.githubusercontent.com/chdemko/pandoc-codeblock-include/develop/docs/images/pandoc-codeblock-include-sample.txt
2427
[lorem]: https://raw.githubusercontent.com/chdemko/pandoc-codeblock-include/develop/docs/images/lorem

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ commands =
2727
poetry run teyit --show-stats --fail-on-change tests/
2828
poetry run ruff check pandoc_codeblock_include
2929
poetry run black --check --diff pandoc_codeblock_include tests
30-
poetry run doc8 -q docs
30+
poetry run doc8 -q docs README.md -e .rst -e .md
3131
poetry run mypy pandoc_codeblock_include
3232
poetry run flake8 pandoc_codeblock_include
3333
commands_post =

0 commit comments

Comments
 (0)