Git Product home page Git Product logo

Comments (5)

hartzell avatar hartzell commented on May 4, 2024

ping @LisaFC

from docsy-example.

LisaFC avatar LisaFC commented on May 4, 2024

So the post-processed bits don't really exist anywhere (they're not in the repo as they're generated on the fly every time the site is built), so you do need PostCSS to generate the site for the first time. Once you've done it once you can run hugo server as many times as you like, or even commit the generated files to a repo if you don't want to have to use PostCSS in your regular build.

If you're really stuck someone (me?) might be able to create a copy of the site repo and push the generated resources to it.

from docsy-example.

hartzell avatar hartzell commented on May 4, 2024

I think that I'm asking a simpler question, namely:

  • which generated bits do I need to commit to avoid running PostCSS every time (but still rebuild the rest of the site)?

The README makes it sound as if one only needs PostCSS if one changes the SCCS bits but it seems like it's always needed.

Thanks!

from docsy-example.

LisaFC avatar LisaFC commented on May 4, 2024

Ah gotcha! Ok, yes, you need PostCSS the first time you build the site (because otherwise it has eg no CSS files), and then after that you can commit/use the generated /resources/ folder and you should have everything you need (unless you change the SCSS and need to regenerate the files).

We used to do that as a workaround for CICD with Netlify before they upgraded their servers to support "extended" Hugo, and the Hugo docs site does it:
https://github.com/gohugoio/hugoDocs/tree/master/resources

from docsy-example.

hartzell avatar hartzell commented on May 4, 2024

Looks like just removing resources/ from the .gitignore will do what I'm looking for.

Thanks!

from docsy-example.

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.