vicki@jawns.club
vicki@jawns.club

If you were writing a thing that had chapters but also lots of links and code samples and equations, wanted to make sure it was updatable via git/github, and generated a static site with the option to render to text, what would you use?

|
Embed
Progress spinner
alexhammy@hachyderm.io
alexhammy@hachyderm.io

@vicki hugo probably

|
Embed
Progress spinner
multimeric@genomic.social
multimeric@genomic.social

@vicki Quarto!

|
Embed
Progress spinner
hober@mastodon.social
hober@mastodon.social

@vicki HTML

|
Embed
Progress spinner
In reply to
len
len

@vicki Have you looked at Gitbook?

|
Embed
Progress spinner
vicki@jawns.club
vicki@jawns.club

@len I will now

|
Embed
Progress spinner
gregdavis@hachyderm.io
gregdavis@hachyderm.io

@vicki I would probably spend way too much time rigging up a fragile latex pipeline that rendered both html and txt in GitHub Actions custom GitHub Pages deployment... docs.github.com/en/pages/getti . TBH I've never tried this though.

|
Embed
Progress spinner
vicki@jawns.club
vicki@jawns.club

@gregdavis also me

|
Embed
Progress spinner
donkirkby@hachyderm.io
donkirkby@hachyderm.io

@vicki I've done a few projects now where the bulk of my writing is in a markdown file, and then I write a script to fill in the gaps, often by converting code blocks into diagrams. I publish through GitHub pages, as well as a PDF version.
If custom code isn't a good fit, I'd look at pandoc.
Here's the current project I'm working on with this style: github.com/donkirkby/chess-kit

|
Embed
Progress spinner
bearloga@hachyderm.io
bearloga@hachyderm.io

@vicki Quarto. You can see it in action: wesmckinney.com/book/

|
Embed
Progress spinner
jamestwebber@mas.to
jamestwebber@mas.to

@vicki something in the myst / jupyter book space, but that's just because I follow @choldgraf and it looks neat

|
Embed
Progress spinner
mdekstrand@hci.social
mdekstrand@hci.social

@bearloga @vicki yeah either Quarto or JupyterBook, depending on integration requirements. I've used both and have a slight preference for Quarto.

|
Embed
Progress spinner
b0rk@social.jvns.ca
b0rk@social.jvns.ca

@vicki I used jupyterbook for implement-dns.wizardzines.com, it was okay

|
Embed
Progress spinner
j2kun@mathstodon.xyz
j2kun@mathstodon.xyz

@vicki I would probably do latex as the source and convert it to another format. There are some pretty good latex to html renderers these days. I also recently heard about github.com/StevenClontz/pretex

|
Embed
Progress spinner
ginic@hachyderm.io
ginic@hachyderm.io

@vicki I think Bookdown is pretty nice! There are already a lot of github workflows and templates available for it too. github.com/rstudio/bookdown

|
Embed
Progress spinner
hynek@mastodon.social
hynek@mastodon.social

@vicki You may hear of GitBook, but walk right past it, since it’s an increasingly enshittifying service’s loss leader, but there’s a RIIR version of it that is used in the wider Rust world and works great: rust-lang.github.io/mdBook/

|
Embed
Progress spinner
jmshea@mathstodon.xyz
jmshea@mathstodon.xyz

@vicki Jupyter Book is nice for this. You can easily render to HTML and LaTeX/pdf. It is easy to set up GitHub actions to do the compiling and pushing to GitHub pages. Shameless plug: you can also add interactive quizzes with Jupyter Quiz. See fdsp.net for an example

|
Embed
Progress spinner
ju@chaos.social
ju@chaos.social

@vicki I would go for quarto.org/ by @Posit. Many books are written that way including wesmckinney.com/book/

|
Embed
Progress spinner
hugovk@mastodon.social
hugovk@mastodon.social

@vicki For his books, @adamchainz uses Sphinx. It can do all of those things.

|
Embed
Progress spinner
veit@mastodon.social
veit@mastodon.social

@vicki I use Sphinx with the nbsphinx extension for my tutorials. This allows me to check links, execute code and also render mathematical formulae. And here are some tips for managing Jupyter notebooks in Git: python4data.science/en/latest/

|
Embed
Progress spinner
adamchainz@fosstodon.org
adamchainz@fosstodon.org

@hugovk @vicki Yes! I wasn’t following Vicki here so replied on Twitter:

I’ve used Sphinx for my three books and been fairly happy with it. Options for the customising the PDF output are limited and require writing a bit of TeX. You can write in markdown or rST.

|
Embed
Progress spinner
hrbrmstr@mastodon.social
hrbrmstr@mastodon.social

@vicki 110% Quarto.

|
Embed
Progress spinner
Elendol@hachyderm.io
Elendol@hachyderm.io

@vicki definitely give quarto a try. We use it for our internal documentation website. Some images are created at build time from code and data (and tracked via git). It supports many output formats. Great experience working with it.

|
Embed
Progress spinner
hrbrmstr@mastodon.social
hrbrmstr@mastodon.social

@vicki (forgot to add this) duckdb.hrbrmstr.app/ is the most recent Quarto book thing I've done (no equations tho).

|
Embed
Progress spinner
kupac@functional.cafe
kupac@functional.cafe

@vicki
Org mode. I just have to learn it first 😃

|
Embed
Progress spinner
iDGS@mas.to
iDGS@mas.to

@vicki Maybe TeX? I’ve not used it, but have heard it can do litsa things.

en.m.wikipedia.org/wiki/TeX

|
Embed
Progress spinner
danwwilson@rstats.me
danwwilson@rstats.me

@hrbrmstr @vicki I had my first proper play with duck db today and a query that takes ~20s to load parquet files and then summarise with data.table, when run as a summary query in duck db took no longer to run than just the data.table summary. No time waiting for data to load. Also used a fraction of the memory that loading data would. 🤯 so good!

|
Embed
Progress spinner
hrbrmstr@mastodon.social
hrbrmstr@mastodon.social

@danwwilson @vicki It's truly amazing tech.

|
Embed
Progress spinner
choldgraf@hachyderm.io
choldgraf@hachyderm.io

@jamestwebber @vicki mystmd.org 😎

|
Embed
Progress spinner
mdekstrand@hci.social
mdekstrand@hci.social

@bearloga @vicki Now that I'm back to a computer, if you're interested in seeing some of my examples, this was built in JupyterBook: cs533.ekstrandom.net/f22/

And this is built in Quarto: bookdata.piret.info/

For future things I am most likely to use Quarto unless there is a specific benefit to using a Sphinx-based platform (e.g. incorporating Python API documentation).

|
Embed
Progress spinner
acm_redfox@jawns.club
acm_redfox@jawns.club

@vicki LaTEX? :)

|
Embed
Progress spinner