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

Rustdoc could (have an option to) create a top-level index page #16103

Closed
huonw opened this issue Jul 30, 2014 · 11 comments
Closed

Rustdoc could (have an option to) create a top-level index page #16103

huonw opened this issue Jul 30, 2014 · 11 comments
Assignees
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@huonw
Copy link
Member

huonw commented Jul 30, 2014

Currently rustdoc creates doc/foo/index.html doc/bar/index.html (etc.) for crates foo, bar, along with doc/searchIndex.js. We could provide a way to create a human readable doc/index.html summarising all the crates in a folder (like how the search index works).

This could even take a markdown/html file as input to provide a longer description (theoretically this may allow Rust's current index.md top-level file to be properly integrated into the crate docs, although this may not be desirable, which is why this functionality should be optional).

@steveklabnik
Copy link
Member

👍

@thehydroimpulse
Copy link
Contributor

/cc me

@huonw huonw changed the title Rustdoc could (have an option to) create a top-level crates listing page Rustdoc could (have an option to) create a top-level index page Oct 20, 2014
@huonw
Copy link
Member Author

huonw commented Oct 20, 2014

This could also some try to integrate with any standalone markdown files, e.g. projects might have a tutorial or some specific feature guides just like the main repo.

@steveklabnik
Copy link
Member

Triage: no change. We have been discussing a Cargo feature which would let you build standalone files with Rustdoc, so I'm not sure if maybe that isn't a better approach anyway. Maybe.

@nixpulvis
Copy link

👍

@nixpulvis
Copy link

I'm thinking this could be solved in addition to a way for cargo to build arbitrary docs. For example.

<project>/
    doc/
        index.<ext>
        dir/...
        <filename>.<ext>
    src/
    ...

Here the index.<ext> will be the index page, and other files are served according to the file directory structure.

@frewsxcv
Copy link
Member

We have been discussing a Cargo feature which would let you build standalone files with Rustdoc

Link to the associated issue: rust-lang/cargo#739

@steveklabnik
Copy link
Member

Triage: no change. @rust-lang/rustdoc do we ever plan on implementing this?

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Sep 24, 2018

That is actually a good idea! It's a shame I never came across it earlier. Adding it.

@GuillaumeGomez GuillaumeGomez self-assigned this Sep 24, 2018
@QuietMisdreavus
Copy link
Member

Update: This was implemented in #54543, which is currently being tested by bors.

@GuillaumeGomez
Copy link
Member

And it has been merged so I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

8 participants