-
Notifications
You must be signed in to change notification settings - Fork 1
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
Moving the new ToH to the Wiki #16
Comments
I think it would be easy to move this new ToH to a separate URl served by the same Nginx instance as the Wiki. The bigger issue here is the missing cross references/links. |
@thess @soif I suspect you're right. I imagine it could be straightforward to construct a URL that had all the columns, filters, etc. that showed the "right stuff". But I wonder whether it's possible to "embed" the new ToH into a standard wiki page so that all the headings/menus/etc. are preserved.... |
Adding my new Table of Hardware (TOH) to DokuWiki seems not to be straightforward. DokuWiki doesn't allow including plain HTML or JavaScript by default for security reasons. It may be feasible to use the Dokuwiki iframe plugin. This would allow keeping the current OpenWRT site layout (header, left menu, footer), but if the TOH were hosted elsewhere (e.g., on GitHub), it would pose a significant security risk. I'm not sure if the DokuWiki admins would be able to restrict the usage of this plugin to particular wiki users only. The best approach would likely be to host the page directly on the OpenWrt webserver, perhaps on a subdomain, similar to how the current firmware selector is implemented. I don't have any contacts within the OpenWrt team, but if they were aware of this project and willing to adopt it, they would surely know the best way to integrate it. Modifying index.html to add an OpenWrt-like header would then be a matter of just a few minutes |
Both Ted Hess (@thess) and I are in the OpenWrt team, so you do have contacts. I'm not sure about the process of getting the new ToH accepted into the main system but we can look into this. I agree with Ted's suggestion that it's better use a subdomain on openwrt.org, similar to the Firmware Selector. And like the Firmware Selector, I imagine that it would be best to create an "OpenWrt-flavored" header/footer instead of trying to clone the wiki's template exactly. Here are a bunch of random thoughts of tasks to move this forward.
Another couple thoughts:
Thanks again! |
Happy to have some official OpenWrt contacts now! 😎 Regarding hosting: (If the OpenWrt team intends to integrate this project)
Code:
No problem. Would you like me to mimic the firmware selector page look?
I'm not sure I understand what you mean 👶
I obviously don't do it myself. I simply use the toh.json file that is certainly automatically built by some script, somewhere. I have absolutely no idea how this is done.
If the maintainer of the "distiller" script has anticipated this in their code, or slightly changes it to include new fields, from my side, including it in the new TOH is just a matter of adding the fields definition into the toh_conf.js. In fact, without doing anything, the new field(s) would automatically appear at the end (right) of the table. The configuration line to add simply gives the column a name, and defines how the sort is setuped. Maybe it's time to speak to your colleagues in the OpenWrt organization and ask them if they are interested in integrating this project or not. |
Before we charge ahead with anything here, we should at least see what the current authors: @jow- and/or @aparcar have to add. The existing ToH javascript is in https://github.com/openwrt/toh and deployed nightly by The I'm sure there is a connection between these 2 operations but I haven't found it yet. |
Sorry for the slow response I'll try to react on this over the weekend! Thanks for you work and interest this looks great |
Hi guys. |
Hi, I think it's great work and I'm happy to replace the current implementation. Could you create a PR against the existing implementation? So with the current approach this comment is then magically converted to HTML/JS
|
I thinks the deployment job on GitHub isn't used after all, @jow- created a script (Perl?) to generate the JSON, it's hosted directly on the openwrt.org domain here https://openwrt.org/toh.json From my side it's fine to drop the current views of the wiki and add toh.openwrt.org, serving this page like we do with firmware-selector.openwrt.org. If you want that, please write an email to the email lists, I won't decide this on my own. |
hi @aparcar
Thank you. Happy that you like it 😎
Where to push it?
I'm not sure where to put it ?
Confused 😕 😕 😕
IMHO, it sounds to be the best option. See my previous proposal...
Would you (OpenWrt team members) please discuss among yourselves, if you're interested/willing to use my work. Then, I would obsiouly comply to your wishes, and push the code to the appropriate place! |
The comments on the forum seem positive. Congratulations!
I think the next step would be to figure out how to move the new, improved ToH to the openwrt.org site. Here are some steps you'll need to know:
The text was updated successfully, but these errors were encountered: