-
Notifications
You must be signed in to change notification settings - Fork 44
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
0.17.3: sphinx warnings reference target not found
#92
Comments
Thanks, but fasteners have migrated to mkdocs, so can't use your advice :( I suppose you have some usecase where you want to build your own docs instead of using https://fasteners.readthedocs.io/en/latest/, could you try to build them from the current The current workflow (inside the source tree) is
(There are couple of warning for now) |
That is really bad 😞 mkdoc is used only in handfull modules. At rhe same time (looking on my already done spec fires used to build pytjon modules as rpm packages) [tkloczko@devel-g2v SPECS]$ grep %sphinx_build_man python-* | wc -l; ls -1 python-*| wc -l
530
930 So statistically more than half (+5/9) modueles are using sphinx. |
Do you need man pages because you are packaging fasteners as an rpm package? In that case I don't mind supporting something extra that would help generate those man pages (without switching to sphinx for online docs - those I want to keep mkdocs). Any advice? And maybe you have man pages for older versions of fasteners (or any other python lib) I'd like to see how they look like. |
Man page it is still most popular documentation format on all unix platforms and this is why I've choose that format as most usefull and handy for all rpm packges with sphinx based documentation. [tkloczko@devel-g2v SPECS]$ man python-<tab><tab>
python-asttokens python-fastjsonschema. python-lxml python-prb python-sphinxcopybutton
python-attrs python-fonttools python-markupsafe python-prompt_toolkit python-sphinx_rtd_theme
python-babel python-importlib-metadata python-mock python-ptyprocess python-sphinx-theme-alabaster
python-backcall python-importlib_resources python-mpi4py python-py python-testpath
python-beautifulsoup python-ipython python-nbformat python-pydata-sphinx-theme python-testtools
python-build python-jedi python-numpydoc python-pygments python-tornado
python-charset-normalizer python-Jinja python-olefile python-pyparsing python-traitlets
python-cycler python-jmespath python-parso python-pyrsistent python-urllib3
python-cython python-jsonschema python-pep517 python-pytest python-wcwidth
python-decorator python-jupyter_core python-pillow python-requests python-wheel
python-execnet python-kiwi python-pluggy python-setuptools python-zipp In that casse time-to-reach-documentation is way shorter tan accessing some web page which URL you must know. As well |
IMO the best way would be leave current docs/ content as it is and add only docs/copy.py file to allow reuse all mkdoc files to be able generate out of those files documentation usig sphinx. |
ok, I will take a look when I have a spare moment |
Gentle ping .. any update? 😋 |
No updates from my end, sorry about that, and thanks for the ping. I had a quick google check now, and there are a couple of plugins that seem relevant. One of those is https://github.com/twardoch/mkdocs-combine, it should convert everything to pandoc and I assume that it is possible to convert that to man page. But it fails with error :( Another is https://github.com/orzih/mkdocs-with-pdf. This one works, and converts everything to pdf. Maybe it is possible to hijack it's intermediate output and make a man page? I still don't have time for this, if you would be willing to investigate these options, it would be great! :) |
Ah, and this one, looks maintained, and converts to html: https://github.com/timvink/mkdocs-print-site-plugin |
This has nothing to do with man page (AKA roff output). |
Sorry about that, I'm not familiar with the man page universe. I suppose this is not going to cut it? https://alldocs.app/convert-html-to-roff-man |
This is online service and I need something which can be executed on the system which is cut off from acces to the public networ 🤔 |
I understand, but I'm not willing to migrate to sphinx only because of this use case. Note that the current docs were not migrated to mkdocs, but they were written from scratch in mkdocs. So I can't just undo something, I would need to find a sphinx theme that works for me, and migrate things there. This is too much work for too little benefit. Anyway, could you give me hint on how do I view or compile and view this roff file? I would like to see how does the conversion result looks like. |
I'm not asking to migrate to sphinx. I'm asking to ADD/restore sphix support.
If we are talaking about sphinx I've already wrte that two times (look on forst line of that ticket)
You can view resil using standard unix |
I think this does what you need, can you give it a try?
and then
You need the following dependencies for that:
|
Given the lack of feedback, I'll close this as complete. |
So you are not going to provide sphinx support? 🤔 |
To what end? I thought you needed a roff file, and that can be produced with three lines of code I wrote above. |
Look .. with sphinx is possible to render 16 output formats. |
Fiirs 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 cand of fix is suggested in sphinx example copy py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file
Than .. on building my packages I'm using
sphinx-build
command with-n
switch which shows warmings about missing references. These are not critical issues.Here is the output with warnings:
You can peak on fixes that kind of issues in other projects
latchset/jwcrypto#289
click-contrib/sphinx-click@abc31069
The text was updated successfully, but these errors were encountered: