Skip to content

Commit f66cec7

Browse files
committed
Update readme for github-repo files
1 parent 7d6f8b1 commit f66cec7

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Diff for: README.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,23 @@ All Markdown files here are run through [tianon's fork of `markdownfmt`](https:/
1212
- create a `README-short.txt` (required, 100 char max)
1313
- create a `content.md` (required)
1414
- create a `license.md` (required)
15+
- create a `github-repo` (required)
1516
- 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).
1926

2027
# What are all these files?
2128

2229
## `update.sh`
2330

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.
2532

2633
## `generate-repo-stub-readme.sh`
2734

@@ -82,6 +89,14 @@ This file should contain a link to the license for the main software in the imag
8289
View [license information](http://golang.org/LICENSE) for the software contained in this image.
8390
```
8491

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+
85100
## `<image name>/user-feedback.md`
86101

87102
This file is an optional override of the default `user-feedback.md` for those repositories with different issue and contributing policies.

0 commit comments

Comments
 (0)