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

Comments

2 participants
@cs01
Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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 Apr 30, 2019

@kernc kernc added invalid question and removed invalid labels Apr 30, 2019

@cs01

This comment has been minimized.

Copy link
Contributor Author

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?
image

This is what it seems to have trouble with in the README.md:

<h1 align="center">
pygdbmi - Get Structured Output from GDB's Machine Interface
</h1>

<p align="center">
<a href="https://travis-ci.org/cs01/pygdbmi">
<img src="https://travis-ci.org/cs01/pygdbmi.svg?branch=master" />
</a>

<a href="https://pypi.org/project/pygdbmi/">
<img src="https://img.shields.io/badge/pypi-v0.9.0.1-blue.svg"/>
</a>

<img src="https://img.shields.io/badge/python-2.7,3.4,3.5,3.6,pypy-blue.svg"/>
<a href="https://github.com/ambv/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black" /></a>
</p>

kernc added a commit that referenced this issue Apr 30, 2019

@kernc

This comment has been minimized.

Copy link
Contributor

commented Apr 30, 2019

Should be fixed in master. 😳 Thanks!

@cs01

This comment has been minimized.

Copy link
Contributor Author

commented Apr 30, 2019

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

This is generated
image

From this markdown source code

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

@kernc kernc added the bug label Apr 30, 2019

kernc added a commit that referenced this issue Apr 30, 2019

@kernc

This comment has been minimized.

Copy link
Contributor

commented Apr 30, 2019

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

@cs01

This comment has been minimized.

Copy link
Contributor Author

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
You can’t perform that action at this time.