-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added scenario setup content builder via jekyll plugin
- Loading branch information
Showing
157 changed files
with
107 additions
and
8,337 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
url: "http://vasl.info" | ||
baseurl: "" | ||
|
||
defaults: | ||
- | ||
scope: | ||
path: "" | ||
values: | ||
layout: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
require 'jekyll/document' | ||
|
||
module Jekyll | ||
|
||
# Recover from strange exception when starting server without --auto | ||
class SitemapFile < StaticFile | ||
def write(dest) | ||
true | ||
end | ||
end | ||
|
||
class SitemapGenerator < Generator | ||
priority :lowest | ||
|
||
# Config defaults | ||
FILE_NAME = "/setups/scen.html" | ||
|
||
# Goes through setup files and generates listing | ||
def generate(site) | ||
# Configuration | ||
sitemap_config = site.config['sitemap'] || {} | ||
|
||
# create destination directory if it doesn't exist yet | ||
Dir::mkdir(site.dest) if !File.directory? site.dest | ||
$fileHtml = File.new(File.join(site.dest, FILE_NAME), "w+") | ||
|
||
traverse(File.join(site.dest, "/setups")) | ||
|
||
$fileHtml.close() | ||
|
||
# Keep the file from being cleaned by Jekyll | ||
site.static_files << Jekyll::SitemapFile.new(site, site.dest, "/", FILE_NAME) | ||
end | ||
|
||
def process(path) | ||
if File.directory?(path) | ||
dir = File.basename(path) | ||
level = path.count('/') - 4 | ||
h = "h" + level.to_s | ||
$fileHtml.puts "<"+h+">" + dir + "</"+h+">" if dir != "Enhanced" | ||
else | ||
$fileHtml.puts "<p><a href='"+path+"'>" + File.basename(path, ".vsav") + "</a></p>" | ||
end | ||
end | ||
|
||
def traverse(path='.') | ||
Dir.entries(path).each do |name| | ||
next if name == '.' or name == '..' | ||
|
||
path2 = path + '/' + name | ||
process(path2) if File.basename(path2) != "scen.html" | ||
|
||
traverse(path2) if File.ftype(path2) == "directory" | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#setups h1, | ||
#setups h2, | ||
#setups h3, | ||
#setups h4, | ||
#setups h5, | ||
#setups h6 { | ||
margin: 5px 0; | ||
} | ||
|
||
#setups h1 { | ||
margin-left: 0; | ||
} | ||
|
||
#setups h2 { | ||
margin-left: 10px; | ||
} | ||
|
||
#setups h3 { | ||
margin-left: 20px; | ||
} | ||
|
||
#setups h4 { | ||
margin-left: 30px; | ||
} | ||
|
||
#setups h5 { | ||
margin-left: 40px; | ||
} | ||
|
||
#setups h6 { | ||
margin-left: 50px; | ||
} | ||
|
||
#setups p { | ||
margin: 0; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.