-
Notifications
You must be signed in to change notification settings - Fork 62.8k
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
jsoref
wants to merge
3
commits into
github:main
Choose a base branch
from
jsoref:issue-39707
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6
−5
Open
Update README documentation #39720
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: About READMEs | ||
title: Using a repository README file | ||
shortTitle: About READMEs | ||
intro: 'You can add a README file to your repository to tell other people why your project is useful, what they can do with your project, and how they can use it.' | ||
redirect_from: | ||
- /articles/section-links-on-readmes-and-blob-pages | ||
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
For the rendered view of any Markdown file in a repository, including README files, {% data variables.product.github %} will automatically generate a table of contents based on section headings. You can view the table of contents for a README file by clicking the {% octicon "list-unordered" aria-label="Table of Contents" %} menu icon at the top left of the rendered page. | ||
|
||
 | ||
|
||
## Section links in README files and blob pages | ||
## Section links in markdown files and blob pages | ||
|
||
{% data reusables.repositories.section-links %} | ||
|
||
For more detailed information about section links, see [Section links](/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#section-links). | ||
|
||
## Relative links and image paths in README files | ||
## Relative links and image paths in markdown files | ||
|
||
{% data reusables.repositories.relative-links %} | ||
|
||
## Wikis | ||
|
||
A README should contain only the necessary information for developers to get started using and contributing to your project. Longer documentation is best suited for wikis. For more information, see [AUTOTITLE](/communities/documenting-your-project-with-wikis/about-wikis). | ||
A README should only contain information necessary for developers to get started using and contributing to your project. Longer documentation is best suited for wikis. For more information, see [AUTOTITLE](/communities/documenting-your-project-with-wikis/about-wikis). | ||
|
||
## Further reading | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
The second
About READMEs
is actually pretty terrible in this case given the content it "covers" (but doesn't actually cover!):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.
This sentence might not be technically wrong, but I read it as:
.github
directory; ordocs
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:
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
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. 🤷♂️