Easier path for new users #57
Replies: 5 comments 10 replies
-
Like here: why not tell users what is the end goal or benefit of using npm and why exactly npm surfaces for a hugo theme. For non-JS people that is a burden, better know exactly why this is for? Running non or installing packages is not a good explaination yet, unclear what is the end benefit of it. Requirements Hugo >= 0.75.0/extended (needed for SCSS processing support) |
Beta Was this translation helpful? Give feedback.
-
Doks is set up with The Twelve-Factor App in mind. See in particular: II. Dependencies. Every Hugo theme uses dependencies. Dependencies provide for functionalities. There are basically 3 ways (in order of adoption by theme developers):
I adopted option 3. From the twelve-factor methodology perspective, option 1 is an obviously no-go, and option 2 is (unfortunately) too limited (yet). For the Doks documentation, the idea is to not repeat (in line with the twelve-factor methodology) the Hugo and Netlify documentation. So, the Doks documentation describes the Doks specifics ONLY. Where relevant, I've linked to the appropriate section in the Hugo or Netlify documentation. A lot of your questions are Hugo specifics. However, I agree that there's room for improvement for the Tutorial. Not sure what your point about Github actions workflow is about? |
Beta Was this translation helpful? Give feedback.
-
This kind of information about npm as asset delivery tool for non-JS
project is really scarce and would be highly useful. Some of expectations
(can use as sceleton for docs):
- what is the goal - installing a Doks theme for Hugo
- traditional way is hugo docs - git or copying to themes direcotry
- why npm is well suited for that
- here is how we configured npm it to work
- here is how to use it
- restate benefits (better theme delivery, additional commands)
чт, 31 дек. 2020 г. в 17:27, Henk Verlinde <[email protected]>:
… If your starting point is Hugo docs, there is little to indicate npm
installation is an option for a theme use, the only described method is git
submodule for a theme. So for non-Javascript user seeing npm for Hugo is a
bit of surprise. Maybe is Javascript community that easier to understand,
but not from a perspective of a Hugo user.
Valid point — thanks for keep pushing. I'm planning to write more on Hugo
and npm/ why use npm. To be continued.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWBLTNQCGOMPZHPF3ROKTSXSC5JANCNFSM4VI4V5PA>
.
|
Beta Was this translation helpful? Give feedback.
-
Exactly. My first question was "why node?" |
Beta Was this translation helpful? Give feedback.
-
At the first glance of the document, I thought it was a hexo theme because it needed nodejs and NPM. I'm not proficient in NPM and nodejs. I only have a preliminary understanding of Hugo. It's really difficult to start doks. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to see what can be done for quicker/wider adoption of the theme, two ideas:
Explain in Readme why node/npm is needed for Hugo theme. Can this theme work without npm? What are the benefits of extra dependency?
Faster way to replicate different parts of screen.
As a new user I'm frustrated which parts of config control which parts of layout. There is a tutorial, but it king of assumes more knowledge about theme internal.
Key areas for new user:
Many of these are on the Hugo side, but a theme documentation could help. For example I did build a few sites in hugo, including Academic theme, but still not sure how to do things with new theme (especially when node run jumps in).
Can do some PRs into new documentation where needed, once I understand myself.
Beta Was this translation helpful? Give feedback.
All reactions