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 upbest practices for GitHub pages? #55
Comments
This comment has been minimized.
This comment has been minimized.
|
What's wrong with invoking |
This comment has been minimized.
This comment has been minimized.
|
Every person that uses pdoc with GitHub pages has to encounter the problem, think of a workaround, then write the workaround. It's not a huge deal, but eliminating as many of those little things as possible adds up to a better developer experience, which leads to more adoption of pdoc. (Sphinx has so many of these it drove me to look for a better tool, and here I am at pdoc For example,
|
This comment has been minimized.
This comment has been minimized.
|
But pdoc CLI usage allows for more than one module/package specified.
|
This comment has been minimized.
This comment has been minimized.
|
What do you think of either
|
This comment has been minimized.
This comment has been minimized.
Then you'd have another doorway page (like the
No. Specifying multiple projects is the mechanism by which you make pdoc aware of, and thereby link to, symbols in disjunct packages. The problem with 1. is that subsequent runs are not deterministically idempotent. $ pdoc --html -o docs project1
# Creates a different filesystem hierarchy.
# Doesn't reliably warn for overwriting project1.
# Leaves docs/index.html to remain stale and misleading.
$ pdoc --html -o docs project1 project2This idea also won't work because it would break existing CI / deployments. |
This comment has been minimized.
This comment has been minimized.
|
Before we go too far down the implementation route, I would like to ask whether you think publishing docs to GitHub pages is a workflow a large percentage of users will be interested in doing, and is therefore valuable for |
This comment has been minimized.
This comment has been minimized.
|
True. I'm personally not convinced that running Let's maybe leave this open for a while and see how many votes it accrues. |
kernc
added
enhancement
question
labels
Apr 30, 2019
This comment has been minimized.
This comment has been minimized.
|
Sounds good. In the mean time I can add something to the docs describing this workflow. |
This comment has been minimized.
This comment has been minimized.
|
Add a thumbs up to this comment if building easier GitHub page workflows in pdoc is important to you |
This comment has been minimized.
This comment has been minimized.
florimondmanca
commented
Apr 30, 2019
|
Hey! I'm interested in All that said, I totally agree that at least documenting a typical workflow for GitHub pages would be a nice extra. |
cs01 commentedApr 30, 2019
GitHub pages are a common way to host documentation for sites. They require one of the following to host in source code:
Right now I'm using master branch
/docsfor pygdbmi, and I have what I would assume is a very common project structure, yet my workflow has a little hack in it. I generate my docs with the following make recipe:Is there a way to generate docs directly to the
--output-dir? By namespacing it with the package name, it breaks it for GitHub pages.