Skip to content

Combine rustdoc, prep.js and extract-tests.js #3546

Closed
@brson

Description

@brson

rustdoc needs syntax highlighting and the ability to execute code examples, and it would be nice if all the documentation logic were inside rustdoc (there's a lot of boilerplate in tests.mk to support doc tests).

extract-tests.js we can rewrite in Rust using an integrated driver (instead of using compiletest as we currently do). The parts of prep.js that interpret the little directives embedded in examples can be rewritten in rust. For now, the syntax highlighting scripts can be include!ed in rustdoc and rustdoc can drive the python script. Ultimately, pandoc should handle the syntax highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.P-lowLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions