lrs-lang / doc Goto Github PK
View Code? Open in Web Editor NEWThe lrs documentation generator
The lrs documentation generator
Consider the following code from lrs:
create_flags! {
#[doc = "Return an error instead of blocking.\n"]
#[doc = "= See also"]
#[doc = "* link:man:tee(2) and SPLICE_F_NONBLOCK therein"]
flag TEE_DONT_BLOCK = SPLICE_F_NONBLOCK;
}
We are using #[doc
because using ///
doesn't work properly. If we used the ///
version, the slashes would also show up in the documentation itself and completely mess up our output.
The generator is absolute garbage that is full of copy-pasted code everywhere.
The rustdoc performance in json mode is abysmal. If I recall correctly, rustdoc takes 6 seconds to generate the lrs json.
Luckily, there is one simple trick that can be applied to rustdoc to get this number down to 0.5 seconds (iirc). We should upstream this change at some point.
i8
, &[T]
, etc. should be link to something.
I think this is a language bug. Two things should never have the same name at the same level.
Gonna have to use javascript for that. RIP links support.
Currently, lrs is hardcoded in some places.
Sometimes we see the following:
fn f() -> ()
This shouldn't happen.
In particular, Vec<T, Heap>
is always shown as Vec<T, Libc>
which is absolutely wrong. Furthermore, their documentation is not even stored anywhere in the rlib.
In particular, we can't see which types implement a given trait.
mem::cast
is currently documented as mem::transmute
.
Currently, Result
is written as
Result<(), Errno>
Those default arguments should never be shown. This includes the following case:
Result<T, Errno>
which should be written like this:
Result<T>
In particular, there is an empty Receiver
column. They should get their own section.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.