HIDAPI web site #5
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Someone should work on a web site presenting the hidapi project and subprojects (like Python wrapper).
goals:
One technical solution is to use github pages https://pages.github.com/ and host the web site at https://hidapi.libusb.info/ (the name does not exist yet but I can create it)
I've opened #16 to make the library documentation build again.
As http://signal11.us/ is down for some time, this should be prioritized - at least so the hidapi documentation is accessible again.
@LudovicRousseau could you please create the subdomain hidapi.libusb.info? I'm going to work to make the documentation live again.
I think it would be reasonable to create a subpage of hidapi with brief description, which will keep the style of libusb.info. From that page, we will link to doxygen docs.
I can create the subdomain hidapi.libusb.info.
How do you want me to configure it?
Where do you want to host the web site?
Do you want to host the web pages at github as is the case for libusb with https://github.com/libusb/libusb.github.com ?
I think we are going to host the subdomain at github pages. I have some initial version here: https://qbicz.github.io/hidapi/group__API.html (I need to add overview page similar to libusb.info, right now it's API description only).
We can keep the website as a separate repo (just like libusb project does) or in
docs/directory.What information do you need?
I created the project https://github.com/libusb/hidapi.github.io/
The (empty) web site is available at http://libusb.info/hidapi.github.io/
I am not sure it is possible to have http://hidapi.libusb.info/ to be redirected to http://libusb.info/hidapi.github.io/ using the DNS. A CNAME record will not work.
Maybe it is better to host the website in the
/docsfolder of https://github.com/libusb/hidapiThe URL would then be https://libusb.info/hidapi and no need to update the DNS.
@Qbicz any comment?
The only available options for github pages are:
I guess you also have access to the 'Settings' of the hidapi project. You should be admin of the project/
I see the project has a
github_pagesbranch. Maybe the branch should be calledgh-pagesor the HTML pages should be stored in/docsin the master branch as documented in https://help.github.com/en/articles/configuring-a-publishing-source-for-your-github-pages-site@LudovicRousseau I think having address https://libusb.info/hidapi is fine. I also support idea of having the page on master branch in
/docs.Now I see you have tried a CNAME pointing to the hidapi.libusb.info and that it didn't work. Do you have idea why?
After a few trial & error, I would suggest having a simple website like this:
https://qbicz.github.io/hidapi/
The layout is the Github Pages Jekyll theme "Minimal" and the content is generated from README.md of github project. What I want is link to
https://qbicz.github.io/hidapi/group__API.htmlsomewhere high on this page so the doc is easily accessible.I also need to sort out doxygen directory layout, because it will not work currently if the doxygen html output is not in the main webpage directory.
Now the doxygen pages work like they should and the front page looks reasonable. What do you think @Youw @z3ntu @todbot?
https://qbicz.github.io/hidapi/ looks fine to me. Way better than nothing.
Will we be able to replace it later with some separate page (without modifying a README)? (README is great but not really intended to be a real website home page.)
@Qbicz you can't use a CNAME to redirect from http://hidapi.libusb.info/ to http://libusb.info/hidapi.github.io/. You can only redirect from one hostname to another hostname. You can't add anything to the URL.
You should be admin of the hidapi project. You have everything needed to enable github pages by yourself. It not just tell me.
https://qbicz.github.io/hidapi/ redirects to https://hidapi.libusb.info/ and not reachable.
I was expecting @Qbicz to enable github pages for this project. He/she should have all access rights needed.
But still nothing was done.
https://qbicz.github.io/hidapi/ is okay now.
https://hidapi.libusb.info/ is not reachable though.
https://qbicz.github.io/hidapi/ becomes outdated.
I don't see volunteers or any actual work regarding having a HIDAPI website.
Even https://qbicz.github.io/hidapi/ - it is just a copy of the README.
I say that README + Wiki page is more than enough for documentary purposes.
As for (automatic) Doxygen generation and release on some web page - let's reopen this/get back to it, when someone will be willing to actually make it done.
Related: #357
I can do this so easily for you. I think it is important to have a site that outlines the actual API because different people have different learning abilities. Personally, learning by example, namely the terse script in the README, isn't one of my strengths.
Required tasks
use the README as a Doxygen main page. All other .md files can be included as well, but they would go in a separate tab (usually named "Related Pages" but that can be customized).github.com/libusb/hidapi@bd6be4d83b/BUILD.md (L90-L95)The above links will not work when viewing the BUILD.md doc from Doxygen's output.
I know there's a way to create PDFs from Doxygen's latex output, but this seems like a secondary goal. I'm not well versed in creating a PDF from Doxygen's output though.
Volunteers are always welcome.
If any specific admin/configuration assistance is needed on libusb or hidapi side - ask here. I'll either help myself or (if unable) will find someone who can.
@Youw I need feedback on this:
Would you like to continue only using github to host the BUILD.*.md pages? If you want to host them with Doxygen as well, then it would take a lot more work to fix the linked URLs.
We can start not duplicating the same documentation on both Github and Doxygen.
I love current approach with
.mdon Github because it is simple and I'm well familiar with the syntax, etc.If we eventually come up with something else (e.g. a tiny README on github and everything else moved to Doxygen/HIDAPI website) - I'm fine with it a long run. Whatever makes better sense in the end.
Thanks. I'll leave the md files as is. I've put together a special md file that would only get used as the Doxygen-rendered "Main Page" (which links back to the repo and the BUILD.*.md files). I've also added the hidtest/test.c module as a documented example; each documented API member used in the test.c will automatically be cross-linked to the member's doc info 🤓 .
PR inbound shortly...
#521 is briliant, thanks
I've noticed interesting behavior: once we update the
gh-pageswith updated documentation - a special job is started, e.g.: https://github.com/libusb/hidapi/actions/runs/4617127465, which actually deploys the content of the branch elsewhere.And it uses: https://github.com/actions/deploy-pages
Also, I've found another sample:
@2bndy5 how about we try to use
actions/deploy-pages@v2instead ofpeaceiris/actions-gh-pages@v3and avoid the branch completely?