diff --git a/website/bot_overview.php b/website/bot_overview.php new file mode 100644 index 000000000..207010cc2 --- /dev/null +++ b/website/bot_overview.php @@ -0,0 +1,32 @@ + + + + + <?php echo ucwords(str_replace('_', ' ', basename(__FILE__, '.php'))); ?> + + + + + + + +
+ +
+ +
+

+ text(file_get_contents(__DIR__ . "/learn/bot/a_bots_life.md")); ?> +
+
+ +
+ + + + + + + + + diff --git a/website/composer.json b/website/composer.json index e8245069e..4383e9327 100644 --- a/website/composer.json +++ b/website/composer.json @@ -2,6 +2,7 @@ "require": { "lusitanian/oauth": "~0.3", "swiftmailer/swiftmailer": "^5.4.3", - "aws/aws-sdk-php": "^3.19" + "aws/aws-sdk-php": "^3.19", + "erusev/parsedown": "^1.6.1" } } diff --git a/website/developing_a_bot.php b/website/developing_a_bot.php new file mode 100644 index 000000000..1ddafa844 --- /dev/null +++ b/website/developing_a_bot.php @@ -0,0 +1,38 @@ + + + + + <?php echo ucwords(str_replace('_', ' ', basename(__FILE__, '.php'))); ?> + + + + + + + +
+ +
+ +
+

+ text(file_get_contents(__DIR__ . "/learn/developing/local_development_environment.md")); ?> + text(file_get_contents(__DIR__ . "/learn/developing/submitting_a_bot.md")); ?> +
+
+ +
+ + + + + + + + + + + + + + diff --git a/website/faqs.php b/website/faqs.php new file mode 100644 index 000000000..805f1346d --- /dev/null +++ b/website/faqs.php @@ -0,0 +1,32 @@ + + + + + <?php echo ucwords(str_replace('_', ' ', basename(__FILE__, '.php'))); ?> + + + + + + + +
+ +
+ +
+

FAQs

+ text(file_get_contents(__DIR__ . "/learn/faqs.md")); ?> +
+
+ +
+ + + + + + + + + diff --git a/website/game_overview.php b/website/game_overview.php new file mode 100644 index 000000000..b077a1f3d --- /dev/null +++ b/website/game_overview.php @@ -0,0 +1,44 @@ + + + + + <?php echo ucwords(str_replace('_', ' ', basename(__FILE__, '.php'))); ?> + + + + + + + + +
+ +
+ +
+

+ text(file_get_contents(__DIR__ . "/learn/game/what_is_halite.md")); ?> + text(file_get_contents(__DIR__ . "/learn/game/game_rules.md")); ?> +
+
+ +
+ + + + + + + + + + + + + + diff --git a/website/includes/dropdowns.php b/website/includes/dropdowns.php index 05daedc7d..4c8fdc17d 100644 --- a/website/includes/dropdowns.php +++ b/website/includes/dropdowns.php @@ -1,5 +1,5 @@
  • - Learn + Learn
  • Download @@ -15,4 +15,4 @@
  • About -
  • \ No newline at end of file + diff --git a/website/includes/learn_sidebar.php b/website/includes/learn_sidebar.php index 5e945e42b..339e3a607 100644 --- a/website/includes/learn_sidebar.php +++ b/website/includes/learn_sidebar.php @@ -25,19 +25,20 @@ } /* active & hover links */ - .bs-docs-sidebar .nav>.active>a, - .bs-docs-sidebar .nav>li>a:hover, + .bs-docs-sidebar .nav>.active>a, + .bs-docs-sidebar .nav>li>a:hover, .bs-docs-sidebar .nav>li>a:focus { - text-decoration: none; - background-color: transparent; + text-decoration: none; + background-color: transparent; + border-left-color: #63ceca; } /* nested active links */ - .bs-docs-sidebar .nav .nav>.active>a, + .bs-docs-sidebar .nav .nav>.active>a, .bs-docs-sidebar .nav .nav>.active:hover>a, .bs-docs-sidebar .nav .nav>.active:focus>a { font-weight: 700; - border-left-color: #63ceca; + border-left-color: #63ceca; font-weight: 500; } @@ -45,65 +46,85 @@