Doks installation and upgrades #147
Replies: 3 comments 10 replies
-
Perfectly fine — you're not alone 😉 Note, that the Doks setup is not Hugo standard (on purpose — see also below). You could compare Doks with a Bedrock + Sage setup for WordPress. Ad 1) That's correct — Doks is a "starter theme" on purpose (more on why: Adding a theme). Also, I'm not a fan of a parent-child relation with a submodule or module: when you have lots of customizations, a parent update might have no effect or even cause conflicts (I know that from experience — also in the WP world). Ad 2)
Hope that answers your questions /clarifies |
Beta Was this translation helpful? Give feedback.
-
Hank, this still puzzles me a lot )))
in Doks you are so strict on delivering JavaScript dependencies for the
theme, but what it comes to updating the theme itself- it has to be manual
labor )
Are you sure making doks installable as a theme as git submodule is such a
bad idea?
If you would like to update to a newer version of Doks, you'd have to do
that manually by copying-pasting parts "intelligently
вт, 23 февр. 2021 г., 13:52 Henk Verlinde <[email protected]>:
… Perfectly fine — you're not alone 😉
Note, that the Doks setup is not Hugo standard (on purpose — see also
below). You could compare Doks with a Bedrock <https://roots.io/bedrock/>
+ Sage <https://roots.io/sage/> setup for WordPress.
Ad 1) That's correct — Doks is a "starter theme" on purpose (more on why: Adding
a theme
<https://henkverlinde.com/master-npm-with-hugo-managing-dependencies/#adding-a-theme>).
Also, I'm not a fan of a parent-child relation with a submodule or module:
when you have lots of customizations, a parent update might have no effect
or even cause conflicts (I know that from experience — also in the WP
world).
Ad 2)
-
*Updating Doks*. Since Doks is a "starter theme", this means you build
your site on a particular version of Doks. If you would like to update to a
newer version of Doks, you'd have to do that manually by copying-pasting
parts "intelligently". I know the latter sounds harsh, but is good doable
(I know that from experience).
-
*Updating dependencies*. I recommend regularly updating the local
packages your Doks project depends on. It will keep your Doks website
stable, usable, and secure (see also: Updating
<https://henkverlinde.com/master-npm-with-hugo-managing-dependencies/#updating>).
You could also consider automating update notifications by using a Dependabot
workflow
<https://github.com/h-enk/doks/blob/master/.github/dependabot.yml>.
Hope that answers your questions /clarifies
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#147 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWBLRAXZUBO2R763DYUNDTAOCFTANCNFSM4YB62SRA>
.
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the update :)
I'm already working on the main version.(not child)
However I have noticed one problem:
- when I deactivate all JS, the theme still generated an empty main.js file
czw., 18 mar 2021 o 16:20 Henk Verlinde ***@***.***>
napisał(a):
… ! Now available: Doks child theme
<https://github.com/h-enk/doks-child-theme> — instructions will follow
together with release notes /blog post on Doks v0.2.0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#147 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS4ZLH3VL33TBZHASLUYXEDTEIK4FANCNFSM4YB62SRA>
.
|
Beta Was this translation helpful? Give feedback.
-
First, I must apologize. I am not a developer but I understand coding. I'm moving from Wordpress to Hugo, and trying to understand the framework and how it works.
I was not able to install Doks as a theme inside my website as it is described in standard Hugo documentation. It only works when I use Doks as my website. So it makes it different then for example: Theme -> child theme dependency in WP. Am I right?
How would this impact updating? If Doks theme is not in themes directory, and I must build my website by modifing main theme templates, would my work be overwritten if I update via git/npm?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions