question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Major documentation sections should roughly map onto major sphinx extensions

See original GitHub issue

Context

Currently we have different aspects of our documentation intermingled with one another, and grouped in very high-level categories (like “content” and “interactivity” etc). However, we might be able to define a more natural grouping of content and make it more maintainable if we followed a similar proposal as:

Proposal

We should explore having top-level documentation sections map on to major extensions in Jupyter Book. Probably the three most obvious ones are something like:

  • MyST Parser (e.g. Content with MyST)
  • MyST NB (e.g., Notebooks and execution)
  • Sphinx Book Theme (e.g., Layout and theming)

This might also be a good way to learn where we should move functionality from one package to another (e.g., the “launch button” functionality might make more sense in myst-nb instead of the book theme.

Tasks and updates

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scottyhqcommented, Jun 22, 2022

Not to distract too much from the original issue (really like the idea of trying to clarify the various dependencies/components and simplify docs navigation)! But:

Though if we link to the versioned documentation from Jupyter Book, I think it’d be harder to accidentally find new syntax.

I think this is a great idea! I’ve run into this a number of times, most recently with learning about the connection between myst-nb and jupyterbook. The JB docs here https://jupyterbook.org/en/stable/file-types/myst-notebooks.html point to https://myst-nb.readthedocs.io/en/latest/index.html. But JB pins myst-nb to <0.14 https://github.com/executablebooks/jupyter-book/blob/efc954744b9be62fa24ceed1ba34f9ed0b8108d0/pyproject.toml#L36

The ‘latest’ myst-nb release is now 0.16 with seemingly a lot of new functionality 😦 So if explicit dependency pins are being used just changing links to the versioned docs would be helpful! (https://myst-nb.readthedocs.io/en/v0.13.2)

1reaction
agoose77commented, Jun 10, 2022

Though I am still hesitant to start farming out major parts of the JB workflow to sphinx extension sites

To clarify, I’m only proposing linking to the Executable Books projects (e.g. MystNB). These can have a landing page for JB if neccessary, and would focus on usage e.g. syntax. Where we don’t have the ability to do this, e.g. sphinxcontrib-bibtex, we would link to our own maintained (internal) sections within JB.

One reason you’re hitting some pain is because there is a large gap between Jupyter Book’s current functionality and the MyST-NB and MyST-parser latest releases

Certainly this is a phenomenon too, and that’s the nature of move fast and break things! Though if we link to the versioned documentation from Jupyter Book, I think it’d be harder to accidentally find new syntax.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extensions - Sphinx documentation
This chapter describes the extensions bundled with Sphinx. For the API documentation on writing your own extension, refer to Developing extensions for ...
Read more >
Write Beautiful Python Documentation with Sphinx
Sphinx is an amazing tool for writing beautiful documentation. Originally created for the documentation of the Python programming language, ...
Read more >
Getting Started - MyST-Parser - Read the Docs
Any content file can be read into the Sphinx document structure, ... The most important functionality available with MyST markdown is writing directives....
Read more >
TUTORIAL / Mariatta / Writing Documentation with Sphinx and ...
The success of Python and open source libraries is not separable from the availability of good documentation. Reading documentation is one ...
Read more >
Sphinx 2.3.2-beta reference manual
main query (see Section 12.1.12, “sql_query”) is executed and the rows it ... to on-disk format, the disk chunks will be approximately rt_mem_limit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found