Replies: 14 comments 27 replies
-
I'm not really a GO specialist, but I think that would be a important, big step forward for Docsy. Although it will cause surely some problems on the way. Have we/you a possibility to ask our "larger, more established websites" about their opinion? |
Beta Was this translation helpful? Give feedback.
-
We would definitely be interested in having Docsy as a Hugo module, especially if there's a way to use a specific version of the module. We have a large team of writers working on different projects and we are implementing some of our common Hugo content (archetypes, layouts, etc.) and reusable content as Hugo modules. We would like to have the same approach for the Docsy theme. This way, writers only see the doc content and do not have to worry about the framework. |
Beta Was this translation helpful? Give feedback.
-
Anyone interested in having Docsy as a Hugo module can now give it a try:
That's all, no fiddling around with submodules any more! You may read about the new way of installing docsy as theme, about the conversion of your existing site and about the update of docsy as module already. These are preview chapters of the user guide explaining docsy as hugo module, as submitted by me via #802. Looking forward to get community feedback on this soon! |
Beta Was this translation helpful? Give feedback.
-
Should have time today/next week to work through this, and also have a look at what other Hugo themes are doing - the last time we looked at Hugo modules almost nobody was using them for themes so it was hard to see what the community thought, but I suspect they're more common now. Also interested to hear how people feel now about whether the prereqs feel onerous compared to the "submodule approach" prereqs. I think regardless of what we present as the default approach for installing/updating Docsy, we should present it was an approach. From what @deining was saying before the holidays it seems like it would be backward/forward compatible for users who decided to switch. |
Beta Was this translation helpful? Give feedback.
-
Sounds neat. We’d migrate for sure. |
Beta Was this translation helpful? Give feedback.
-
Just as an update this is now merged into the main branch, albeit with the modules feature turned off by default. |
Beta Was this translation helpful? Give feedback.
-
@deining - will using docsy as a Hugo module require users to have Go installed? (I don't know anything about Hugo modules, or much about Go modules at this point and the answer to that question isn't immediately obvious to me.) Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm assuming that nothing about this change stops people who are currently using Hugo as a (Git) submodule from continuing to do so? |
Beta Was this translation helpful? Give feedback.
-
@deining - thank you for your detailed answers. In a nutshell, I like where this is heading and the options that it gives docsy users (for new and existing sites). The need to create two subdirectories as a requirement when upgrading is acceptable to me (and I/we can always create an NPM script that makes the adjustment easier to do). I very much like the new go-and-git-less option of a .zip release. My only hesitancy is in terms of what we recommend / choose as the default. At the moment, IMHO, it shouldn't be the modules option. I don't think this is a decision we need to finalize before we move forward with module-ifying docsy -- which makes me wonder if there is anything left to do other than fully document our decisions? Btw, this change might be a good first candidate change for the upcoming CHANGLOG. /cc @emckean |
Beta Was this translation helpful? Give feedback.
-
We just tested using Docsy as a Hugo module and it worked like a charm! Took me about 5 minutes. I used the following procedure: We are already using Hugo modules, so I didn’t have to do some of these steps (my repo was already a Hugo module). When adding Docsy as a Hugo module (that is, running this command):
I got the following error message:
We also have that error when adding other Hugo modules (this is not specific to Docsy); the solution is to comment out this section in config.toml:
Add the module, and then uncomment again. This approach will be very useful for us, since installing and upgrading to a new version of Docsy will be much easier. Hope this helps! 😊 |
Beta Was this translation helpful? Give feedback.
-
All: I've created so that we can move the subtopic discussion there. I've also created #849 so that we can track subtasks (of which #848 is one). |
Beta Was this translation helpful? Give feedback.
-
My main issue with integrating Docsy is that I overwrite a lot of Docsy's theme by placing files under |
Beta Was this translation helpful? Give feedback.
-
For those who are only tracking this discussion thread, I've captured my latest thoughts on this in #858, Fix the build for docsy-as-submodule. |
Beta Was this translation helpful? Give feedback.
-
@LisaFC @emckean @deining et all. Until we're quite sure that we have a solution that works for all, I suggest that all module-related commits be merged into the module-feature branch, not the default branch. (FYI, I'll be OOO and/or mostly AFK until Tuesday.) |
Beta Was this translation helpful? Give feedback.
-
Looking for more discussion/thoughts around #520! It's a breaking change, so we would need to consider the potential overhead of maintaining two approaches if not everyone (particularly our community's larger, more established websites) wanted to switch.
Beta Was this translation helpful? Give feedback.
All reactions