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

add custom homepage intro #53

Closed
cs01 opened this issue Apr 30, 2019 · 6 comments
Closed

add custom homepage intro #53

cs01 opened this issue Apr 30, 2019 · 6 comments
Labels
bug Something isn't working question Not a bug, but a FAQ entry

Comments

@cs01
Copy link
Contributor

cs01 commented Apr 30, 2019

It would be nice if the homepage allowed some more context to be written. For example, passing the path to an arbitrary markdown file, such as the README.md, or any other arbitrary content.

Example call:

pdoc --index README.md --html mypackage

@kernc
Copy link
Member

kernc commented Apr 30, 2019

Besides module-level docstrings rendering before the API reference, we support .. include:: reST directive.

I.e., in your main module:

"""
Some introductory text ...

.. include:: ../README.md
"""
...

@kernc kernc closed this as completed Apr 30, 2019
@kernc kernc added invalid This is not a (valid) bug report question Not a bug, but a FAQ entry and removed invalid This is not a (valid) bug report labels Apr 30, 2019
@cs01
Copy link
Contributor Author

cs01 commented Apr 30, 2019

Thanks that definitely helps. I have some html in my markdown and it looks like it has some trouble formatting it. Any tips?

@kernc
Copy link
Member

kernc commented Apr 30, 2019

Should be fixed in master. 😳 Thanks!

@cs01
Copy link
Contributor Author

cs01 commented Apr 30, 2019

Thanks! That is definitely better. There is still some abnormal formatting though.

From this markdown source code

**Documentation**: https://cs01.github.io/pygdbmi/
**Source Code**: https://github.com/cs01/pygdbmi

@kernc kernc added the bug Something isn't working label Apr 30, 2019
@kernc
Copy link
Member

kernc commented Apr 30, 2019

Should be fixed in master. Thanks again! And keep them coming! 😆

@cs01
Copy link
Contributor Author

cs01 commented Apr 30, 2019

Nice, thanks for all the quick responses. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Not a bug, but a FAQ entry
Development

No branches or pull requests

2 participants