-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Generate clippy-book - Issue #6011 #6779
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @llogiq (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. |
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.
NIT about the dir name for the book: Everything else is named clippy_*
with an underscore. We should apply the same here.
(On a related note: Maybe we should listen to one of our lints, we have for modules/enums/... and apply it to our dir structure and remove the clippy_
prefix from those.)
Cargo.lock
Outdated
@@ -0,0 +1,726 @@ | |||
# This file is automatically @generated by Cargo. |
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.
Don't add a Cargo.lock
index.html
Outdated
@@ -0,0 +1,385 @@ | |||
<!DOCTYPE HTML> |
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.
Do we really need this file in the repo? Isn't this generated by mdbook?
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.
That is the concern that mdbook put .html
file in the same related .md
file directory. That is why I moved .md
files in doc/
to the <book_folder>/src
directory.
Another issue for the README.md
, the index.html
style will not be applied except I did fix manually the css location inside index.html
file.
For the index.html
I have 2 options:
- Copy README to the
<book_folder>/src
directory. So each time README changed, it should be copied to that dir. - Keep it and manually fix the css location inside the `index.html'
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 really don't think, that you have to add any css or html files to get the standard formatting of the book, which we want. If I'm mistaken, please link me to the documentation explaining why a seems-to-be-generated html file is necessary in the repo.
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.
Generating css and html done automatically by mdbook build
. So I did mdbook clean
so the extra (html, css, js) files removed and only main files kept.
☔ The latest upstream changes (presumably #6756) made this pull request unmergeable. Please resolve the merge conflicts. |
Apologize... I didn't get the point |
@bors rust-clippy on dev_book [✘!?] is 📦 v0.1.52 via 🦀 v1.52.0-nightly took 23s
❯ git checkout -f master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
rust-clippy on master [?] is 📦 v0.1.52 via 🦀 v1.52.0-nightly
❯ git pull upstream master
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Then tried rust-clippy on dev_book [?] is 📦 v0.1.52 via 🦀 v1.52.0-nightly
❯ git pull upstream master
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. rust-clippy on master [?] is 📦 v0.1.52 via 🦀 v1.52.0-nightly
❯ git pull upstream dev_book
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. |
@flip1995 suggested we remove the Don't worry about it, it's unrelated to this PR. |
@llogiq |
What is with the "Don't worry about it, it's" file you seem to add? |
3b02343 should be done in a separate PR, if at all. We haven't discussed this, it was just an idea I had, not something anyone has agreed to. (And we should only do this if there is less traffic/fewer open PRs) |
Very thankful for your support and good way of communication. Noted, I will return it back. |
This reverts commit 3b02343.
Very thankful for your respectful cooperation. Now book updated with respect to Authors naming standards but still seeking your feedback which have issue in 'index.html' file in main directory as per link. |
Can you please clean up this PR? There are many generated and unnecessary files pushed. It is almost impossible to review this or give any pointers what to do next. |
There are still some unrelated changes in this PR. Like the As next steps, the book has to be formatted/ordered and a short step-by-step instruction added how to build the book. |
noted |
☔ The latest upstream changes (presumably #6888) made this pull request unmergeable. Please resolve the merge conflicts. |
ping from triage @moaz-mokhtar. Can you have any update on this? |
ping from triage @moaz-mokhtar. According to the triage procedure, I'm closing this because 2 weeks have passed with no activity. If you have more time to work on this, feel free to reopen this. |
Apologize for being late. |
Excuse me I'm not able to reopen it which I don't found any reopen button or link! Should I create a new Pull Request? |
@moaz-mokhtar Thanks, and no worries! I reopened this. |
Conflicts with master resolved. I did copy |
This PR is still missing many things:
Addressing this concerns is probably only possible, if you have some knowledge of how Clippy works internally. Since you're a first-time contributor @moaz-mokhtar, I'm not sure if you can address my concerns just because of the lack of experience. If you have your own concept on how the Clippy Book should look like, feel free to suggest this in this PR and we can work from there to find a common ground. But in the current state someone more experienced with Clippy would have to go over this PR and do the actual hard work of giving the book structure so that it actually improves the documentation situation. |
ping from triage @moaz-mokhtar. Can you have any update on this? |
ping from triage @moaz-mokhtar. According to the triage procedure, I'm closing this because 2 weeks have passed with no activity. If you have more time to work on this, feel free to reopen this. |
Greetings to all,
This is in reference to solve issue #6011 I did pull first edition of book and kindly note below:
mdbook
implementation is calledclippy-book
.doc/
toclippy-book/src
because when it was indoc/
, css files references need to edited in each .html manually.Seeking your feedback.