Skip to content
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

Fix documentation for package.readme option. #4644

Merged
merged 1 commit into from
Oct 26, 2017
Merged

Conversation

fa7ca7
Copy link
Contributor

@fa7ca7 fa7ca7 commented Oct 19, 2017

Fix for #4620.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matklad (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@matklad
Copy link
Member

matklad commented Oct 19, 2017

LGTM!

But I am not sure if this has to be updated in both paces :(

@behnam could you explain a bit how this whole mdBook thing works for Cargo docs, and what files should be modified when one wants to update the docs?

@behnam
Copy link
Contributor

behnam commented Oct 25, 2017

Uh, sorry for the delay. Just got to this in the inbox queue.

The diff looks good, as have edited both copies of the doc, which is what we need right now. (Until we drop the non-mdBook copies and kill docs.crates.io.)

@matklad, I've tried to explain the current situation in src/doc/README.md:

NOTE: Cargo documentation is under migration to mdBook-based structure. All the
*.md files here shall be kept in sync with the *.md files under book/src/.
See MIGRATION_MAP file here and #4453
for details.

Do you think there's a need to add more details to the note to help with future patches/reviews?

@matklad
Copy link
Member

matklad commented Oct 26, 2017

@behnam thanks, I'vecomoletelly missed the whole thing, including src/doc/read me!

@bors r+

@bors
Copy link
Contributor

bors commented Oct 26, 2017

📌 Commit 5ccf654 has been approved by matklad

@bors
Copy link
Contributor

bors commented Oct 26, 2017

⌛ Testing commit 5ccf654 with merge b3ba626...

bors added a commit that referenced this pull request Oct 26, 2017
Fix documentation for package.readme option.

Fix for #4620.
@bors
Copy link
Contributor

bors commented Oct 26, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: matklad
Pushing b3ba626 to master...

@bors bors merged commit 5ccf654 into rust-lang:master Oct 26, 2017
@kbknapp
Copy link

kbknapp commented Mar 4, 2018

@dethoter or @matklad

I'm trying to find out about clap-rs/clap#1186 if I have a large README.md and it's listed in the cargo readme = "..." but also listed in the exclude = [...] array, will my readme still get rendered on crates.io?

@behnam
Copy link
Contributor

behnam commented Mar 4, 2018

I don't think so, @kbknapp, because the README.md file won't be in the package submitted to crates.io. So, crates.io will be trying to access your readme file, but would fail.

You should be able to test it by cargo package and then see if the file is included.

Do you think the file assigned by package.readme setting, and similar files like Cargo.toml itself, should be exceptions in exclusion and always included?

/cc @alexcrichton

@sfackler
Copy link
Member

sfackler commented Mar 4, 2018

The easiest thing to do is to symlink the readme into the subdirectory. The readme will be inlined when the crate is packaged.

@ehuss ehuss added this to the 1.23.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants