-
Notifications
You must be signed in to change notification settings - Fork 921
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
taxonomy support #272 #324 #539 #554
Conversation
A (very) first version of the taxonomy support is ready to get feedback ;-) I think all needed basic functionality should work. But I'm still working on the layout. |
Also blog posts now support taxonomies: https://deploy-preview-554--docsydocs.netlify.app/blog/ I have to tidy up the code a little bit and write a manual, then the PR should be ready for merging. Are there any comments or further wishes? |
FINALLY! Thanks everyone for your patience and thanks so much to @RichieEscarez for figuring out what we needed to do. |
Thanks everyone for the help to get this PR merged. |
@LisaFC You habe merged also my test content into the master. Sorry that I have left it in the PR. I think it's easier for you, if I delete it myself before push it into the PR, isn't it? |
@LisaFC Should I change anything in my original PR? |
Ah, sorry I didn't notice the test data - I'll remove that now (unless you want to create a PR yourself to remove it?) |
OK, test data now gone! There are still some tags displayed and some taxonomy settings in config.toml What is the "Cloud of categories" for? It's nice to have some tag info in the userguide so users can see how it works, but I just want to make sure it's fairly tidy/obvious. |
@LisaFC I'm now going to bed with my kids. But I'll take a look a little bit later. |
@LisaFC Per default, in the right sidebar "clouds" (= lists of all terms of a taxonomy) get generated for all defined taxonomies (Hugo default: tags and categories). The title of these tags would be per default also tags and categories, but because in the current
Shall I prepare a PR with a simple taxonomy example for the Docsy userguide? And once more: I'm really sorry, that I've made this problems by leaving my dev content in the PR. I think, it would be better, when I delete my dev content from the PR instead of leaving you a message, which files shouldn't be merged into master, in future. |
@narrenfrei I have used this explanation to enable taxomonies in my blog and it worked, I found these instructions very good 🙂 |
@narrenfrei: Great work, very useful, thanks a lot. Wile reading your instructions, I found a few typos which I corrected in #594. I could follow the instructions easily, this may partially owed to the fact that I German is my mother tongue 🙂. I think there is room for improvement here and there. Maybe @LisaFC can step in here? Again, thanks your your hard work, I really appreciate that! |
@deining good point, my mother tongue is also German 😉 |
Thanks for you comments. After the message from @huehnerlady I also thougt about whether I should also point out our common mother tongue ;-) |
That would be excellent thanks! What do you think would be a good demonstration of the feature? I'll take a look at the new docs - they look excellent on a quick read, possibly just a few tweaks (and I may have some questions). |
As tags and categories are the default taxonomies from Hugo, I would keep this taxonomies at least for https://www.docsy.dev/docs/adding-content/taxonomy/ But what shall do with the tag and category cloud in the right sidebar? By default they are visible on all docs and blog pages. At the moment I only can switch them on/off globally. |
What are the use-cases for those? For me personally I just need them in blogs, so for me the natural thing is to enable it in blog and disable it anywhere else. |
As Docsy is specialist on documentation sites, most use cases will be in docs, I think. Taxonomies can be used for a lot of (cool) things in docs - eg:
Every time when you want to give your content a additional dimension of structure you can use taxonomies and get so automatically pages for each taxonomy and taxonomy term. You can also serve additional content to this taxonomy term pages. |
I think for me that means adapting the docs page for now, which is fine by me, thank you for the explanation :) |
If you don't mind, please let us know how you do this. I have the same requirement; tag clouds in blog, but not in docs. |
At the moment you would have to make for you project modified templates for the docs section and comment the taxonomy clouds on the right column out. The listing of assigned taxonomy terms per page shouldn't disturb, because they only get shown when the current page have assigned taxonomy terms. For the next version of taxonomy support I plan a parameter in the config.toml to list the site sections, where to show the taxonomy infos or a page specific parameter to hide specific taxonomies. These parameter could get defined cascading, so all child pages also would use the same setting. |
As mentioned in #272 and #324 I continued the development of support for taxonomies / tagging.
Because I've decided to code the taxonomy functionality from scratch, I've closed #539 and made a new PR.
You can catch a current preview at https://deploy-preview-554--docsydocs.netlify.app/docs/dev-test-content/
At the moment it's completely WIP and the special pages for taxonomies are very raw.
Some commits for this PR will follow the next days.