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.
I made a mess of this last time around. Here is another try, fortunately with lots of hindsight.
Fixes #9504.
Manually deployed to: http://joshrotenberg.com/rust-analyzer/index.html
This is a work in progress. Here are the current steps, with probably more to come.
docs/user/manual.adoc
to markdown.I did this with pandoc using something similar to this blog post. For the static content,
this worked really well.
I used
mdbook init
and then reused my previousbook.toml
andSUMMARY.md
.I moved each section according to the current manual to match the mdbook structure, and in the process fixed some minor issues, restructured headings, brought in the images, lint, etc.
This isn't absolutely necessary but it does consolidate the docs in one place, and since
docs/dev
is already markdown it was easy. I did go through and do some minor linting/markdown style but for the most part theContributing
section of the book is the same asdocs/dev
.This is a big chunk of the work, obviously, and is a fairly atomic step which makes everything above a little bit more difficult: the current manual and the new manual can't really coexist, at least not fully functional (or without some kind of interim conversion).
Just a matter of deciding where the new manual should live (top level manual directory?
docs/user
?docs/manual
?). I've gotdocs/manual
for now.Edit: had to change a path in a source file as well.
Right now the adoc files are handled explicitly in the task:
rust-analyzer/xtask/src/release.rs
Line 49 in 7c8ae35
I'm still a little confused about this, need to dig around again.
- Solve workflow failures.
- Deploy current state on fork.
See http://joshrotenberg.com/rust-analyzer/index.html. Will be updated periodically.
Screenshots
Introduction:
Features:
Assists:
Diagnostics: