mp-units icon indicating copy to clipboard operation
mp-units copied to clipboard

No docs for older Library versions

Open WBurzynski opened this issue 2 years ago • 10 comments

Github pages contain only documentation for 2.0 and 2.1. Old documentation page does not work.

WBurzynski avatar Oct 02 '23 22:10 WBurzynski

Yes, that is unfortunate 😢 As we changed the documentation framework from Sphinx to mkdocs, I was unable to force mkdocs to present old docs properly (with CSS styles being used). I am unfortunately not a good web developer... 😉

If someone knows how to attach Sphinx-generated docs to mkdocs then please do not hesitate to contact me and we will expose old docs right away.

mpusz avatar Oct 02 '23 22:10 mpusz

as a workaround maybe you can set up secondary repo with just the docs?

WBurzynski avatar Oct 02 '23 22:10 WBurzynski

I can try to do it when I have a bit of free time. However, the expectation is that the old version will not be maintained anymore, and the developers should migrate to a new version as soon as possible. The docs for the old version are in the sources and can be easily built by anyone interested.

mpusz avatar Oct 02 '23 23:10 mpusz

I would like to work on this and fix this, any starting tips?

yahya-mohammed07 avatar Oct 04 '23 15:10 yahya-mohammed07

Awesome! Please find the snapshot of the latest docs for mp-units 0.8 attached. It would be great if it could be somehow attached to the current mk-docs.

The instructions to build current docs can be found here: https://mpusz.github.io/mp-units/2.1/getting_started/installation_and_usage/#building-documentation.

mp-units-docs-0.8.zip

mpusz avatar Oct 04 '23 16:10 mpusz

Please find the snapshot of the latest docs for mp-units 0.8 attached. It would be great if it could be somehow attached to the current mk-docs.

I guess you can upload it as a release asset. In my opinion this would be the next best place to serve the generated documentation.

i-ky avatar Oct 04 '23 20:10 i-ky

I guess you can upload it as a release asset. In my opinion this would be the next best place to serve the generated documentation.

Good idea. However, it seems I do not know how to do that :-(

Is it possible to do it from the web interface, or do I have to somehow figure out how the REST API works?

mpusz avatar Oct 04 '23 23:10 mpusz

I guess you can upload it as a release asset. In my opinion this would be the next best place to serve the generated documentation.

Good idea. However, it seems I do not know how to do that :-(

Is it possible to do it from the web interface, or do I have to somehow figure out how the REST API works?

Use the release editing web interface, there should be an interface to upload an asset manually. Here is how it looks for one of my repos: image

P.S. There is nothing to be ashamed of, if you don't know this corner of GitHub's UI. I happen to know this only because I was too lazy to automate the release process and ended up compiling and uploading binaries manually. :)

i-ky avatar Oct 05 '23 08:10 i-ky

Done! The docs for the V1 can be found here: https://github.com/mpusz/mp-units/releases/tag/v0.8.0.

Thanks @i-ky!

mpusz avatar Oct 05 '23 13:10 mpusz

@yahya-mohammed07, in order to have different versions of the docs we use mike. You can find all the information here: https://github.com/jimporter/mike.

mpusz avatar Oct 05 '23 13:10 mpusz

@yahya-mohammed07 are you still working on it? If not, can we close this issue?

mpusz avatar May 30 '24 10:05 mpusz

@yahya-mohammed07 are you still working on it? If not, can we close this issue?

Yeah close it please, sorry for being late

yahya-mohammed07 avatar May 30 '24 10:05 yahya-mohammed07