Skip to content

Commit

Permalink
Merge pull request #34 from HugoGranstrom/nimv2
Browse files Browse the repository at this point in the history
add converter from new default set type
  • Loading branch information
HugoGranstrom authored Aug 3, 2023
2 parents 216d3c8 + 8608f4c commit fc96adc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/valid.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
name: Generate nimiSlides docs
name: Tests

on:
pull_request:
branches:
- main

jobs:
gen:
name: Validate PR
runs-on: ubuntu-latest

tests:
runs-on: ubuntu-latest
strategy:
matrix:
nim:
- '1.6.x'
- 'stable'
- 'devel'
fail-fast: false
name: Nim ${{ matrix.nim }}
steps:
- uses: actions/checkout@v2
- uses: iffy/install-nim@v4
- uses: jiro4989/setup-nim-action@v1
with:
version: ${{ matrix.nim }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install deps
run: |
nimble install -y
Expand Down
2 changes: 1 addition & 1 deletion nimiSlides.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.3"
version = "0.2.4"
author = "Hugo Granström"
description = "Reveal.js theme for nimib"
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions src/nimiSlides.nim
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ proc toSet*(x: Slice[int]): set[range[0..65535]] =
proc toSet*(x: seq[Slice[int]]): set[range[0..65535]] =
for s in x:
result.incl s.toSet()
proc toSet*(x: set[range[0..255]]): set[range[0..65535]] =
for y in x:
result.incl y


template animateCode*(lines: string, body: untyped) =
Expand Down

0 comments on commit fc96adc

Please sign in to comment.