Skip to content

docs: add missing PostCSS install steps to "start from scratch" guide#2612

Open
anishesg wants to merge 2 commits intogoogle:mainfrom
proudhare:fix/ph-issue-1718
Open

docs: add missing PostCSS install steps to "start from scratch" guide#2612
anishesg wants to merge 2 commits intogoogle:mainfrom
proudhare:fix/ph-issue-1718

Conversation

@anishesg
Copy link
Copy Markdown

The "Start a site from scratch" Hugo-module guide in
docsy.dev/content/en/docs/get-started/docsy-as-module/start-from-scratch.md
was missing the PostCSS installation step and postcss.config.js creation,
causing users to hit a Cannot find module autoprefixer error when running
hugo server on a freshly created site.

The TL;DR command blocks (both Unix and Windows) now include
npm install -D autoprefixer postcss-cli postcss and the creation of
postcss.config.js with the autoprefixer plugin configuration. A new
"Install PostCSS" subsection was also added to the Detailed Setup instructions
with the same commands and a cross-reference to the
installation prerequisites page.

Fixes #1718

Copy link
Copy Markdown
Collaborator

@chalin chalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @anishesg.
@deining - thoughts?

@anishesg
Copy link
Copy Markdown
Author

Fixed the prettier CI failure — the postcss.config.js snippet had 4-space indentation instead of 2 and was missing the trailing semicolon/comma. Ran npx prettier --write to bring it in line.

The "Start a site from scratch" Hugo-module guide in

Signed-off-by: anish k <ak8686@princeton.edu>
… snippet

Signed-off-by: anish k <ak8686@princeton.edu>
@chalin chalin force-pushed the fix/ph-issue-1718 branch from d83e0d0 to 1500994 Compare April 26, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hugo-module "Setup a site from scratch" instructions are missing steps

2 participants