Skip to content
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

Would it be possible to add the readme tag to custom categories as well #565

Closed
ad-van-erp opened this issue May 20, 2016 · 5 comments
Closed
Assignees

Comments

@ad-van-erp
Copy link

I've been using the custom_categories section within the .jazzy.yaml for some weeks now, and I'm very enthusiastic about it. I could not derive from the documentation however, if name and children were the only allowed tags herein. I hoped there would also be a readme tag (following the conventions for this tag at top level), where I could store information about the category involved, but so far I haven't found it.

Maybe I overlooked something, otherwise I at least would be very pleased if you could add it in some future release.

@lumaxis
Copy link

lumaxis commented May 20, 2016

This is basically a duplicate of #556 ?

@jpsim
Copy link
Collaborator

jpsim commented May 20, 2016

No, it's not a duplicate of #556, this is asking for more information on that feature... I'm honestly not sure, maybe @pcantrell can help you here

@jpsim jpsim added the question label May 20, 2016
@ad-van-erp
Copy link
Author

ad-van-erp commented May 22, 2016

It could very well be that my question was a duplicate of #556, as lumaxis suggested, and that the abstract option was what I needed.
However, I'm not sure how to use it. I first assumed that within the .jazzy.yaml file, abstract could be used as follows:

custom_categories:

  - name: applicatietoestand
    abstract: ./docs/applicatietoestand.md
    children:
    - AdministratiefObjectId
    - ...

but this didn't work (but jazzy didn't complain either).

I now have the impression that the abstract option should be used at top level, that the value should be true, and that the behaviour looks for all the .md files within the groups, but I'm not well-versed enough in ruby to know for sure. Maybe you could help me out.

@agentk
Copy link
Collaborator

agentk commented Jul 13, 2016

Hi @ad-van-erp, have you made any progress with using --abstract?

We are using it actively on ReSwift if you want to see a reference. The files from Docs/*.md have some simple string replacement done on them before being copied into Docs/tmp/api/ and running jazzy.

https://github.com/ReSwift/ReSwift/blob/master/.jazzy.json#L11
https://github.com/ReSwift/ReSwift/tree/master/Docs

@istx25
Copy link
Contributor

istx25 commented Nov 23, 2016

Closing in favour of #556. Feel free to re-open if necessary.

@istx25 istx25 closed this as completed Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants