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.

Make it possible to import other book chapters at build time

See original GitHub issue

Description

It is notoriously difficult to re-use pedagogical content between people. This is for a variety of reasons, but one of them is the amount of re-structuring and reformatting needed to adapt material to other build systems.

One way we could improve this would be to define a way of re-using sections of a Jupyter Book. Authors could simply “point” to a section elsewhere, and this would then automatically be drawn into their book at build time.

Example

For example, you could imagine a user pattern like this in the Table of Contents:

- file: localfile.md
- file: localfile.md
- remotesection: https://book-website/doctrees/path/to/section

And thus as a part of a book build, it would pull the remote section into the local filesystem and build it into the book’s structure automatically. Perhaps we could also draw from intersphinx for inspiration as well.

Benefit

This would benefit authors that wish to re-use content without manually copy-pasting them into their local filesystems. It would encourage the (re)use of other people’s work, and reduce the number of duplicated content out there.

That said, this might be a relatively modestly-used feature. It’s unclear how common practice it is for authors to re-mix only parts of one another’s content in this way. We should get more clarity on the demand here.

Implementation

@betolink has a similar build system based on Quarto where he pulls in content with CI/CD. See this comment: https://github.com/executablebooks/jupyter-book/issues/1385#issuecomment-907652927

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samteplitzkycommented, Jul 8, 2021

I’ve been doing some work on OERs in STEM related to their discoverability, accessibility, platforms, etc., and would definitely support more share-ability if you all are interested in the OER-space. A lot of authors rely on publishing/authoring software (something like Pressbooks) that offers much less functionality and interactivity than Jupyterbook, but the software’s either funded by their institutions or its components are easier to share and repurpose, at least for novice users.

1reaction
mmckycommented, Jul 5, 2021

This is certainly an interesting idea.

We were playing around with a variant of this idea at quantecon last year where we would let users customise the book by selecting sections they were interested in and building a custom book. One of the key issues (from an implementation perspective) was the preservation of internal linking and introducing the concept of context.

However I guess in this case the original project could be assumed to exist so links could be generated to the other project.

I presume we would require jupyter-book sites to publish the _sources in md for this to work so the remotesection get’s built rather than just copied to fit in with theme etc.?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use advanced book creation options in Pages - Apple Support
With Pages, you can export your documents in the EPUB format so they can be read using the Books app on your iPhone,...
Read more >
Combining Chapters - Microsoft Word for Dissertations
Combining Chapter Files into One Document · Open the file that will begin your long document (e.g. “Chapter 1” or your front matter)....
Read more >
Is there a way to add book sections more quickly?
Is there a faster way to add individual chapters than to first add the entire book (or any section in it) and then...
Read more >
How to Format a Book in Atticus > Kindlepreneur
To do this, open up the Atticus dashboard and select New Book (if you have ... Next, it's time to actually start building...
Read more >
Add works to your ORCID record
Works are your research outputs, including publications, data sets, conference presentations, and more. While it is possible to add works...
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