Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature suggestion: Getting index.html contents from a markdown file #9
Comments
This comment has been minimized.
This comment has been minimized.
|
+1 |
This comment has been minimized.
This comment has been minimized.
|
Which README.md would that be, the one in the same directory as __init__.py or one upper? Only README.md or also readme.md, README.txt, README.rst? |
This comment has been minimized.
This comment has been minimized.
|
The way it would yield the most is with reST How do you feel about that? |
kernc
added this to the 0.6.0 milestone
Jan 25, 2019
This comment has been minimized.
This comment has been minimized.
|
If anyone would have a stab at that, the code is here. Lines 189 to 215 in e2739ce |
This comment has been minimized.
This comment has been minimized.
|
From the user's perspective, I was thinking of using it like:
|
This comment has been minimized.
This comment has been minimized.
|
I think that's too ambiguous. Every package with __init__.py has an index. Which index? Then, you can't control whether the injection is appended to or replaces the existing docstring. Do you particularly dislike the |
This comment has been minimized.
This comment has been minimized.
|
I'm in favor of the On a different page, what is rendered as index when I make |
This comment has been minimized.
This comment has been minimized.
|
I was just mentioning an alternative user interface in my previous comment. |
This comment has been minimized.
This comment has been minimized.
|
On a different page, what is rendered as index when I make pdoc build
multiple modules?
Each disjunct package produces its own directory. There is no index.html to
bind them.
|
kernc
added
enhancement
good first issue
labels
Jan 27, 2019
This comment has been minimized.
This comment has been minimized.
|
@kernc If you give me some pointers I'll happily write up a PR. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
I wrote up everything as described (including the start end stuff) in PR #16 . |
wq2012 commentedJan 24, 2019
Expected Behavior
Well, it's not something important, but a nice-to-have feature.
Currently the
<article>part ofindex.htmlcomes of the docstring of__init__.py. However, some authors prefer to leave the details of the package/module in a markdown file likeREADME.md, for easier access to the audience, instead of__init__.py.It might be a nice feature if
pdochas an argument that supports converting a markdown file to HTML and injecting the converted HTML part into the<article>part ofindex.html.Actual Behavior
N/A
Steps to Reproduce
N/A
Additional info
0.5.1