GitXplorerGitXplorer
U

rd

public
6 stars
1 forks
2 issues

Commits

List of commits on branch main.
Unverified
0ac08286a7fd2adb56223c83f6423c4154bba3d4

Update to latest rustdoc-types v0.20

UUrgau committed 2 years ago
Unverified
4b96bc3852a95729325cc0f7fb12281587354ee4

Update clap, env_logger and open

UUrgau committed 2 years ago
Unverified
c9d00cfdbc9c635747d28bcf88d7055c9e5834e9

Fix wrong ABI name

UUrgau committed 2 years ago
Unverified
3528e4fbb0373b42908585cee901c23d4e4ee6c8

Update rustdoc-types to 0.18 and CI to 2022-10-12

UUrgau committed 2 years ago
Unverified
c8c82b9e256752b301f6e3e021260a608d52511f

Temporarily silence warning in href generation

UUrgau committed 2 years ago
Verified
91e3405ed7a8dfdd89e1e8350a801dfa3c256dd3

README.d: Fix spelling (#3)

jjayvdb 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.