Code Monkey home page Code Monkey logo

Comments (4)

fredrikekre avatar fredrikekre commented on June 26, 2024

Are you aware of Documenters draft mode? draft = true to makedocs(...).

from literate.jl.

JeffFessler avatar JeffFessler commented on June 26, 2024

Yes, I sometimes use that and expandfirst when I am debugging locally. But then when it is ready I push to github (without those debugging flags) and make a PR and the github actions build and rerun all the demos, most of which have not changed, wasting CPU time in the cloud. Which is why I was asking if there was a way to set up the Documenter.yaml or make.jl or such to be smarter about it in the cloud.

There is one brute-force option I've considered, which is to put every demo in its own repo, because then only one demo at a time would get built by github actions. That would be a maintenance pain though...

Another option might be to have one repo with a separate "subpackage" for each demo, each with its own docs/ and make.jl or such. I haven't found any examples of this approach though so not sure how to put it all together. Have you seen any examples of a single repo with multiple subpackages in it with partially separate Lit/Doc builds?

(Note to self, I might run into this issue: JuliaDocs/Documenter.jl#319)

from literate.jl.

mortenpi avatar mortenpi commented on June 26, 2024

So the expensive running of the examples are done with Literate, since you pass execute=true generally, right? You could probably invent something where you cache the .md files produced by Literate with GitHub artifacts. But you'd have to add the necessary logic into make.jl and your GitHub workflows.

from literate.jl.

JeffFessler avatar JeffFessler commented on June 26, 2024

Cool idea - thanks for the tip! I will look into that.
And yes, it is the Literate execute that takes the bulk of the time.

from literate.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.