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.

Combined, Versioned Documentation Site

See original GitHub issue

Problem Description

We want to get to a place where our reference documentation and tutorial documentation is versioned, tightly linked, and easily displayable.

Secondary Issues

ReadTheDocs does not have the resources available at the free tier to consistently build both our tutorial documentation and our reference documentation (15mins and 3gb of memory, respectively).

We (or rather, I) made the decision that trying to cut down on our build time and memory usage was going to end up being ultimately a short term fix; as we add features and more tutorials, our build time is going to increase. We’re going to have issues going forward and little fixes here and there are realistically only going to buy us a little time before we have future problems.

Current State

Right now we use RTD to generate our reference documentation. It generates our reference docs for every branch on our repo.

We use Github actions to generate our tutorial documentation. On merge to dev we automatically publish the one and only version of our tutorial documentation in a place that is navigable by a web browser. Our tutorials and reference documentation can’t be tightly linked (in the sense that things may be relocated and we can’t have anything in place that ensures they continue exist and we don’t have any broken links). We also don’t publish the latest release of our latest current final release - instead we publish what’s on the bleeding edge by publishing dev only.

Requests of this Feature

  • Allow us to build reference documentation (fast) or both reference and tutorial documentation (slower). The goal here is to be able to quickly validate our pydoc reference docs are building correctly with or without the tutorials being built. This may not be possible as we may be in a chicken and egg scenario, but it would be nice if we could say “do a full documentation build” as well as “do the fast reference documentation only build” for local development purposes.
  • Each release - whether full release (merge to main) or pre release (merge to dev) should have a full documentation suite built from it, and this documentation suite should be published to a website of some sort for us to see.
  • @bdpedigo edit - build previews linked in each PR like netlify used to do. These make reviewing code changes that affect docs much easier

As far as I can tell, we cannot build our documentation and have RTD host it as-is. Perhaps that is something we can do with another service?

Things we can explore:

  • a graspologic documentation repository (meaning that the graspologic ci publishes built documentation to the graspologic-docs repo)
  • other third party documentation publication services (GraSPy originally used netlify and we still technically have it building documentation for us - perhaps we use it in lieu of rtd? Can we own our documentation build via github action and just have netlify publish it for us? Can netlify let us “publish” these by version?)

@loftusa has been sad about our documentation and he may have some ideas as well, so I’m hoping he’ll chime in here.

@bdpedigo, @j1c, @asaadeldin11 - anything else you’d like to add?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rajpratyushcommented, Mar 2, 2021

@dwyneprce I think we should explore the idea of having a graspologic repository as with time we will be adding new features to the repository and then documenting all that reference will again turn out to be a slow process.

GraSPy originally used netlify and we still technically have it building documentation for us - perhaps we use it in lieu of rtd? Can we own our documentation build via github action and just have netlify publish it for us? Can netlify let us “publish” these by version?

Yes, that is actually possible. Here is the link to a article I was reading on Medium.

https://marekpukaj.medium.com/build-with-github-actions-host-on-netlify-ebf5fa505616

0reactions
rajpratyushcommented, Mar 4, 2021

@loftusa When shall we begin working on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Versioned Documentation - Read the Docs
Versioned Documentation ¶. Read the Docs supports multiple versions of your repository. On initial import, we will create a latest version.
Read more >
Versioned Documentation - Trevor Blades
Support multiple versions in your Gatsby docs site ... In this post, I'll explain the docs versioning strategy that we use at Apollo....
Read more >
Docs Multi-instance | Docusaurus
Use multiple docs plugin instances on a single Docusaurus site. ... This feature is only useful for versioned documentation.
Read more >
Master versioned documentation for software products
Creating and managing versioned documentation for web application, mobile apps and ... Changes can be (more or less) automatically be merged and compared....
Read more >
Antora
The multi-repository documentation site generator for tech writers who writing in ... the files in each branch into a versioned documentation collection.
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