-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Feature] Site wide Index/Table Of Contents #129
Comments
Hi, thanks also from my side. ❤️ regarding the feature of a site wide index/table of contents, it is something that it is not currently possible in nimib, but it is appropriate for the library and so such an feature request is welcome. Still not sure about which api to use, have some thoughts maybe I will use this issue later to share what are the current ideas on this. One of the tricky aspect is that we should support both document-wide toc and site-wide toc and we will want an api and a UI design that will be able to account for both (not necessarily the same api). The other tricky aspect is that a site-wide index needs data from outside the current document and not sure yet where to put this (two options come to mind: a specific Such a feature should also play well with other projects built on nimib such as nimibook. Indeed my idea would be to work on something like this first by building some more generic static site generator based on nimib first as an external project. |
Hmm, I see. |
IMO the default nimib theme is basically a static site generator already, it just lacks a few things like this. Having a solid default theme is important. This could be useful for many themes as well to build on, so we don't end up with every static site generator rolling their own system. But some themes, like nimiBook, have other needs. There we want the explicit TOC, so it wouldn't necessarily have to use this feature which IMO should be automatic (all files in the docs-folder and subfolders are included automatically). |
for me nimib at the moment is more of a single document creator and indeed the difference between a tool like pandoc and a Static Site generator is really all of the stuff that are: "a few things like this". anyway the idea for me is first to experiment outside of nimib building the missing SSG functionalities and later decide what to bring inside nimib.
absolutely agree
yes that's is also right, but it would not be bad if the feature is used also by nimibook. a less important requirement
that is indeed an option and probably relatively easy to create something like this. it could actually be a postprocessor that would add toc data later to an already created html. and we could probably keep this self contained from the rest of nimib so that we could experiment in nimib itself... |
OK yes, you are making a lot of good points :D
Sounds sensible 👍
This is a really interesting concept in general as well. Adding HTML-comments or something: <!--nimibPlaceholderTOC--> This could be useful in many different ways for postprocessing :) |
I think there should be both manual and automatic options. |
I really like nimib and it looks super cool to make quick documents. But also I thought it would be really nice to have some kind of index showing all the available documents to read (avoiding having to list them yourself, i.e.: https://pietroppeter.github.io/nblog).
It could be implemented as a menu button (like GitHub does with readme files) or as a sidebar.
I'm really new to nimib so I don't really know if this is already possible and if it is, please let me know.
Thanks for making this awesome project. ❤️
The text was updated successfully, but these errors were encountered: