Browse Source

move documentation markdown to system directory.

Taylor Otwell 13 years ago
parent
commit
43a3635722
44 changed files with 12 additions and 2 deletions
  1. 12 2
      bundles/docs/routes.php
  2. 0 0
      laravel/documentation/artisan/commands.md
  3. 0 0
      laravel/documentation/artisan/tasks.md
  4. 0 0
      laravel/documentation/auth/config.md
  5. 0 0
      laravel/documentation/auth/usage.md
  6. 0 0
      laravel/documentation/bundles.md
  7. 0 0
      laravel/documentation/cache/config.md
  8. 0 0
      laravel/documentation/cache/usage.md
  9. 0 0
      laravel/documentation/changes.md
  10. 0 0
      laravel/documentation/config.md
  11. 0 0
      laravel/documentation/contents.md
  12. 0 0
      laravel/documentation/controllers.md
  13. 0 0
      laravel/documentation/database/config.md
  14. 0 0
      laravel/documentation/database/eloquent.md
  15. 0 0
      laravel/documentation/database/fluent.md
  16. 0 0
      laravel/documentation/database/migrations.md
  17. 0 0
      laravel/documentation/database/raw.md
  18. 0 0
      laravel/documentation/database/redis.md
  19. 0 0
      laravel/documentation/database/schema.md
  20. 0 0
      laravel/documentation/encryption.md
  21. 0 0
      laravel/documentation/events.md
  22. 0 0
      laravel/documentation/files.md
  23. 0 0
      laravel/documentation/home.md
  24. 0 0
      laravel/documentation/input.md
  25. 0 0
      laravel/documentation/install.md
  26. 0 0
      laravel/documentation/ioc.md
  27. 0 0
      laravel/documentation/loading.md
  28. 0 0
      laravel/documentation/localization.md
  29. 0 0
      laravel/documentation/logging.md
  30. 0 0
      laravel/documentation/models.md
  31. 0 0
      laravel/documentation/requests.md
  32. 0 0
      laravel/documentation/routing.md
  33. 0 0
      laravel/documentation/session/config.md
  34. 0 0
      laravel/documentation/session/usage.md
  35. 0 0
      laravel/documentation/strings.md
  36. 0 0
      laravel/documentation/testing.md
  37. 0 0
      laravel/documentation/urls.md
  38. 0 0
      laravel/documentation/validation.md
  39. 0 0
      laravel/documentation/views/assets.md
  40. 0 0
      laravel/documentation/views/forms.md
  41. 0 0
      laravel/documentation/views/home.md
  42. 0 0
      laravel/documentation/views/html.md
  43. 0 0
      laravel/documentation/views/pagination.md
  44. 0 0
      laravel/documentation/views/templating.md

+ 12 - 2
bundles/docs/routes.php

@@ -5,6 +5,16 @@
  */
 require_once __DIR__.'/libraries/markdown.php';
 
