Closed ErikBjare closed 6 years ago
A couple of more things to do:
<detail>
tag with <ul><li><ul>
inside don't seem to work.===
) are styled smaller than minor headings (##
).The http://kojojs.kogics.net online IDE for Scala is now a lot improved, and I think most of our examples could be run there as well now.
This brings up the question of if it would be possible to write conditional markdown - to let the user switch between viewing scala and python examples. Any ideas on that? This would save a lot of work in trying to keep separate files in sync.
@gorelhedin It is possible with our current jekyll setup. Please have a look at the multilang branch in my fork, specifically: afe53ba634b46d21482de2c655564d7e8fe7c831
This is based purely on the liquid markup used by jekyll, by writing or finding a plugin specialized for this maybe we could make it cleaner but it is already fairly simple. Basically:
scala.md
and python.md
)proglang
and ext
, we should standardise this if we go with this approach)README.md
README.md
use liquid markup to alter the page depending on the variablesIn my README.md
I've used different approaches to demonstrate what can be achieved:
proglang
variable so that the highlighting is correctinclude_relative
with the extension variable to include 1.py
or 1.scala
depending on the language @ahnlabb That sounds great! Thanks for the examples. I'll try it out.
Just found this neat resource on how to style <details>
, I'd recommend skimming it for a more fruitful discussion about how we want it: http://html5doctor.com/the-details-and-summary-elements/
@gorelhedin <ul><li>Test</li></ul>
seems to work inside <details>
(the closing </li>
tag is required for some XHTML-parsing reason).
Edit: <ul><li/>Test</ul>
also works.
Added some very basic styling of <details>
in https://github.com/lunduniversity/schoolprog/commit/76bb4ebcfbe8922a829e8c8743aa81b041620601
@ErikBjare Thanks, nice resource! I'd like a little more space after each </details>
. Would that be possible?
@ErikBjare Looks great! Thanks!
@ErikBjare Help! I did some changes to the turtle exercise, and now the web site does not build! I have tried to read the error message, but I don't understand what is wrong. Can you help?
@ErikBjare In investigating a bit more, it seems that the only difference from the last build is that Travis fails in the last step with the message "Couldn't push the build to github.com/lunduniversity/schoolprog.git:gh-pages". In googling this, it is suggested that this kind of error occurs when the branch is protected: https://github.com/travis-ci/travis-ci/issues/8548. However, as far as I can see, we don't have any protected branches. Any more ideas?
@remexre Thanks a lot - the workaround solved our problem!
Good enough for now.
We might want to make some changes to the design of the website, I'll just drop some ideas here.
Features
<detail>
tag better (see discussion here)Some themes