Comments (5)
ping @LisaFC
from docsy-example.
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.
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.
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.
Looks like just removing resources/
from the .gitignore
will do what I'm looking for.
Thanks!
from docsy-example.
Related Issues (20)
- Searchbox doesn't have a transition effect like navbar links
- Intermittent: error calling Paginate: cannot convert type page.PagesGroup to Pages HOT 1
- Deploy Kubeflow with Password, Ingress and TLS HOT 1
- Upgrade Docsy to 0.7.0 HOT 7
- Register docsy-example as OSS to disable ads in search HOT 3
- Complete Netlify setup HOT 1
- Resource permissions are set to read-only HOT 3
- Prepare and release 0.7.0 HOT 3
- _variables_project.scss: add minimal content and link to docs
- Convert config file to yaml
- Warn about Hugo versions prior to 0.110.0
- Upgrade Docsy to 0.7.1
- Document on Vercel setup needed
- Upgrade Docsy to 0.7.2
- Multiple languages: real languages? How many? What is our goal? HOT 1
- feature: add versions
- Release 0.8.0 of the example HOT 3
- Should the users mention this project in the LICENSE if they are using this project as the template? HOT 1
- Blog renders the content instead of showing the code
- Basic Setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsy-example.