GitXplorerGitXplorer
U

rd

public
6 stars
1 forks
2 issues

Commits

List of commits on branch main.
Unverified
8d86677a7a4646c82ab55f558b93464717d699a8

Update toolchain to nightly-2024-07-06

UUrgau committed 6 months ago
Unverified
3d25f36dc923adaa0eb90a2ef55f94772193a403

Make not found impl trait not fatal

UUrgau committed 6 months ago
Unverified
b7cae4339856c2aa01e4c7492a5b514b18352464

Update deps - `cargo update`

UUrgau committed 6 months ago
Unverified
de525fb2419e21f468046126d12b217d1f3a7ed3

Update to latest rustdoc-types v0.27

UUrgau committed 6 months ago
Unverified
d51657ad74eedd35990edd4f0f5f89d62d4603ba

Add warning in README about the current brokeness of the project

UUrgau committed 2 years ago
Unverified
05dd0cd9c7bd2597622867271fad1f25d7c9cdc6

Improve CI and upload jsons to check locally

UUrgau committed 2 years ago

README

The README file for this repository.

rd

github license build status

This project is a POC/experimental frontend for the rustdoc json output format to generate html documentation.

⚠️ This project is currently broken for newer rustdoc (>=2023)! ⚠️

Demos

Features

  • [X] Pretty printing of items (methods, structs, traits, ...)
  • [X] Minimal self-contained search engine with index
  • [X] Bootstrap 5 html pages
  • [X] Syntax highlighting of items
  • [X] Navigation between items (even external if available)
  • [X] Improved markdown output (similar to rustdoc)
  • [X] Table of contents (markdown + items)
  • [X] Deprecation notice and attributes filtering
  • [X] cfg and doc printing
  • [X] Themes (currently light and black)
  • [] Generation of the global index.html
  • [] Handling of re-export(s) (Mostly done, but links to them won't work)
  • [ ] Source code inclusion
  • [ ] Options/customization

Usage

rd 0.1.0
Commande-line options

USAGE:
    rd [FLAGS] <FILE>... --output <output>

FLAGS:
    -h, --help       Prints help information
        --open       Open the generated documentation if successful
    -V, --version    Prints version information
    -v, --verbose    Verbose mode (-v, -vv, -vvv, etc.)

OPTIONS:
    -o, --output <output>    Output directory of html files

ARGS:
    <FILE>...    Rustdoc json input file to process

Generating a rustdoc-json output

Generating the json output format currently requires a nightly toolchain.

$ RUSTDOCFLAGS="-Z unstable-options --output-format json" cargo +nightly doc

You should see in the target/doc directory a file called MY_CRATE.json, that's the json rustdoc output. This file will be used by rd to generate the documentation.

Generating the HTML output with rd

$ cargo run -- -v --output html/ --open my_crate.json

License

Licensed under the BSD+Patent license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, shall be licensed under the BSD+Patent license without any additional terms or conditions.