taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
691 stars 86 forks source link

Script to create simple cross-referenced HTML from GamCommands.txt #339

Closed jhgarrison closed 1 year ago

jhgarrison commented 1 year ago

I've left the HTML wrapper very simple since I don't know how or if you might want to use the output.

Feel free to customize or suggest improvements.

taers232c commented 1 year ago

I've confused myself, are you available to meet/zoom?

taers232c commented 1 year ago

How do I reference the file from _Sidebar.md?

jhgarrison commented 1 year ago

I didn't write a "final" css or HTML wrapper because I assumed you'd tweak the output to match whatever you needed to integrate it into the existing wiki.  The script is intended to be run whenever there are changes to GamCommands.txt, to produce an HTML.  You can link it from the wiki pages or just provide it as a tool for users to make their own cross-reference HTML.  If this isn't clear, let me know what your end goal is and I'll try to help.

taers232c commented 1 year ago

It's the link in _Sidebar.md that I'm having trouble with. I put in the link to the html and what I got was raw html, not interpreted.

Ross

On Fri, Mar 10, 2023 at 11:27 AM Jim Garrison @.***> wrote:

I didn't write a "final" css or HTML wrapper because I assumed you'd tweak the output to match whatever you needed to integrate it into the existing wiki. The script is intended to be run whenever there are changes to GamCommands.txt, to produce an HTML. You can link it from the wiki pages or just provide it as a tool for users to make their own cross-reference HTML. If this isn't clear, let me know what your end goal is and I'll try to help.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/pull/339#issuecomment-1464303763, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4635EDQ2INBBWYMD3W3N6DBANCNFSM6AAAAAAVVYCU4A . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Ross Scroggs @.***

jhgarrison commented 1 year ago

I don't see _Sidebar.md anywhere, I'm relatively new to GitHub.

Also, I may be the one that's confused.  I've been using this site for reference, but now I see it may be completely separate from your wiki.  Do you control that site as well?

taers232c commented 1 year ago

_Sidebar.md in the Wiki

On Fri, Mar 10, 2023 at 3:00 PM Jim Garrison @.***> wrote:

I don't see sidebar.md anywhere, I'm relatively new to GitHub.

Also, I may be the one that's confused. I've been using this site https://sites.google.com/jis.edu.bn/gam-commands/home for reference, but now I see it may be completely separate from your wiki. Do you control that site as well?

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/pull/339#issuecomment-1464609211, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL2ZKM2WQHMB5LSPLETW3OXA5ANCNFSM6AAAAAAVVYCU4A . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Ross Scroggs @.***

jhgarrison commented 1 year ago

The wiki doesn't get forked when you fork a project, and I don't have editor access to your wiki.  There's a workaround for cloning the wiki, which I will try shortly.  I believe the issue is that the Wiki wants markdown instead of HTML, so I'll have to figure out how to enable HTML, if that's possible, or generate markdown instead.  

If I need to generate markdown I won't be able to work on it until next week.  I'll let you know.

Are you involved with the GAMADV-XTD3 Google Site?

jhgarrison commented 1 year ago

The markdown documentation says inline HTML should work.  Can you try removing all the wrapper HTML and including only the HTML between <body> and </body> not including those two tags?  If that doesn't work I'll try cloning the wiki and play with it.

jhgarrison commented 1 year ago

I got it to work partially. Unfortunately, GitHub seems to "sanitize" <div> tags and removes the id= and style= attributes, breaking all the links and formatting.  Sigh.  I'll take a better look at this next week, it shouldn't be too hard to generate markdown instead of HTML.

taers232c commented 1 year ago

You're now a collaborator on the Wiki.

This site is managed by James Seymour in Brunei GAMADV-XTD3 Google Site?