Skip to content

Commit 066fd4a

Browse files
committed
Improve tagging docs: do not show useless imports
1 parent c5da3ed commit 066fd4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/maintaining/tagging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ All the taggers are inherited from `TaggerInterface`:
5252

5353
```{literalinclude} ../../tagging/taggers/tagger_interface.py
5454
:language: py
55-
:lines: 3-
55+
:start-at: class TaggerInterface
5656
```
5757

5858
So, the `tag_value(container)` method gets a docker container as an input and returns a tag.
@@ -61,7 +61,7 @@ So, the `tag_value(container)` method gets a docker container as an input and re
6161

6262
```{literalinclude} ../../tagging/taggers/sha.py
6363
:language: py
64-
:lines: 3-
64+
:start-at: class SHATagger
6565
```
6666

6767
- `taggers/` subdirectory contains all the taggers.
@@ -76,7 +76,7 @@ All the other manifest classes are inherited from `ManifestInterface`:
7676

7777
```{literalinclude} ../../tagging/manifests/manifest_interface.py
7878
:language: py
79-
:lines: 3-
79+
:start-at: class ManifestInterface
8080
```
8181

8282
- The `markdown_piece(container)` method returns a piece of markdown file to be used as a part of the build manifest.
@@ -85,7 +85,7 @@ All the other manifest classes are inherited from `ManifestInterface`:
8585

8686
```{literalinclude} ../../tagging/manifests/apt_packages.py
8787
:language: py
88-
:lines: 3-
88+
:start-at: class AptPackagesManifest
8989
```
9090

9191
- `quoted_output(container, cmd)` simply runs the command inside a container using `DockerRunner.run_simple_command` and wraps it to triple quotes to create a valid markdown piece.

0 commit comments

Comments
 (0)