-
Notifications
You must be signed in to change notification settings - Fork 321
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
Theme cannot build with man
page outputs
#902
Comments
the recommended way to build our own docs is session.run("sphinx-build", "-b=html", "docs/", "docs/_build/html") which translates to sphinx-build -b=html docs/ docs/_build/html which succeeds for me when run from the repository root. Looking at your traceback, I see this:
which suggests you don't have the theme properly installed in your environment. I'll close as not reproducible, but if you still have trouble after properly installing the theme, feel free to re-open. |
This is why I've quoted patch which adds path to [..]
Or it is result of fact that sphinx was not able to locate Second thing is that you've been testing with generate html and I've quoted generate roff output (man page). |
sorry, I did not notice that you were trying to build
That can be fixed by adding
to the list of extensions in
Note that I do not get the initial error you report ( |
It is very usefull trick which allows:
|
Sounds reasonable, though it still won't get us past @jarrodmillman @choldgraf do you have opinions here? Seems like the vast majority of our users are building HTML, but if supporting buiding man pages is not too difficult (just a couple lines in our |
Man page still is basic/fundamental documentation format on all Unix platforms 😋 [tkloczko@pers-jacek SPECS]$ grep sphinx_build_man python-*spec | wc -l; ls -1 python-*.spec| wc -l
528
1016 So using one unifed rpm macro I was able to generate man pages for more than half of packaged pyton modules. --- a/docs/conf.py
+++ b/docs/conf.py
@@ -63,6 +63,17 @@
# This allows us to use ::: to denote directives, useful for admonitions
myst_enable_extensions = ["colon_fence", "substitution"]
+# Man ------------------------------------------------------------------
+man_pages = [
+ (
+ "index",
+ "python-pydata-sphinx-theme",
+ "PyData Sphinx Theme Python Module Documentation",
+ author,
+ 3,
+ )
+]
+
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for which generates Back to the topic .. I've not done that because I still have very long list of other packages to revierw/update .. 😞 |
I don't know anything about |
man
page outputs
I understand. Thank you 👍 |
agree with @choldgraf that we (maintainers) are already over-subscribed. If this is something you really want @kloczek you'll need to do the debugging yourself and open a PR; if it doesn't add too much complexity I'd be willing to merge it. But it sounds like you don't even use the theme (?) and you're doing this as a sort of... public service? quixotic pet project? not sure what to call it, so maybe that's a non-starter for you. I'll close on that assumption, but let us know if I'm wrong about that and we can re-open in anticipation of your PR. |
First of all currently it is not possible to use straight
sphinx-build
command to build documentation out of source treeThis can be fixed by patch like below:
This patch fixes what is in the comment and that can of fix is suggested in sphinx example copy.py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file
Than with that patch `sphinx-build fails with call trace
The text was updated successfully, but these errors were encountered: