-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New docs content structure #1
Comments
I will keep the intro post updated with my and others' thoughts about this. In this repo I have quickly (relatively) converted the old theme/site to a more modern stack in. Whether this was a great idea or not, I'm not sure, but I have had a few failed attempts building the old one (been looking at at non-fatal GitHub security report that I have not been able to fix), telling me that we at least need to do something. I have been thinking about what to do with the content part of this. The preview build here currently builds the entire old docs content with some slight adjustments (documentation is now mounted below /documentation -- https://gohugoiotheme.netlify.app/documentation/), but ... My take on this is that we need to somehow start fresh. It's lot of great content in the old, but it's much harder to remove/move stuff compared to re-adding stuff into a new structure. So, I suggest that we 1) Agree on a structure and 2) Create that structure and move articles from the old repo. |
Happy to see work on the 'new site theme' project picking up again! |
Totally agree. Are there any objections to using the Diataxis Framework as a high level structure for the docs? Some arguments in favor:
|
The Diátaxis makes sense (not so much the name they have chosen, though). I suspect much clarity will come from getting a solid and simple With that, ref Diátaxis:
|
The current docs mostly fit into the reference and explanation categories, although intertwined. I think that a lot of the existing content can be reused for the explanation category, although with some manual parsing and touching up to fit the new structure. With that in place, the how-tos and tutorials can be written, covering specific use-cases. This is where we need input from the wider community, asking what we wished existed back when we starting to learn Hugo from scratch. Having written (most) of the reference and explanation material first, makes it possible to link back to the "dry" documentation from the how-tos an tutorials. This could go both ways; the reference and explanation docs could contain a "further reading" section, listing related docs like how-tos ant tutorials based on tags or custom taxonomies. I believe something similar is done in the current docs? |
I have started some work on this here: https://deploy-preview-14--gohugoiotheme.netlify.app/documentation/reference/functions/math/ Main ideas:
|
This looks great! I hope to be able to write some Guides and/or Tutorials covering some topics that newcomers often struggle with. I have also been working on a little deploy script that I can make a guide for under the "Deploy" section, when my script is ready for general use. |
@bep This is looking really good. Regarding the Go source for method description... Sometimes the Go source describes how a method works from an implementation perspective, but that might not be the best way to describe it to a site author. For example, Go source
Current documentation (I made the change here due to #1641)
I dislike the idea of maintaining two descriptions (source + override), but I'm not sure you'd want to change the source description either. |
@jmooring so, I'm open to ideas about this, but the main point (or one of them) I'm trying to address with this is completeness. I answered a few hours ago some question in the docs forum where I said "use Note that in the |
To make my point clearer -- I just pushed an update with all the template namespaces. There still are some functions that show up empty, but it's certainly more complete than what we have: https://deploy-preview-14--gohugoiotheme.netlify.app/documentation/reference/functions/math/ My main point about this is to get the structural parts complete -- I do understand that (most of the) prose needs to be written in Markdown, and we should encourage that (adding "edit this") links. |
OK, @jmooring I have been skiing today (downhill), and the cold weather cleared my mind on this a little. The main things this "auto doc" of the template functions (and then also the methods on Page etc.) was that of 1) Structure and 2) Completeness. Once that is in place it should be a pretty stable structure (we sometimes add new functions, but rarely change or remove). With that in mind I think there are lots of value in having it mostly what you see is what you edit. So I suggest we (or I) create a script that creates the new structure. Then we can copy in the prose from the old structure bits by bit. I still suggest that we keep it 1 page per namespace. If people want to write in long form about a function, that belongs in another section. |
@bep - Great to see the direction with the new theme, and particularly the cleanliness / clarity of the docs - I'm a big fan. Like @rsolvang, I'm also happy to contribute examples / how to guides once the time is right. I'm not sure I can contribute much to the site changes, as you look to have this well-covered - but I'll keep watching this repository, in case there is something I may be able to contribute. |
Reference
Configuration
Templates
Lookup Rules
We should try to
The text was updated successfully, but these errors were encountered: