Skip to content

Commit

Permalink
another
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 5, 2024
1 parent 93bad57 commit 422987d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/filter-pyolite-safe
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require './_plugins/util'
require 'yaml'
require 'find'

Find.find('topics/').each do |fn|
if File.basename(fn) == 'tutorial.md'
data = YAML.load_file(fn)
data = safe_load_yaml(fn)
if data.key?('notebook') && (data['notebook'].key? 'pyolite')
parts = fn.split('/')
puts "_site/training-material/#{parts[0..-2].join('/')}/#{parts[1]}-#{parts[3]}.ipynb"
Expand Down

0 comments on commit 422987d

Please sign in to comment.