Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp DOCS, fo realz #157

Open
13 tasks
goodboy opened this issue Oct 12, 2020 · 8 comments
Open
13 tasks

Revamp DOCS, fo realz #157

goodboy opened this issue Oct 12, 2020 · 8 comments
Assignees
Labels
discussion docs help wanted Extra attention is needed
Milestone

Comments

@goodboy
Copy link
Owner

goodboy commented Oct 12, 2020

Our docs are terrible and outdated.. ya we know 馃槀

Yes you can find that terrible version (at time of writing) here:


sphinx themes I'm thinking we should use:

These are the hot ones I've found really lovely to read in python
(related) land:


Diagramming frameworks

Once we've settled on a (better) theme we need to add a ton of
diagrams with something that can embed in RST ideally, though we
might have to do some automation to just generate using some other
tools?


Docs frameworks

Alts and/or extensions to sphinx worth a shot?


Content/section IDEAS

Now that #129 is about to land we need some sections on:

  • using the debugger in a variety of process tree configurations

    • examples of both .breakpoint() and the crash handler system
    • example of how it's like pytest's --pdb even with just plain old process local tasks
  • adjustment of all examples to drop use of namespace prefixes when calling Portal.run() and ActorNursery.run_in_actor() once a fix for Allow passing function refs to Portal.run() ?聽#69 lands

    • focus on simplicity of invoking remote functions with simple types as input
    • demonstrate how one should not rely on pickling objects through an example of state mutating?
  • re-org all major sections into new pages, a rough outline might look like:

  • spawning basics with process tree snap shots for each example

  • cancellation and error propagation

  • debugging

    • examples of using logging to figure out how things went wrong if the debugger isn't enough
  • streaming and a real world example

  • process tree and messaging patterns

    • maybe should include some details about backends and gotchas?
  • pretty up the readme including Add logo and github actions badge to readme聽#153

  • a stylistic change would be good where we introduce the
    project as something like *trio-across-processesand/or a next-genmultiprocessing`:

    • start examples with talking about processes
    • compare IPC with channels to equiv mp data structures
    • discuss sync code calling from async function as being better then relying on sync IPC systems
  • there was an existing issue RE a streaming example:
    Add a simple real-time streaming example to the README聽#114 (comment)

@goodboy goodboy added the docs label Oct 12, 2020
@goodboy goodboy self-assigned this Oct 12, 2020
@goodboy
Copy link
Owner Author

goodboy commented Feb 24, 2021

The readme update in #163 also mentions maybe adding some diagrams for both messaging / protocols docs and supervision trees stuff:

add some process tree diagrams using both something like mermaid.io and output from pstree?

@goodboy
Copy link
Owner Author

goodboy commented Feb 24, 2021

There was a project i saw recently that had a sphinx theme I really loved; too bad can't find it again.

It had the automatic toc arrows pointing to the section on the left as you scrolled down the page.

@ryanhiebert
Copy link
Collaborator

I'm not sure, but I've seen a couple projects using https://sphinx-book-theme.readthedocs.io/en/latest/, and I rather like it. Was thinking about using it for some internal documentation at work.

@goodboy
Copy link
Owner Author

goodboy commented Feb 24, 2021

@ryanhiebert oh nice! Yeah this is definitely getting closer.

I'm looking for a very simple black and white theme and a nice big logo.
This is one of the closest I've seen 馃弰馃徏

Looks to be based on the pydata themes.

Damn, they made pandas docs look good.

@goodboy goodboy mentioned this issue Feb 24, 2021
2 tasks
@goodboy goodboy changed the title Revamp docs for .dev0 release Revamp docs for .alpha0 release Feb 26, 2021
@goodboy goodboy added this to the Docs Revamp milestone Feb 26, 2021
@goodboy goodboy changed the title Revamp docs for .alpha0 release Revamp docs for .alpha1 release Mar 2, 2021
@goodboy
Copy link
Owner Author

goodboy commented Mar 2, 2021

So sphinx-book-theme turns out to be the same one that ray uses.

I like a lot about it but think it could be simplified a bit to fit the style I've got envisioned for this project.

I've created executablebooks/sphinx-book-theme#296 which seems to so far be well received 馃コ

Summary:

  • move top right nav-bar into left side-bar thus removing a bit of clutter (especially when using the margins support)
  • possibly leveraging the built-in support for local headings into the left sidebar

I've pushed up some draft changes on https://github.com/goodboy/tractor/tree/new_docs_polish

@goodboy goodboy added discussion help wanted Extra attention is needed labels Mar 2, 2021
@goodboy
Copy link
Owner Author

goodboy commented Aug 3, 2021

Made executablebooks/sphinx-book-theme#365 to address missing logo stuff.

@Fuyukai also mentioned in chat that our github badge link is borked 馃樋

@goodboy goodboy changed the title Revamp docs for .alpha1 release Revamp docs for .alpha2 (and/or .beta0) release Aug 3, 2021
@goodboy goodboy changed the title Revamp docs for .alpha2 (and/or .beta0) release Revamp docs for .alpha2 (and/or .beta0) release Aug 3, 2021
@goodboy goodboy changed the title Revamp docs for .alpha2 (and/or .beta0) release Revamp docs for .beta0 release Dec 21, 2021
@goodboy goodboy modified the milestones: Docs Revamp, 0.1.0b0 Dec 21, 2021
@goodboy
Copy link
Owner Author

goodboy commented Jul 13, 2023

as per msgspec docs, apparently the hip new minimalist theme is this bby:
https://github.com/pradyunsg/furo

@goodboy goodboy changed the title Revamp docs for .beta0 release Revamp docs, fo realz Aug 3, 2023
@goodboy
Copy link
Owner Author

goodboy commented Aug 3, 2023

Also learned about mkdocs the other day which apparently has sphinx compat inventory generation?

@goodboy goodboy changed the title Revamp docs, fo realz Revamp DOCS, fo realz Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion docs help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants