Skip to content

How to spread out the content (mode does not seem to do it) #519

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

Closed
pranay-ar opened this issue Feb 8, 2025 · 2 comments
Closed

How to spread out the content (mode does not seem to do it) #519

pranay-ar opened this issue Feb 8, 2025 · 2 comments

Comments

@pranay-ar
Copy link

Hi all, I want my navigation bar to the on the left most part of the page, and the page map to be on the right most, right now it is centered on the page. I checked mintlify docs' docs.json and they do not do anything else to get that kind of layout. I looked in to the docs and the closest term I found relevant was Page Mode however even trying that did not make much difference. How do you suggest I achieve this?

My docs right now:

Image

Reference layout I want to achieve:

Image

You can see that in the reference layout, the sidebar is towards the left most corner of the page.

Secondly, is there a way to post an image below the code-blocks in a page automatically instead of writing a custsom css template for that page?

@hahnbeelee
Copy link
Member

add "theme": "palm" to you docs.json also update your cli to the latest verion npm i mintlify@latest -g

@pranay-ar
Copy link
Author

Thank you for the quick response, that worked!

A couple more questions:

  • Is there a way to position an image right below the code-blocks (basically on the right most corner of the page below the response fields) in a page automatically instead of writing a custsom css template for that page?
  • Is there a recommended pipeline/tutorial or a template to autogenerate docs from docstrings of a repo? For example a template for generating docs of a Python class, similar to this template that sphinx does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants