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

per page customization #900

Closed
anantshri opened this Issue Apr 14, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@anantshri

anantshri commented Apr 14, 2016

Example there is a specific page where i want the ToC to either be not present or collapsible. i am not a ui specialist and hence a simpler solution i was looking at was some sort of options in per md page where i can say something like toc=no and toc doesn't gets added to it.

So is it possible or i will need to spend time in getting a new theme worked out for it.

@waylan

This comment has been minimized.

Show comment
Hide comment
@waylan

waylan Apr 14, 2016

Member

Page meta-data is passed to the template under the meta variable. You would just need to provide a template which made use of it. While overriding templates is currently possible, more work needs to be done both to make it easier and to document what is possible. See #607 for the details.

I suspect anything outside of that would need to wait for the as-yet unimplemented Plugin API (see #206).

Member

waylan commented Apr 14, 2016

Page meta-data is passed to the template under the meta variable. You would just need to provide a template which made use of it. While overriding templates is currently possible, more work needs to be done both to make it easier and to document what is possible. See #607 for the details.

I suspect anything outside of that would need to wait for the as-yet unimplemented Plugin API (see #206).

@anantshri

This comment has been minimized.

Show comment
Hide comment
@anantshri

anantshri Apr 14, 2016

Thanks for the pointer will check them out.
Also is there a way to remove one of the default plugin's in mkdocs (meta, toc, tables, and fenced_code).

I am most probably trying to find a way with minimal tweaks in core mkdocs stuff or files coz with auto builds that basically means more tweaking and testing of build environment and more chances of failure.

anantshri commented Apr 14, 2016

Thanks for the pointer will check them out.
Also is there a way to remove one of the default plugin's in mkdocs (meta, toc, tables, and fenced_code).

I am most probably trying to find a way with minimal tweaks in core mkdocs stuff or files coz with auto builds that basically means more tweaking and testing of build environment and more chances of failure.

@d0ugal

This comment has been minimized.

Show comment
Hide comment
@d0ugal

d0ugal Apr 24, 2016

Member

Also is there a way to remove one of the default plugin's in mkdocs (meta, toc, tables, and fenced_code).

No, not at the moment. Some of these are required for MkDocs to work, I have not experimented with disabling any. Are they causing a problem?

Member

d0ugal commented Apr 24, 2016

Also is there a way to remove one of the default plugin's in mkdocs (meta, toc, tables, and fenced_code).

No, not at the moment. Some of these are required for MkDocs to work, I have not experimented with disabling any. Are they causing a problem?

@d0ugal d0ugal closed this Apr 24, 2016

@anantshri

This comment has been minimized.

Show comment
Hide comment
@anantshri

anantshri Apr 27, 2016

@d0ugal toc is something i wanted to remove for a specific project of mine. but i think i will end up creating a custom theme for it.

anantshri commented Apr 27, 2016

@d0ugal toc is something i wanted to remove for a specific project of mine. but i think i will end up creating a custom theme for it.

@d0ugal

This comment has been minimized.

Show comment
Hide comment
@d0ugal

d0ugal Apr 27, 2016

Member

Yup, makes sense. I think the toc extension is the one we rely on the most 😄

Member

d0ugal commented Apr 27, 2016

Yup, makes sense. I think the toc extension is the one we rely on the most 😄

@anantshri

This comment has been minimized.

Show comment
Hide comment
@anantshri

anantshri Apr 29, 2016

i think this simple pull request should add this feature in default set and yet doesn't impact much #917

anantshri commented Apr 29, 2016

i think this simple pull request should add this feature in default set and yet doesn't impact much #917

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment