McShelby / hugo-theme-relearn

A theme for Hugo designed for documentation
https://mcshelby.github.io/hugo-theme-relearn/
MIT License
426 stars 186 forks source link

roadmap: upcoming major changes for 7.0.0 #715

Closed McShelby closed 1 month ago

McShelby commented 1 year ago

This is a list of ideas running thru my head to make the theme more compliant with standard Hugo features. This does not necessarily mean, that these changes finally will happen:

cagix commented 1 year ago
  • [ ] deprecate hidden pages feature? would make menu generation much faster #685

while i understand hidden pages could make menu generation more complex, removing hidden pages seems to be a major step backwards in my use case and would potentially force me to switch to another theme.

McShelby commented 1 year ago

I am also not happy with this. This would also affect the use case at my company, so I doubt that I will implement it in that radical way. One other thought is to make it opt-in and explicitly mention the performance impact. I need to do further tests to decide on this.

cagix commented 1 year ago

I am also not happy with this. This would also affect the use case at my company, so I doubt that I will implement it in that radical way. One other thought is to make it opt-in and explicitly mention the performance impact. I need to do further tests to decide on this.

i'm kinda intrigued with the way folks over at mdbook are handling this: they use a separate file named "summary.md" to construct the menu. such a file could be easily provided manually or even constructed automatically in case one needs hidden pages. but that's not really the path of hugo ...

McShelby commented 1 year ago

Sounds intersting. Do you have a link to the docs? My quick google-fu was not successful.

cagix commented 1 year ago

Sounds intersting. Do you have a link to the docs? My quick google-fu was not successful.

https://rust-lang.github.io/mdBook/guide/creating.html, https://github.com/rust-lang/mdBook

hmmm, the "summary.md" seems also to be used as kind of toc and/or start page. but the structure and the linked documents is used to create the menu.

McShelby commented 1 year ago

Thanks @cagix. To me this sounds like a page is hidden if it is not contained in any summary. Probably the page is still accessible by direct linking. But this would mean the page is also not part of the book hierarchy which would be different from the themes hidden page feature. Or do i miss a part?

cagix commented 1 year ago

Thanks @cagix. To me this sounds like a page is hidden if it is not contained in any summary. Probably the page is still accessible by direct linking. But this would mean the page is also not part of the book hierarchy which would be different from the themes hidden page feature. Or do i miss a part?

indeed, it seems to work this way. but perhaps the idea could be adapted: hugo usually renders all pages contained in a certain folder and uses the structure and names or weights to populate the menu. now, to implement hidden pages, we could derive the menu in this case from something like a "summary.md", so only items defined in this file will show up in the menu - but hugo will render all pages as usual, which will "hide" all pages, which are not being referenced in the summary ...

McShelby commented 2 months ago

Notice: The code will be restructured heavily in #891 coming in 7.0.0. If you have overloaded partials or having own output formats defined, you will most likely be affected by this. See further information in the ticket notes or release notes, once available.

McShelby commented 2 months ago

The release of 7.0.0, tackeling most of the harder issues is right around the corner. I expect it to be released this month. Hopefully I'll meet an october deadline ;-)

McShelby commented 1 month ago

Announcement: 7.0.0 will swap its main font. See #922

McShelby commented 1 month ago

Feel free to get an early look at 7.0.0 in the public branch at https://github.com/McShelby/hugo-theme-relearn/tree/7.0.0

While the release is feature complete, the docs are still in flux, yet.

Feedback is welcome.

McShelby commented 1 month ago

It's done. Watch the world burn.

McShelby commented 1 month ago

Due to broken changes in the generation of the changelog, I had to manually fix them. Now the list of fixed features is complete