You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,23 @@ All Markdown files here are run through [tianon's fork of `markdownfmt`](https:/
12
12
- create a `README-short.txt` (required, 100 char max)
13
13
- create a `content.md` (required)
14
14
- create a `license.md` (required)
15
+
- create a `github-repo` (required)
15
16
- add a `logo.png` (recommended)
16
-
- edit `update.sh` as needed (see below)
17
-
- run `./markdownfmt.sh -l myimage` to verify that the format of your markdown files is compliant with `tianon/markdownfmt`. In case you see any file names, markdownfmt detected some issues, which might result in a failed build during continuous integration.
18
-
- optionally run `./update.sh myimage` to generate `myimage/README.md` for review. **Note:** do not actually commit the `README.md` file; it is automatically generated/committed before being uploaded to DockerHub.
17
+
18
+
Optionally:
19
+
20
+
- run `./update.sh myimage` to generate `myimage/README.md` for your review. **Note:** do not actually commit the `README.md` file; it is automatically generated/committed before being uploaded to Docker Hub.
21
+
- run `./markdownfmt.sh -l myimage` to verify whether format of your markdown files is compliant to `tianon/markdownfmt`. In case you see any file names, markdownfmt detected some issues, which might result in a failed build during continuous integration. run `./markdownfmt.sh -d myimage` to see a diff of changes required to pass.
22
+
23
+
# How do I update an image's docs
24
+
25
+
To update `README.md` for a specific image do not edit `README.md` directly. Please edit `content.md` or another appropriate file within the folder. To see the changes, run `./update.sh myimage` from the repo root, but do not add the `README.md` changes to your pull request. See also `markdownfmt.sh` point [above](#how-do-i-add-a-new-images-docs).
19
26
20
27
# What are all these files?
21
28
22
29
## `update.sh`
23
30
24
-
This is the main script used to generate the `README.md` files for each image. When a new image is added that is not under the `docker-library` namespace on GitHub, a new entry must be added to the `otherRepos` array in this script. Accepted arguments are which image(s) you want to update and no arguments to update all of them.
31
+
This is the main script used to generate the `README.md` files for each image. The generated file is committed along with the files used to generate it (see below on what customizations are available). Accepted arguments are which image(s) you want to update or no arguments to update all of them.
25
32
26
33
## `generate-repo-stub-readme.sh`
27
34
@@ -82,6 +89,14 @@ This file should contain a link to the license for the main software in the imag
82
89
View [license information](http://golang.org/LICENSE) for the software contained in this image.
83
90
```
84
91
92
+
## `<image name>/github-repo`
93
+
94
+
This file should contain the URL to the GitHub repository for the Dockerfiles that become the images. The file should be in a single line ending in a newline with no extraneous whitespace. Only one GitHub repo per image repository is supported. It is used in generating links. Here is an example for `golang`:
95
+
96
+
```text
97
+
https://github.com/docker-library/golang
98
+
```
99
+
85
100
## `<image name>/user-feedback.md`
86
101
87
102
This file is an optional override of the default `user-feedback.md` for those repositories with different issue and contributing policies.
0 commit comments