Giter VIP home page Giter VIP logo

carpentries-theme's People

Contributors

abbycabs avatar alanocallaghan avatar brandoncurtis avatar dpshelio avatar erinbecker avatar evanwill avatar fmichonneau avatar gvwilson avatar henryiii avatar ianlee1521 avatar jduckles avatar jpallen avatar jsta avatar katrinleinweber avatar kekoziar avatar mawds avatar maxim-belkin avatar mr-c avatar neon-ninja avatar pbanaszkiewicz avatar pipitone avatar remram44 avatar rgaiacs avatar synesthesiam avatar tkphd avatar tobyhodges avatar tracykteal avatar twitwi avatar unode avatar wclose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

carpentries-theme's Issues

Error: Undefined variable: "$color-warning"

Hey there,

I'm encountering the following error when running make serve in a Carpentries lesson repo:

bundle exec jekyll serve
Configuration file: /Users/username/Desktop/repos/geospatial-python/_config.yml
            Source: /Users/username/Desktop/repos/geospatial-python
       Destination: /Users/username/Desktop/repos/geospatial-python/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
      Remote Theme: Using theme carpentries/carpentries-theme
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/lesson.scss':
                    Undefined variable: "$color-warning". on line 56
jekyll 3.9.0 | Error:  Undefined variable: "$color-warning". on line 56

Looks like $color-warning is a new addition, but it isn't defined in the code boxes section of lesson.scss as the other code box colors are.

Edit: found it. Probably just missed while cherry picking!

Add a Readme

and a description to this repo, because it should have one and because people unfamiliar with Jekyll don't stand a chance at figuring out its purpose without either of them.

It looks like USAGE.md is essentially a Readme, but it doesn't get previewed because it's not named Readme, and it may not be obvious to people to look there to understand the purpose of the repo.

Syntax highlighting for Snakemake (and Nextflow) language snippets

Hi,

I'm currently working on https://github.com/carpentries-incubator/snakemake-novice-bioinformatics which includes many snippets of Snakemake syntax. Snakemake is a superset of Python, so elsewhere in the incubator (eg. https://github.com/carpentries-incubator/workflows-snakemake) these code blocks are just marked as {. :language-python}. This is not ideal as the header for the code block then says "Python". I've been using simply {. :language} as I write new lessons, but of course this leaves all the code monochrome and the header just says "Code".

I'm not sure how the syntax highlighting engine works in all this, but would it be possible to:

Ideally, add Snakemake-specific support, if a compatible syntax definition is available (I know some editors like Vim have support already).

Or else, provide a {. :language-snakemake} option which activates Python3 syntax highlighting but changes the heading of the code cell to "Snakemake". This will be much better than what we have now, and if a full Snakemake syntax highlighter ever becomes available in future then no change to the lessons will be needed to take advantage of it.

I know a similar change would be good for https://github.com/carpentries-incubator/workflows-nextflow. In this case the language would be "Nextflow" and if a full Nextflow highlighter is not available then Groovy syntax would be appropriate.

Cheers,
Tim

Broken footer links

I'm porting hpc-intro to use this remote theme, and it makes for a substantially lighter repository -- thanks!
Unfortunately, in the footer of every page, the links to the CC license, The Carpentries, and the Software Carpentry Foundation are broken. (The rest seem to work.)

2020-07-09_16:45:52

Can the new "Carpentries theme" footer merge in the old attributions, so we don't have confusingly no-op links?

Wrong site.repository value

In the link "If you teach this lesson, please tell the authors and provide feedback by opening an issue in the source repository" for beta lessons - the link URL is incorrectly set to https://github.com/<USERNAME>/<PROJECT>/issues

image

It should be reading the site.repository value but something is going wrong. Perhaps because https://github.com/carpentries/carpentries-theme/blob/main/_includes/life_cycle.html is missing from the gh-pages branch (and this is where the reading of the variable is happening)?

Links are difficult to distinguish from regular text (colours are too similar)

The dark blue colour of links in the bootstrap theme is not much different from black, and links are not underlined except on hover, so they can be difficult to spot.

I propose changing the colour of links generally, as I have done for this forked lesson website for a workshop being run now:

https://edcarp.github.io/genomics-r-intro/

Note: The links here have been made a bright blue. I have also changed the colour for links that have already been visited, and that is currently a bright pink, but this change is not necessary, or the colour could be modified to something else.

I can put together a PR for this, but would like to know if it would be preferable for the new CSS to be placed inside of the bootstrap file, or whether you would prefer a separate CSS file (which would also require adding a line to the base.html, and workshop.html layout files.

Unable to build lessons in offline mode

Hi folks,

I notice that with the "remote theme" option, there is no way to build
a lesson site if our laptop is in disconnected mode (i.e. no internet). As a context: I encountered this issue with the current version of "hpc-intro" lesson from HPC carpentry, which utilized this remote theme. I occasionally have to work with no internet, so this can create a limiting factor.

I am reporting a problem here for your awareness, though I am well aware that perhaps the solution cannot be worked out in this community alone.

A possible workaround is to install squid web caching software on the machine--perhaps this would work; I have not tested it yet. But I wonder if the remote theme software has a way to cache remote theme. I may cross post this issue on the jekyll-remote-theme issue for their attention.

Wirawan

local build fails on MacOS Big Sur

My local builds have stopped working, encountering some issue when trying to install ffi. After a bit of digging around, I have not been able to troubleshoot the problem. But, because local builds are working okay for lessons based on the most recent version of carpentries/styles, and I get the same error on multiple different lessons using the remote theme, I think I have isolated it to the remote theme and this is the right place to report the issue. I can provide the complete output of make serve if you think that will be helpful, but the "business end" with details of the error is copied below (with local paths redacted).

error: libtool: no output file specified (specify with -o output)
Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
[-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#]
[-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
make[4]: *** [libffi_convenience.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: ***
["/path/to/lesson/repository/redacted/.vendor/bundle/ruby/2.7.0/gems/ffi-1.15.3/ext/ffi_c/libffi-x86_64-darwin20"/.libs/libffi_convenience.a]
Error 2

make failed, exit code 2

Gem files will remain installed in
/path/to/lesson/repository/redacted/.vendor/bundle/ruby/2.7.0/gems/ffi-1.15.3 for inspection.
Results logged to
/path/to/lesson/repository/redacted/.vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/ffi-1.15.3/gem_make.out

An error occurred while installing ffi (1.15.3), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.15.3' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  github-pages was resolved to 218, which depends on
    github-pages-health-check was resolved to 1.17.2, which depends on
      typhoeus was resolved to 1.4.0, which depends on
        ethon was resolved to 0.14.0, which depends on
          ffi
make: *** [serve] Error 5

Larger, different font

Is the font in the remote theme supposed to be different than the font in styles? It renders as larger, bolder, and I find it to be less readable.

documentation

It would be great to include a README or USAGE to explain how this repo should be used.

Remote theme suddenly not working

In the last hour or so pulling the remote theme has suddenly stopped working. I saw there were some recent commits in the same timeframe. The error I am seeing is:

/path-to/hpc-intro/.vendor/bundle/ruby/2.7.0/gems/jekyll-remote-theme-0.4.2/lib/jekyll-remote-theme/downloader.rb:67:in `raise_unless_sucess': 404 - Not Found (Jekyll::RemoteTheme::DownloadError)

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.