+/**
+ * Get the root path for the documentation Markdown.
+ *
+ * @return string
+ */
+function doc_root()
+{
+	return path('sys').'documentation/';
+}
+
 /**
  * Get the parsed Markdown contents of a given page.
  *
@@ -13,7 +23,7 @@ require_once __DIR__.'/libraries/markdown.php';
  */
 function document($page)
 {
-	return Markdown(file_get_contents(__DIR__.'/pages/'.$page.'.md'));
+	return Markdown(file_get_contents(doc_root().$page.'.md'));
 }
 
 /**
@@ -24,7 +34,7 @@ function document($page)
  */
 function document_exists($page)
 {
-	return file_exists(__DIR__.'/pages/'.$page.'.md');
+	return file_exists(doc_root().$page.'.md');
 }
 
 /**

+ 0 - 0
bundles/docs/pages/artisan/commands.md → laravel/documentation/artisan/commands.md


+ 0 - 0
bundles/docs/pages/artisan/tasks.md → laravel/documentation/artisan/tasks.md


+ 0 - 0
bundles/docs/pages/auth/config.md → laravel/documentation/auth/config.md


+ 0 - 0
bundles/docs/pages/auth/usage.md → laravel/documentation/auth/usage.md


+ 0 - 0
bundles/docs/pages/bundles.md → laravel/documentation/bundles.md


+ 0 - 0
bundles/docs/pages/cache/config.md → laravel/documentation/cache/config.md


+ 0 - 0
bundles/docs/pages/cache/usage.md → laravel/documentation/cache/usage.md


+ 0 - 0
bundles/docs/pages/changes.md → laravel/documentation/changes.md


+ 0 - 0
bundles/docs/pages/config.md → laravel/documentation/config.md


+ 0 - 0
bundles/docs/pages/contents.md → laravel/documentation/contents.md


+ 0 - 0
bundles/docs/pages/controllers.md → laravel/documentation/controllers.md


+ 0 - 0
bundles/docs/pages/database/config.md → laravel/documentation/database/config.md


+ 0 - 0
bundles/docs/pages/database/eloquent.md → laravel/documentation/database/eloquent.md


+ 0 - 0
bundles/docs/pages/database/fluent.md → laravel/documentation/database/fluent.md


+ 0 - 0
bundles/docs/pages/database/migrations.md → laravel/documentation/database/migrations.md


+ 0 - 0
bundles/docs/pages/database/raw.md → laravel/documentation/database/raw.md


+ 0 - 0
bundles/docs/pages/database/redis.md → laravel/documentation/database/redis.md


+ 0 - 0
bundles/docs/pages/database/schema.md → laravel/documentation/database/schema.md


+ 0 - 0
bundles/docs/pages/encryption.md → laravel/documentation/encryption.md


+ 0 - 0
bundles/docs/pages/events.md → laravel/documentation/events.md


+ 0 - 0
bundles/docs/pages/files.md → laravel/documentation/files.md


+ 0 - 0
bundles/docs/pages/home.md → laravel/documentation/home.md


+ 0 - 0
bundles/docs/pages/input.md → laravel/documentation/input.md


+ 0 - 0
bundles/docs/pages/install.md → laravel/documentation/install.md


+ 0 - 0
bundles/docs/pages/ioc.md → laravel/documentation/ioc.md


+ 0 - 0
bundles/docs/pages/loading.md → laravel/documentation/loading.md


+ 0 - 0
bundles/docs/pages/localization.md → laravel/documentation/localization.md


+ 0 - 0
bundles/docs/pages/logging.md → laravel/documentation/logging.md


+ 0 - 0
bundles/docs/pages/models.md → laravel/documentation/models.md


+ 0 - 0
bundles/docs/pages/requests.md → laravel/documentation/requests.md


+ 0 - 0
bundles/docs/pages/routing.md → laravel/documentation/routing.md


+ 0 - 0
bundles/docs/pages/session/config.md → laravel/documentation/session/config.md


+ 0 - 0
bundles/docs/pages/session/usage.md → laravel/documentation/session/usage.md


+ 0 - 0
bundles/docs/pages/strings.md → laravel/documentation/strings.md


+ 0 - 0
bundles/docs/pages/testing.md → laravel/documentation/testing.md


+ 0 - 0
bundles/docs/pages/urls.md → laravel/documentation/urls.md


+ 0 - 0
bundles/docs/pages/validation.md → laravel/documentation/validation.md


+ 0 - 0
bundles/docs/pages/views/assets.md → laravel/documentation/views/assets.md


+ 0 - 0
bundles/docs/pages/views/forms.md → laravel/documentation/views/forms.md


+ 0 - 0
bundles/docs/pages/views/home.md → laravel/documentation/views/home.md


+ 0 - 0
bundles/docs/pages/views/html.md → laravel/documentation/views/html.md


+ 0 - 0
bundles/docs/pages/views/pagination.md → laravel/documentation/views/pagination.md


+ 0 - 0
bundles/docs/pages/views/templating.md → laravel/documentation/views/templating.md