ev3dev.github.io icon indicating copy to clipboard operation
ev3dev.github.io copied to clipboard

Elaborate on Step #7

Open tcwan opened this issue 7 years ago • 14 comments

Expand on the choice of programming languages and development steps. This needs to be merged in conjunction with changes to ev3dev repository for source images.

tcwan avatar Dec 15 '17 06:12 tcwan

Many languages don't have a concept of a tool chain for our purposes, mainly because they're interpreted/JITted. Perhaps this information should live in the repository docs for C and C++ libs; what do you think? What's the main use case you are looking to address with this info?

I appreciate the work you're doing and the critical eye to improvements across all our areas!

WasabiFan avatar Dec 15 '17 06:12 WasabiFan

I agree with @WasabiFan that the Getting Started page is not the best place for this since most people don't ever need to think about toolchains. How about we just put this on the wiki for now and once it is streamlined and polished up, I think it will be more clear to us where it will fit.

dlech avatar Dec 15 '17 16:12 dlech

Ok. I'll start by drafting the info in the Wiki then.

But Is there a way to specify a URL to refer to a diagram in the repository which points to (i) a specific version (ii) the latest version canonically without the long hashed URLs?

tcwan avatar Dec 15 '17 23:12 tcwan

  • specific version, not using the git hash: use a git tag, e.g. https://github.com/tcwan/ev3dev/raw/ev3dev-jessie-2017-09-14/logo/ev3devLogo128.png
  • latest version: use a git branch, e.g. https://github.com/tcwan/ev3dev/raw/tcwan-wiki-swarch-1/images/workflow-c-cpp.svg

You can also clone the wiki as a git repository and upload images that way. You probably won't have permission to push to the ev3dev organization's wiki via git, but you can push to your copy of the wiki and I can merge it.

dlech avatar Dec 16 '17 00:12 dlech

You can also clone the wiki as a git repository and upload images that way. You probably won't have permission to push to the ev3dev organization's wiki via git, but you can push to your copy of the wiki and I can merge it.

I'm not sure how to clone the ev3dev-wiki. The wiki repository does not show up in the ev3dev repository as a subproject??

From the wiki page, Github only allows me to clone it locally to my system, which would imply that my clone is not hosted on Github. Consequently I'm not sure if you can merge it unless I create a new project in my Github account for the wiki.

tcwan avatar Dec 18 '17 01:12 tcwan

I'm not sure how to clone the ev3dev-wiki.

git clone https://github.com/ev3dev/ev3dev.wiki.git

https://help.github.com/articles/adding-and-editing-wiki-pages-locally/

Then you can push to your fork of the ev3dev repository.

cd ev3dev.wiki
git remote add tcwan https://github.com/tcwan/ev3dev.wiki.git
git push -f tcwan master

dlech avatar Dec 18 '17 02:12 dlech

Or you can just edit the ev3dev wiki directly and I can copy the images later if that is easier for you. 😃

dlech avatar Dec 18 '17 02:12 dlech

Then you can push to your fork of the ev3dev repository. cd ev3dev.wiki git remote add tcwan https://github.com/tcwan/ev3dev.wiki.git git push -f tcwan master

That was what I thought I should do but I wasn't sure if it's what you meant. Thanks for clarifying.

tcwan avatar Dec 18 '17 06:12 tcwan

I found out that I cannot create my copy of the wiki repository on github.com manually from the dashboard (the website rejects any repository names ending in .wiki). Instead I had to create a new wiki from my fork of the ev3dev repository and then replace its contents with those from the original ev3dev.wiki.

In addition, checkins using https:// don't work for me (it'll always reject my user/pass), I have to use git:// checkins.

Anyway, all this is sorted out now, I'll work on the actual contents and update here when something is in reasonable shape.

tcwan avatar Dec 20 '17 03:12 tcwan

Sorry to bug you guys constantly, but I'm pretty new to the whole Github.io and Markdown formatting process. I tried embedding URLs into the SVG but I think that Github sanitizes the SVG file to remove embedded links, and lead to missing boxes in the flowchart.

This is what I'm getting currently: https://github.com/tcwan/ev3dev/wiki/Getting-Started-Developing-on-ev3dev

If I remove the embedded URLs then the missing boxes render correctly, but that reduces the functionality of the guide tremendously.

In addition, I'm not sure if this will affect content of all pages hosted on Github.io or only the Wiki, and if there is a good way to whitelist the embedded URLs.

tcwan avatar Dec 20 '17 04:12 tcwan

~~Where exactly are these URLs? If you're just rendering an SVG in the wiki, its content shouldn't be modified by GitHub at all... it's just your browser rendering the SVG file. So I would be inclined to say this sounds like a general problem with the SVG rather than something GitHub-specific.~~

FWIW, I see the missing boxes too.

Edit: @dlech has done the research -- it looks like GitHub does modify hosted content after all for XSS protection.

WasabiFan avatar Dec 20 '17 04:12 WasabiFan

https://stackoverflow.com/questions/13808020/include-an-svg-hosted-on-github-in-markdown

dlech avatar Dec 20 '17 04:12 dlech

Sounds like I'm really hitting the edge-cases here trying to embed URLs in SVGs. Sigh. If there's no resolution in the short term I'll have to resort to alternative ways of presenting the information (without linking to URLs from the SVG).

tcwan avatar Dec 20 '17 05:12 tcwan

Hi, Happy New year to everyone!

I've be filling in the details for the content in my fork of the Wiki: https://github.com/tcwan/ev3dev/wiki/Getting-Started-Developing-on-ev3dev

Please take a look

tcwan avatar Jan 02 '18 03:01 tcwan