diff --git a/src/_layouts/default.haml b/src/_layouts/default.haml index 5c6106d..3244a04 100644 --- a/src/_layouts/default.haml +++ b/src/_layouts/default.haml @@ -1,7 +1,7 @@ !!! 5 %html %head - %title PGM XML Documentation + %title Overcast Network Documentation %meta{:"http-equiv" => "Content-Type", :content => "text/html;charset=utf-8"} %meta{:name => "viewport", :content => "width=device-width, initial-scale=1.0"} - @rand = SecureRandom.hex(13) @@ -21,7 +21,7 @@ .navbar-header %a.navbar-brand{:href => "/"} %img{:src => "https://oc.tc/assets/logo.png"} - PGM XML Documentation + Overcast Network Documentation %button.navbar-toggle{:type => "button", :"data-toggle" => "collapse", :"data-target" => ".navbar-main-collapse"} %span.sr-only Toggle navigation %span.icon-bar @@ -29,22 +29,27 @@ %span.icon-bar %nav.collapse.navbar-collapse.navbar-main-collapse %ul.nav.navbar-nav.navbar-right - %li{:class => (current_page.include?("index") ? "active" : "")} + %li{:class => (current_page.include?("/src/index") ? "active" : "")} %a{:href => "/"} %i.glyphicon.glyphicon-home - Home - %li{:class => (current_page.include?("modules") ? "active" : "")} - %a{:href => "/modules/main"} - %i.glyphicon.glyphicon-th-large - Modules - %li{:class => (current_page.include?("reference") ? "active" : "")} - %a{:href => "/reference/inventory"} - %i.glyphicon.glyphicon-book - Reference - %li{:class => (current_page.include?("examples") ? "active" : "")} - %a{:href => "/examples"} + Overview + %li{:class => (current_page.include?("/src/xml") ? "active" : "")} + %a{:href => "/xml/"} %i.glyphicon.glyphicon-file - Examples + XML Docs + %li{:class => (current_page.include?("/src/api") ? "active" : "")} + %a{:href => "/api/"} + %i.glyphicon.glyphicon-globe + API Docs + - if current_page.include?("/xml/") + .container + %ul.nav.nav-tabs.subnav + = partial('xml_nav') + - elsif current_page.include?("/api/") + .container + %ul.nav.nav-tabs.subnav + = partial('api_nav') + = yield .container %hr diff --git a/src/_partials/api_nav.haml b/src/_partials/api_nav.haml new file mode 100644 index 0000000..050b713 --- /dev/null +++ b/src/_partials/api_nav.haml @@ -0,0 +1,8 @@ +%li.pull-right{:class => (current_page.include?("/src/api/reference") ? "active" : "")} + %a{:href => "/api/reference/"} + %i.glyphicon.glyphicon-book + Reference +%li.pull-right{:class => (current_page.match(/\/src\/api\/[^\/]*$/) != nil ? "active" : "")} + %a{:href => "/api/"} + %i.glyphicon.glyphicon-transfer + Usage \ No newline at end of file diff --git a/src/_partials/examples_sidebar.haml b/src/_partials/examples_sidebar.haml index fce284c..2b695f0 100644 --- a/src/_partials/examples_sidebar.haml +++ b/src/_partials/examples_sidebar.haml @@ -1,9 +1,9 @@ - @nav_title = "Map XML Examples" - @subnav_content = [\ -- {"path" => "examples/snowy_wars", "name" => "Snowy Wars"},\ -- {"path" => "examples/viridun", "name" => "Viridun"},\ -- {"path" => "examples/harb", "name" => "Harb"},\ -- {"path" => "examples/rfv3", "name" => "Race For Victory 3"},\ -- {"path" => "examples/eldritch", "name" => "GS: Eldritch"}] +- {"path" => "xml/examples/snowy_wars", "name" => "Snowy Wars"},\ +- {"path" => "xml/examples/viridun", "name" => "Viridun"},\ +- {"path" => "xml/examples/harb", "name" => "Harb"},\ +- {"path" => "xml/examples/rfv3", "name" => "Race For Victory 3"},\ +- {"path" => "xml/examples/eldritch", "name" => "GS: Eldritch"}] = partial('sidebar') diff --git a/src/_partials/modules_sidebar.haml b/src/_partials/modules_sidebar.haml index 7144fa7..151691d 100644 --- a/src/_partials/modules_sidebar.haml +++ b/src/_partials/modules_sidebar.haml @@ -1,36 +1,36 @@ - @nav_title = "XML Modules" - @subnav_content = [\ -- {"path" => "modules/main", "name" => "Main Map Element"},\ -- {"path" => "modules/includes", "name" => "XML File Includes"},\ -- {"path" => "modules/tutorial", "name" => "Map Tutorial"},\ +- {"path" => "xml/", "name" => "Main Map Element", "match" => /xml\/index\.[^\/]*$/},\ +- {"path" => "xml/includes", "name" => "XML File Includes"},\ +- {"path" => "xml/tutorial", "name" => "Map Tutorial"},\ - "Game Modes",\ -- {"path" => "modules/gamemode_ctw", "name" => "Capture the Wool"},\ -- {"path" => "modules/gamemode_dtm", "name" => "Destroy the Monument"},\ -- {"path" => "modules/gamemode_blitz", "name" => "Blitz"},\ -- {"path" => "modules/gamemode_dtc", "name" => "Destroy the Core"},\ -- {"path" => "modules/gamemode_tdm", "name" => "Team Death-match"},\ -- {"path" => "modules/gamemode_other", "name" => "Other Game Modes"},\ +- {"path" => "xml/gamemode_ctw", "name" => "Capture the Wool"},\ +- {"path" => "xml/gamemode_dtm", "name" => "Destroy the Monument"},\ +- {"path" => "xml/gamemode_blitz", "name" => "Blitz"},\ +- {"path" => "xml/gamemode_dtc", "name" => "Destroy the Core"},\ +- {"path" => "xml/gamemode_tdm", "name" => "Team Death-match"},\ +- {"path" => "xml/gamemode_other", "name" => "Other Game Modes"},\ - "Game Settings",\ -- {"path" => "modules/teams", "name" => "Teams"},\ -- {"path" => "modules/rules", "name" => "Rules"},\ -- {"path" => "modules/kits", "name" => "Kits"},\ -- {"path" => "modules/classes", "name" => "Classes"},\ -- {"path" => "modules/items", "name" => "Items & Armor"},\ -- {"path" => "modules/potions", "name" => "Potion Effects"},\ -- {"path" => "modules/repair_remove", "name" => "Repair & Remove"},\ -- {"path" => "modules/disabledamage", "name" => "Disable Damage"},\ -- {"path" => "modules/projectiles", "name" => "Projectiles"},\ -- {"path" => "modules/tnt", "name" => "TNT"},\ -- {"path" => "modules/mobs", "name" => "Mob Spawning"},\ -- {"path" => "modules/killreward", "name" => "Kill Reward"},\ -- {"path" => "modules/other_settings", "name" => "Other Settings"},\ +- {"path" => "xml/teams", "name" => "Teams"},\ +- {"path" => "xml/rules", "name" => "Rules"},\ +- {"path" => "xml/kits", "name" => "Kits"},\ +- {"path" => "xml/classes", "name" => "Classes"},\ +- {"path" => "xml/items", "name" => "Items & Armor"},\ +- {"path" => "xml/potions", "name" => "Potion Effects"},\ +- {"path" => "xml/repair_remove", "name" => "Repair & Remove"},\ +- {"path" => "xml/disabledamage", "name" => "Disable Damage"},\ +- {"path" => "xml/projectiles", "name" => "Projectiles"},\ +- {"path" => "xml/tnt", "name" => "TNT"},\ +- {"path" => "xml/mobs", "name" => "Mob Spawning"},\ +- {"path" => "xml/killreward", "name" => "Kill Reward"},\ +- {"path" => "xml/other_settings", "name" => "Other Settings"},\ - "Filters & Regions",\ -- {"path" => "modules/filters", "name" => "Filters"},\ -- {"path" => "modules/regions", "name" => "Regions"},\ -- {"path" => "modules/spawns", "name" => "Spawns"},\ -- {"path" => "modules/playable_region", "name" => "Playable Region"},\ -- {"path" => "modules/lanes", "name" => "Lanes"},\ -- {"path" => "modules/portals", "name" => "Portals"},\ -- {"path" => "modules/score_boxes", "name" => "Score Boxes"}] +- {"path" => "xml/filters", "name" => "Filters"},\ +- {"path" => "xml/regions", "name" => "Regions"},\ +- {"path" => "xml/spawns", "name" => "Spawns"},\ +- {"path" => "xml/playable_region", "name" => "Playable Region"},\ +- {"path" => "xml/lanes", "name" => "Lanes"},\ +- {"path" => "xml/portals", "name" => "Portals"},\ +- {"path" => "xml/score_boxes", "name" => "Score Boxes"}] = partial('sidebar') diff --git a/src/_partials/reference_sidebar.haml b/src/_partials/reference_sidebar.haml index 184007a..d4e1ec6 100644 --- a/src/_partials/reference_sidebar.haml +++ b/src/_partials/reference_sidebar.haml @@ -1,8 +1,8 @@ - @nav_title = "General Reference" - @subnav_content = [\ -- {"path" => "reference/inventory", "name" => "Inventory"},\ -- {"path" => "reference/formatting", "name" => "Formatting & Colors"},\ -- {"path" => "reference/enchantments", "name" => "Enchantments"},\ -- {"path" => "reference/potion_effects", "name" => "Potions"}] +- {"path" => "xml/reference/inventory", "name" => "Inventory"},\ +- {"path" => "xml/reference/formatting", "name" => "Formatting & Colors"},\ +- {"path" => "xml/reference/enchantments", "name" => "Enchantments"},\ +- {"path" => "xml/reference/potion_effects", "name" => "Potions"}] = partial('sidebar') diff --git a/src/_partials/sidebar.haml b/src/_partials/sidebar.haml index a92bdeb..f81da08 100644 --- a/src/_partials/sidebar.haml +++ b/src/_partials/sidebar.haml @@ -6,8 +6,12 @@ %ul.dropdown-menu.subnav-dropdown{:role => "menu", :"style" => "width: 100%;"} - @subnav_content.each do |item| - if item.kind_of?(Hash) - %li{:class => (current_page.include?("#{item['path']}") ? "active" : "")} - %a{:href => "/#{item['path']}"} #{item['name']} + - if item.has_key?('match') + %li{:class => (current_page.match(item['match']) ? "active" : "")} + %a{:href => "/#{item['path']}"} #{item['name']} + - else + %li{:class => (current_page.include?("#{item['path']}") ? "active" : "")} + %a{:href => "/#{item['path']}"} #{item['name']} - elsif item.kind_of?(String) %li.divider %li.dropdown-header #{item} @@ -17,8 +21,12 @@ %ul.nav.nav-pills.nav-stacked.docs-nav-pills - @subnav_content.each do |item| - if item.kind_of?(Hash) - %li{:class => (current_page.include?("#{item['path']}") ? "active" : "")} - %a{:href => "/#{item['path']}"} #{item['name']} + - if item.has_key?('match') + %li{:class => (current_page.match(item['match']) ? "active" : "")} + %a{:href => "/#{item['path']}"} #{item['name']} + - else + %li{:class => (current_page.include?("#{item['path']}") ? "active" : "")} + %a{:href => "/#{item['path']}"} #{item['name']} - elsif item.kind_of?(String) %li %h4 #{item} diff --git a/src/_partials/xml_nav.haml b/src/_partials/xml_nav.haml new file mode 100644 index 0000000..aaea462 --- /dev/null +++ b/src/_partials/xml_nav.haml @@ -0,0 +1,12 @@ +%li.pull-right{:class => (current_page.include?("/src/xml/examples") ? "active" : "")} + %a{:href => "/xml/examples/"} + %i.glyphicon.glyphicon-file + Examples +%li.pull-right{:class => (current_page.include?("/src/xml/reference") ? "active" : "")} + %a{:href => "/xml/reference/inventory"} + %i.glyphicon.glyphicon-book + Reference +%li.pull-right{:class => (current_page.match(/\/src\/xml\/[^\/]*$/) != nil ? "active" : "")} + %a{:href => "/xml/"} + %i.glyphicon.glyphicon-th-large + Modules diff --git a/src/api/index.haml b/src/api/index.haml new file mode 100644 index 0000000..ad47625 --- /dev/null +++ b/src/api/index.haml @@ -0,0 +1,13 @@ +.container + .jumbotron.jumbotron-mini + %h1 Web API Documentation + %p.lead Usage + %section + .alert.alert-danger + %strong Heads up! + The Web API is currently in + %i BETA + and this information is subject to change without notice. + .alert.alert-info + %strong No documentation yet. + As the Web API takes more shape these pages will fill up. diff --git a/src/api/reference/index.haml b/src/api/reference/index.haml new file mode 100644 index 0000000..6503102 --- /dev/null +++ b/src/api/reference/index.haml @@ -0,0 +1,13 @@ +.container + .jumbotron.jumbotron-mini + %h1 Web API Documentation + %p.lead Reference + %section + .alert.alert-danger + %strong Heads up! + The Web API is currently in + %i BETA + and this information is subject to change without notice. + .alert.alert-info + %strong No documentation yet. + As the Web API takes more shape these pages will fill up. diff --git a/src/css/style.css b/src/css/style.css index d19c537..e64d7b8 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -9,7 +9,8 @@ body { float: left; } -.navbar a i.glyphicon { +.navbar a i.glyphicon, +.subnav a i.glyphicon { font-size: 12px; margin-bottom: 1px; } @@ -24,23 +25,19 @@ body { background-color: #e7e7e7; } -.jumbotron { +.jumbotron-mini { position: relative; color: #fff; background: #450f43; -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); - -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); + -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); } /* Jumbotron pattern overlay ------------------------- */ -.jumbotron .container { - position: relative; - z-index: 2; -} -.jumbotron:after { +.jumbotron-mini:after { background: url("../img/grid-15px.png") repeat scroll center center transparent; content: ''; display: block; @@ -50,10 +47,36 @@ body { bottom: 0; left: 0; opacity: .8; + z-index: 0; +} + +@media (min-width: 768px) { + .jumbotron-mini { + padding: 30px 30px; + padding-bottom: 20px; + } + .jumbotron-mini h1 { + font-size: 45px; + } + .jumbotron-mini .lead { + font-size: 20px; + } +} +@media (max-width: 767px) { + .jumbotron-mini { + padding: 24px 40px; + padding-bottom: 14px; + } +} +.jumbotron-mini .lead { + margin-bottom: 10px; +} +.jumbotron-mini h1 { + margin-top: 0; } code { - padding: 1px 4px; + padding: 1px 4px; } .right-ref-link { @@ -75,10 +98,23 @@ code { float: none !important; } +.subnav { + margin-bottom: 30px; +} + .docs-nav-pills > li > a { position: relative; display: block; - padding: 8px 14px; + padding: 3px 15px +} + +.docs-nav-pills h4 { + padding-bottom: 5px; + border-bottom: 1px solid #ddd; +} + +.well h1 { + margin-top: 0; } .dropdown-menu > .active > a{ diff --git a/src/index.haml b/src/index.haml index 04b77d3..ba9bea7 100644 --- a/src/index.haml +++ b/src/index.haml @@ -1,8 +1,52 @@ .container - .jumbotron.subhead - %h1 PGM XML Documentation - %p.lead Documentation on XML files that are required for each map added to the servers %section .page-header %h1 Welcome - %p These docs provide valuable information to be used when coding XML files. XML files are needed in order for any map released on the Overcast Network to function. The XML defines aspects of the game such as spawn points, kits and more. + %p + Documentation pertaining to XML files and the web API can be found here. + %p + This information is useful to people who wish to create XML files for maps; or Overcast Network related minecraft mods, applications, etc. + %br + .row + .col-md-6.text-center + .well + %h1 + %i.glyphicon.glyphicon-file + %h4 XML Documentation + %p + These docs provide valuable information for coding + %br + XML files. XML files are needed in order for any map + %br + released on the Overcast Network to function. The XML + %br + defines aspects of the game such as spawn points, kits and more. + %a.btn.btn-primary.btn-lg{:href => "/xml/"} Browse the XML docs + + + .col-md-6.text-center + .well + %h1 + %i.glyphicon.glyphicon-globe + %h4 Web API Documentation + %p + Here you can find out how to access data relating to the + %br + Overcast Network and its users. This API can be used to + %br + query a users score, maps currently being played, and more. + %br + %b Note: + The Web API is incomplete and in + %i BETA. + %a.btn.btn-primary.btn-lg{:href => "/api/"} Browse the API docs + + %p.text-muted + This documentation is open source and can be found on + = succeed '.' do + %a{:href => "https://github.com/OvercastNetwork/docs.oc.tc/", :target => :blank} GitHub + If you see any errors or lack of information, feel free to + %a{:href => "https://github.com/OvercastNetwork/docs.oc.tc/issues/new", :target => :blank} report an issue + or + = succeed '.' do + %a{:href => "https://github.com/OvercastNetwork/docs.oc.tc/fork", :target => :blank} make a pull request diff --git a/src/modules/classes.haml b/src/xml/classes.haml similarity index 99% rename from src/modules/classes.haml rename to src/xml/classes.haml index 455ab86..f48d018 100644 --- a/src/modules/classes.haml +++ b/src/xml/classes.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/disabledamage.haml b/src/xml/disabledamage.haml similarity index 99% rename from src/modules/disabledamage.haml rename to src/xml/disabledamage.haml index c97e454..231d62b 100644 --- a/src/modules/disabledamage.haml +++ b/src/xml/disabledamage.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/examples/eldritch.haml b/src/xml/examples/eldritch.haml similarity index 99% rename from src/examples/eldritch.haml rename to src/xml/examples/eldritch.haml index e034e64..af0aa52 100644 --- a/src/examples/eldritch.haml +++ b/src/xml/examples/eldritch.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Examples %p.lead XML File Examples %section diff --git a/src/examples/harb.haml b/src/xml/examples/harb.haml similarity index 99% rename from src/examples/harb.haml rename to src/xml/examples/harb.haml index 1643d5f..a9c68b2 100644 --- a/src/examples/harb.haml +++ b/src/xml/examples/harb.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Examples %p.lead XML File Examples %section diff --git a/src/examples.haml b/src/xml/examples/index.haml similarity index 94% rename from src/examples.haml rename to src/xml/examples/index.haml index b95e6d5..600aa5f 100644 --- a/src/examples.haml +++ b/src/xml/examples/index.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Examples %p.lead XML File Examples %section diff --git a/src/examples/rfv3.haml b/src/xml/examples/rfv3.haml similarity index 99% rename from src/examples/rfv3.haml rename to src/xml/examples/rfv3.haml index 15ae13d..8e7d03b 100644 --- a/src/examples/rfv3.haml +++ b/src/xml/examples/rfv3.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Examples %p.lead XML File Examples %section diff --git a/src/examples/snowy_wars.haml b/src/xml/examples/snowy_wars.haml similarity index 99% rename from src/examples/snowy_wars.haml rename to src/xml/examples/snowy_wars.haml index 2cda012..fb86b29 100644 --- a/src/examples/snowy_wars.haml +++ b/src/xml/examples/snowy_wars.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Examples %p.lead XML File Examples %section diff --git a/src/examples/viridun.haml b/src/xml/examples/viridun.haml similarity index 99% rename from src/examples/viridun.haml rename to src/xml/examples/viridun.haml index 617e860..6834437 100644 --- a/src/examples/viridun.haml +++ b/src/xml/examples/viridun.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Examples %p.lead XML File Examples %section diff --git a/src/modules/filters.haml b/src/xml/filters.haml similarity index 99% rename from src/modules/filters.haml rename to src/xml/filters.haml index ec47f99..9df2d39 100644 --- a/src/modules/filters.haml +++ b/src/xml/filters.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/gamemode_blitz.haml b/src/xml/gamemode_blitz.haml similarity index 97% rename from src/modules/gamemode_blitz.haml rename to src/xml/gamemode_blitz.haml index 7513a4a..5e1e7ee 100644 --- a/src/modules/gamemode_blitz.haml +++ b/src/xml/gamemode_blitz.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Modes %section diff --git a/src/modules/gamemode_ctw.haml b/src/xml/gamemode_ctw.haml similarity index 98% rename from src/modules/gamemode_ctw.haml rename to src/xml/gamemode_ctw.haml index 528f85d..5c08d7a 100644 --- a/src/modules/gamemode_ctw.haml +++ b/src/xml/gamemode_ctw.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Modes %section diff --git a/src/modules/gamemode_dtc.haml b/src/xml/gamemode_dtc.haml similarity index 97% rename from src/modules/gamemode_dtc.haml rename to src/xml/gamemode_dtc.haml index 6bb33e6..fa8f1ce 100644 --- a/src/modules/gamemode_dtc.haml +++ b/src/xml/gamemode_dtc.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Modes %section diff --git a/src/modules/gamemode_dtm.haml b/src/xml/gamemode_dtm.haml similarity index 97% rename from src/modules/gamemode_dtm.haml rename to src/xml/gamemode_dtm.haml index b9a6166..908dc38 100644 --- a/src/modules/gamemode_dtm.haml +++ b/src/xml/gamemode_dtm.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Modes %section diff --git a/src/modules/gamemode_other.haml b/src/xml/gamemode_other.haml similarity index 98% rename from src/modules/gamemode_other.haml rename to src/xml/gamemode_other.haml index 7760791..bbb6f6a 100644 --- a/src/modules/gamemode_other.haml +++ b/src/xml/gamemode_other.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Modes %section diff --git a/src/modules/gamemode_tdm.haml b/src/xml/gamemode_tdm.haml similarity index 97% rename from src/modules/gamemode_tdm.haml rename to src/xml/gamemode_tdm.haml index aa9fa7e..512bb7b 100644 --- a/src/modules/gamemode_tdm.haml +++ b/src/xml/gamemode_tdm.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Modes %section diff --git a/src/modules/includes.haml b/src/xml/includes.haml similarity index 97% rename from src/modules/includes.haml rename to src/xml/includes.haml index 9237925..355296f 100644 --- a/src/modules/includes.haml +++ b/src/xml/includes.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead XML Helpers %section diff --git a/src/modules/main.haml b/src/xml/index.haml similarity index 98% rename from src/modules/main.haml rename to src/xml/index.haml index 739bfd2..b4b6dbe 100644 --- a/src/modules/main.haml +++ b/src/xml/index.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Main Map Element %section diff --git a/src/modules.haml b/src/xml/index2.haml similarity index 97% rename from src/modules.haml rename to src/xml/index2.haml index 4bdae99..385c157 100644 --- a/src/modules.haml +++ b/src/xml/index2.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Building blocks for the map XML. %section diff --git a/src/modules/items.haml b/src/xml/items.haml similarity index 99% rename from src/modules/items.haml rename to src/xml/items.haml index 2a76ab4..be88578 100644 --- a/src/modules/items.haml +++ b/src/xml/items.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/killreward.haml b/src/xml/killreward.haml similarity index 96% rename from src/modules/killreward.haml rename to src/xml/killreward.haml index 97d719d..d3ec557 100644 --- a/src/modules/killreward.haml +++ b/src/xml/killreward.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/kits.haml b/src/xml/kits.haml similarity index 98% rename from src/modules/kits.haml rename to src/xml/kits.haml index a420dc6..094006f 100644 --- a/src/modules/kits.haml +++ b/src/xml/kits.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/lanes.haml b/src/xml/lanes.haml similarity index 97% rename from src/modules/lanes.haml rename to src/xml/lanes.haml index 7e76a98..144c0e0 100644 --- a/src/modules/lanes.haml +++ b/src/xml/lanes.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/mobs.haml b/src/xml/mobs.haml similarity index 98% rename from src/modules/mobs.haml rename to src/xml/mobs.haml index fa68ee4..9ce9a5f 100644 --- a/src/modules/mobs.haml +++ b/src/xml/mobs.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/other_settings.haml b/src/xml/other_settings.haml similarity index 98% rename from src/modules/other_settings.haml rename to src/xml/other_settings.haml index a0df44d..0a064d6 100644 --- a/src/modules/other_settings.haml +++ b/src/xml/other_settings.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/playable_region.haml b/src/xml/playable_region.haml similarity index 97% rename from src/modules/playable_region.haml rename to src/xml/playable_region.haml index 2eced81..f0b5a53 100644 --- a/src/modules/playable_region.haml +++ b/src/xml/playable_region.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/portals.haml b/src/xml/portals.haml similarity index 99% rename from src/modules/portals.haml rename to src/xml/portals.haml index d3f1503..48cadf0 100644 --- a/src/modules/portals.haml +++ b/src/xml/portals.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/potions.haml b/src/xml/potions.haml similarity index 97% rename from src/modules/potions.haml rename to src/xml/potions.haml index fa8a0f0..5b5fb5e 100644 --- a/src/modules/potions.haml +++ b/src/xml/potions.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/projectiles.haml b/src/xml/projectiles.haml similarity index 98% rename from src/modules/projectiles.haml rename to src/xml/projectiles.haml index 0937873..328f74e 100644 --- a/src/modules/projectiles.haml +++ b/src/xml/projectiles.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/reference/enchantments.haml b/src/xml/reference/enchantments.haml similarity index 99% rename from src/reference/enchantments.haml rename to src/xml/reference/enchantments.haml index c50415a..db53cc4 100644 --- a/src/reference/enchantments.haml +++ b/src/xml/reference/enchantments.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Reference /%p.lead Main map element %section diff --git a/src/reference/formatting.haml b/src/xml/reference/formatting.haml similarity index 99% rename from src/reference/formatting.haml rename to src/xml/reference/formatting.haml index e4599f3..90323d9 100644 --- a/src/reference/formatting.haml +++ b/src/xml/reference/formatting.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Reference /%p.lead Main map element %section diff --git a/src/reference.haml b/src/xml/reference/index.haml similarity index 96% rename from src/reference.haml rename to src/xml/reference/index.haml index 6c4ae87..7ffe9c3 100644 --- a/src/reference.haml +++ b/src/xml/reference/index.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Reference %section .row diff --git a/src/reference/inventory.haml b/src/xml/reference/inventory.haml similarity index 93% rename from src/reference/inventory.haml rename to src/xml/reference/inventory.haml index f9b52b4..c27a1fd 100644 --- a/src/reference/inventory.haml +++ b/src/xml/reference/inventory.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Reference /%p.lead Main map element %section diff --git a/src/reference/potion_effects.haml b/src/xml/reference/potion_effects.haml similarity index 99% rename from src/reference/potion_effects.haml rename to src/xml/reference/potion_effects.haml index 752c05f..4d677b1 100644 --- a/src/reference/potion_effects.haml +++ b/src/xml/reference/potion_effects.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Reference /%p.lead Main map element %section diff --git a/src/modules/regions.haml b/src/xml/regions.haml similarity index 99% rename from src/modules/regions.haml rename to src/xml/regions.haml index c2cef3a..112dc93 100644 --- a/src/modules/regions.haml +++ b/src/xml/regions.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/repair_remove.haml b/src/xml/repair_remove.haml similarity index 98% rename from src/modules/repair_remove.haml rename to src/xml/repair_remove.haml index e41b9ed..57e99f7 100644 --- a/src/modules/repair_remove.haml +++ b/src/xml/repair_remove.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/rules.haml b/src/xml/rules.haml similarity index 95% rename from src/modules/rules.haml rename to src/xml/rules.haml index dc0d6c9..ddc7796 100644 --- a/src/modules/rules.haml +++ b/src/xml/rules.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/score_boxes.haml b/src/xml/score_boxes.haml similarity index 97% rename from src/modules/score_boxes.haml rename to src/xml/score_boxes.haml index 44ffdec..4cfff25 100644 --- a/src/modules/score_boxes.haml +++ b/src/xml/score_boxes.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/spawns.haml b/src/xml/spawns.haml similarity index 99% rename from src/modules/spawns.haml rename to src/xml/spawns.haml index 490dcb9..1b0e3c2 100644 --- a/src/modules/spawns.haml +++ b/src/xml/spawns.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Filters & Regions %section diff --git a/src/modules/teams.haml b/src/xml/teams.haml similarity index 97% rename from src/modules/teams.haml rename to src/xml/teams.haml index 892c2b3..706710b 100644 --- a/src/modules/teams.haml +++ b/src/xml/teams.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/tnt.haml b/src/xml/tnt.haml similarity index 96% rename from src/modules/tnt.haml rename to src/xml/tnt.haml index 9358cbf..a607532 100644 --- a/src/modules/tnt.haml +++ b/src/xml/tnt.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead Game Settings %section diff --git a/src/modules/tutorial.haml b/src/xml/tutorial.haml similarity index 98% rename from src/modules/tutorial.haml rename to src/xml/tutorial.haml index 622a231..ba97e8c 100644 --- a/src/modules/tutorial.haml +++ b/src/xml/tutorial.haml @@ -1,5 +1,5 @@ .container - .jumbotron.subhead + .jumbotron.jumbotron-mini %h1 Modules %p.lead General %section