GithubHelp home page GithubHelp logo

Publish fancy guides/docs about quicli HOT 10 CLOSED

killercup avatar killercup commented on September 28, 2024
Publish fancy guides/docs

from quicli.

Comments (10)

vitiral avatar vitiral commented on September 28, 2024 1

here is the initial release of ergo_fs. Check it out!

from quicli.

vitiral avatar vitiral commented on September 28, 2024

Another idea: this library would be a great addition to use in the cookbook once it's API is nailed down. It could answer all sorts of "how do I do X for a CLI" with an ultra-simple example.

from quicli.

vitiral avatar vitiral commented on September 28, 2024

we could also write examples in an examples/ module which literally only contains //! doc comments containing examples. This way the examples can be displayed offline easily through cargo doc (and the rust testrunner automatically tests them)

from quicli.

killercup avatar killercup commented on September 28, 2024

Yeah, I was thinking of cookbook style examples. I'd rather keep this separate from the Real Rust Cookbook, though, because a) this crate is fresh off the press and nowhere near stable and b) it's way easier to iterate here.

The reason I don't want to write these as doc comments for rustdoc to parse is simple: I need to test that the recipes work in external crates. I didn't even notice #9 until I tried using quicli as a real, external dependency.

Running the recipes as tests should not be a problem. waltz can extract arbitrary files from markdown source (you just have to annotate the file name), and we can trivially add a target like for d in */; { (echo "testing $d"; cd "$d"; ls | cargo test); }.

from quicli.

vitiral avatar vitiral commented on September 28, 2024

Those all sound like good reasons to me! Waltz looks awesome also.

from quicli.

polarathene avatar polarathene commented on September 28, 2024

The reason I don't want to write these as doc comments for rustdoc to parse is simple: I need to test that the recipes work in external crates.

mdbook had a recent release announcement, used for official Rust book and Rust by Example projects. In the reddit thread they mention a related crate for performing tests that can use external crates from crates.io performing tests better than rustdoc. May be of interest to you :)

Some gif animations showing a CLI project would be nice to see too(on this repo README and any docs as small examples of features? There is also an embeddable type of animation specifically for showing of CLI projects ASCIInema that might appeal :)

from quicli.

killercup avatar killercup commented on September 28, 2024

Thanks for the link, @polarathene! I don't think mdbook-test is helpful to me here, though (or maybe I misunderstood it). Have a look at #24 to see what kind of literate programming I want to use for the guides :)

from quicli.

vitiral avatar vitiral commented on September 28, 2024

@alexcrichton sorry that I accidentally sent you an invite to ergo! Know that you are totally welcome to join if you would like, but I didn't mean to spam you 😄

from quicli.

killercup avatar killercup commented on September 28, 2024

Oh no, don't invite Alex! I want him to work on tokio instead! :P

from quicli.

killercup avatar killercup commented on September 28, 2024

💥 https://killercup.github.io/quicli/ 💥

from quicli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.