Giter VIP home page Giter VIP logo

carpentries / styles Goto Github PK

View Code? Open in Web Editor NEW
84.0 69.0 95.0 2.83 MB

Styles for The Carpentries lessons. No README to avoid merge conflicts with lessons. Demo ๐Ÿ‘‡

Home Page: https://carpentries.github.io/lesson-example

License: Other

CSS 3.17% Makefile 3.85% HTML 43.85% JavaScript 1.24% R 5.04% Python 34.34% Shell 0.36% Ruby 0.49% SCSS 7.67%
carpentries carpentries-infrastructure template english stable

styles's People

Contributors

abbycabs avatar alanocallaghan avatar alee avatar anacost avatar brandoncurtis avatar brownsarahm avatar erinbecker avatar evanwill avatar fmichonneau avatar gvwilson avatar joaorodrigues avatar josephmje avatar jsta avatar katrinleinweber avatar mawds avatar maxim-belkin avatar mr-c avatar neon-ninja avatar orchid00 avatar pbanaszkiewicz avatar raynamharris avatar rgaiacs avatar synesthesiam avatar tkphd avatar tobyhodges avatar tracykteal avatar twitwi avatar unode avatar wclose avatar zkamvar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

styles's Issues

Use CSS beautifier

I would like to use http://csscomb.com to ensure one code style.

The configuration that I like to use is

{
    "remove-empty-rulesets": true,
    "always-semicolon": true,
    "color-case": "lower",
    "block-indent": "  ",
    "color-shorthand": false,
    "element-case": "lower",
    "eof-newline": false,
    "leading-zero": true,
    "quotes": "single",
    "sort-order-fallback": "abc",
    "space-before-colon": "",
    "space-after-colon": " ",
    "space-before-combinator": " ",
    "space-after-combinator": " ",
    "space-between-declarations": "\n",
    "space-before-opening-brace": "\n",
    "space-after-opening-brace": "\n",
    "space-after-selector-delimiter": "\n",
    "space-before-selector-delimiter": "",
    "space-before-closing-brace": "\n",
    "strip-spaces": true,
    "tab-size": true,
    "unitless-zero": true,
    "vendor-prefix-align": true
}

Numbering the lessons in the schedule

How would people feel about numbering the lessons in the schedule? I personally like to be able to say things like "we will be covering up to lesson number x today" during workshops.

Use 00:00 as a default start time for lessons

Lessons currently use 09:00 as a start time for the schedule - @jduckles suggests using 00:00 (to show elapsed time). This makes sense for half-day lessons, but it's helpful with full-day lessons to show where the lunch break comes (12:00 is more easily understood than 03:00). Preferences?

Check formatting of links

Links should be exactly one of:

  • [title][footer-tag-to-external-URL]
  • [title]({{ site.root }}/something)
  • [title](#local-label)

css for SQL lessons

Hi,
I have some suggestions on the template for the SQL lessons:

Padding:
*I see that most if not all tables need a bit more of bottom padding, the letters in the next paragraph are too close.
*Challenges on the other side are very spacious in between, and probably the question title should be a bit smaller.
Colors:
*Table headers, I don't know if it is just me, but that blue is too dark to be combined with black... just saying...

This is a duplicate from:
swcarpentry/sql-novice-survey#27
suggested by Raniere Silva to be copied here.

Check that R packages required by the lesson are installed

We need to check that all the packages required by a lesson, and this check should probably live in this repository so the code is consistent across lessons that use R packages.

The problem is that, a priori, this repository doesn't know which package a lesson will need. I can think of a couple of approaches:

  1. We hard code in this repository all packages used across lessons based on R. Probably the easiest, but not very practical, as adding a new package dependency in a lesson requires a pull request here, and merging the changes back in the lesson repository.
  2. We create a file within each repository that lists the packages the lesson uses (ร  la DESCRIPTION). A script in the styles repository would parse this file and check that the packages are available.
  3. We use a per lesson approach and let maintainers make the appropriate modifications to the code in their lessons to make sure that the packages their lessons rely on are available.

I think 2 is my preferred option. Any thoughts or better solution @naupaka, @noamross, @gvwilson?

github ribbon placed incorrectly

the CSS that determines the position of the github ribbon needs to be updated as it clashes with the newer version of bootstrap, and it's a little too far to the right.

bin/util.py fails to run if user has python 2.7 as system default

Perhaps worth adding a check for python version? Not a python guru myself so not sure best way to handle this. Or maybe I just missed something somewhere. But it looks like a python 3 print() call is gumming things up.

Noticed because make lesson-check was failing for me.

make lesson-check                                                                                  ย 
Traceback (most recent call last):
  File "bin/lesson_check.py", line 14, in <module>
    from util import Reporter, read_markdown, load_yaml, check_unwanted_files, require, IMAGE_FILE_SUFFIX
  File "/Users/naupaka/git/Software_Carpentry/r-novice-gapminder/bin/util.py", line 10
    print('Unable to import YAML module: please install PyYAML', file=sys.stderr)
                                                                     ^
SyntaxError: invalid syntax
make: *** [lesson-check] Error 1

Isolated to the script:

python bin/util.py                                                                                  
  File "bin/util.py", line 10
    print('Unable to import YAML module: please install PyYAML', file=sys.stderr)
                                                                     ^
SyntaxError: invalid syntax

No problem with python3.

python3 bin/util.py
<<no output>>

Improve layout for figure caption

Isn't clear what is the caption and the text.

fig

Need a layout for

$ pandoc <<EOF
![foo](bar.jpg)  
heredoc> EOF
<div class="figure">
<img src="bar.jpg" alt="foo" />
<p class="caption">foo</p>
</div>

that are compatible with

$ pandoc -t html5 <<EOF
![foo](bar.jpg)
EOF
<figure>
<img src="bar.jpg" alt="foo" /><figcaption>foo</figcaption>
</figure>

Add pre-commit hook to check key features of lessons.

  1. Add script to be used by Travis-CI to check correctness of lessons' Markdown.
  2. Modify bin/lesson_check.py so that it only reports unexpected images in check-all mode (so that extra images don't trigger a build failure).

should this repo also include SWC logos?

Following @wking's suggestion in carpentries/workshop-template#152, it seems that we need to discuss whether the SWC logos should be included in this repository.

Currently, the workshop template gets the logo from software-carpentry.org, while the logo is included in the repository for lesson templates and the main website.

Having them in a single location would limit duplication, allow for offline rendering of the workshop templates, and facilitates serving over https. If we decide to go this way, we will probably need to create a new directory that will only contain images shared across all sites.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.