Skip to content

Update README documentation #39720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update README documentation #39720

wants to merge 3 commits into from

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Aug 7, 2025

Why:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Aug 7, 2025
Copy link
Contributor

github-actions bot commented Aug 7, 2025

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes.md fpt
ghec
ghes@ 3.17 3.16 3.15 3.14
fpt
ghec
ghes@ 3.17 3.16 3.15 3.14

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@jsoref
Copy link
Contributor Author

jsoref commented Aug 7, 2025

@Sharra-writes are these links supposed to work?

fpt

This adjective-noun-hash-4000.app.github.dev page can’t be found
No webpage was found for the web address: https://adjective-noun-hash-4000.app.github.dev/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes
HTTP ERROR 404

@@ -1,5 +1,6 @@
---
title: About READMEs
title: Repository README file
shortTitle: About READMEs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a hack. @Sharra-writes can fix it more properly at a later date.

This comment was marked as spam.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked through our "about" docs and I've realized that most of them start with a section that's "About thing." I don't love that, I think it's a little pointless, but it seems to be the format. And then I read your issue again and realized you were initially talking about changing the title. What would you think about doing that, using "About the repository README file" as the title, and leaving "About READMEs" as the section title? Alternatively, if you can come up with another/better section title, I would be very in favor of it. I was kicking around things like "Overview of READMEs" or "Purpose of a README," but I'm not sure "overview" is different enough from "about" to justify breaking the format, and the section as currently written doesn't quite fit a "purpose" heading.

In the meantime, I'm pretty sure we changed things recently so that the URL can match the short title instead of having to match the title, but I need to see if there's anything special I have to do to make that work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The about section title is indeed annoying.

And yes, I'm more interested in changing the first title than the second. afaict the shortTitle does let me do what I need to avoid trying to rename things all over.

image

The second About READMEs is actually pretty terrible in this case given the content it "covers" (but doesn't actually cover!):

You can add a README file to a repository to communicate important information about your project. A README, along with a repository license, citation file, contribution guidelines, and a code of conduct, communicates expectations for your project and helps you manage contributions.

Effectively half of the content for the first paragraph in the section has nothing to do with the README file!

I considered:
## Repository Overview

Which might properly cover what's in that paragraph.


If you put your README file in your repository's hidden .github, root, or docs directory, GitHub will recognize and automatically surface your README to repository visitors.

This sentence might not be technically wrong, but I read it as:

  • If you put your README file in your repository's hidden .github directory; or
  • If you put your README file in your repository's hidden root directory; or
  • If you put your README file in your repository's hidden docs directory;
    ...

which isn't what the author was trying to say. I have to endorse your plan to make rewriting this file a project to do very soon.


This paragraph needs a section heading so it can have an anchor:

If you add a README file to the root of a public repository with the same name as your username, that README will automatically appear on your profile page. You can edit your profile README with GitHub Flavored Markdown to create a personalized section on your profile. For more information, see Managing your profile README.


https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes#relative-links-and-image-paths-in-readme-files

Your link text should be on a single line. The example below will not work.

[Contribution
guidelines for this project](docs/CONTRIBUTING.md)

I hope that statement was correct at some point, but regardless, it doesn't appear to be correct today:

https://github.com/check-spelling-sandbox/ideal-eureka-effective-guacamole?tab=readme-ov-file

https://raw.githubusercontent.com/check-spelling-sandbox/ideal-eureka-effective-guacamole/refs/heads/prerelease/README.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually struggling w/ a title for the document.

I considered:

title: About the repository README file

But, I don't think that's really what this document is about.

It's more like "What to put into a repository README file, where to put it, and how it will be seen"

How about:

title: Using a repository README file

That isn't wrong, the document does help you use one. It helps you know where to put it, it helps you know what to put in it, and it helps you understand how others will use/experience it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fwiw, I've reverted me change to the ## About READMEs -- I can't think of any good way to handle that, and the page title is more important/problematic than the first item in it, even though that's clearly a mess. 🤷‍♂️

Copy link

@dm9502055-arch dm9502055-arch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/ghes-releases/lib/enterprise-dates.json

@@ -1,5 +1,6 @@
---
title: About READMEs
title: Repository README file
shortTitle: About READMEs

This comment was marked as spam.

@@ -35,25 +36,25 @@ When your README is viewed on GitHub, any content beyond 500 KiB will be truncat

{% data reusables.profile.profile-readme %}

## Auto-generated table of contents for README files
## Auto-generated table of contents for markdown files
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this page has a ToC that's automatically displayed, I see no reason for the section titles to say README when the section content clearly says "well, actually, any markdown file".

image

@christianmmaduka50-spec
Copy link

christianmmaduka50-spec commented Aug 8, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Do not begin working on this issue until triaged by the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Title implies there are multiple relevant README files, but the content relates to a single README.md file per repository
4 participants