Permalink
Browse files

Refactor folder structure

  • Loading branch information...
core23 authored and greg0ire committed Nov 11, 2017
1 parent 8e3c10f commit fe90dfa95ddce3625b58ad13effad2279dab994e
Showing with 15 additions and 24 deletions.
  1. +1 −1 .gitattributes
  2. +1 −1 .gitignore
  3. +1 −1 .travis/install_docs.sh
  4. +3 −3 CONTRIBUTING.md
  5. +1 −1 Makefile
  6. +2 −5 composer.json
  7. 0 {Resources/doc → docs}/Makefile
  8. 0 {Resources/doc → docs}/_static/.gitkeep
  9. 0 {Resources/doc → docs}/conf.py
  10. 0 {Resources/doc → docs}/index.rst
  11. 0 {Resources/doc → docs}/reference/advanced_configuration.rst
  12. 0 {Resources/doc → docs}/reference/api.rst
  13. 0 {Resources/doc → docs}/reference/installation.rst
  14. 0 {Resources/doc → docs}/reference/introduction.rst
  15. 0 {Resources/doc → docs}/requirements.txt
  16. +3 −9 phpunit.xml.dist
  17. 0 { → src}/Admin/CommentAdmin.php
  18. 0 { → src}/Admin/PostAdmin.php
  19. 0 { → src}/Block/Breadcrumb/BaseNewsBreadcrumbBlockService.php
  20. 0 { → src}/Block/Breadcrumb/NewsArchiveBreadcrumbBlockService.php
  21. 0 { → src}/Block/Breadcrumb/NewsPostBreadcrumbBlockService.php
  22. 0 { → src}/Block/RecentCommentsBlockService.php
  23. 0 { → src}/Block/RecentPostsBlockService.php
  24. 0 { → src}/Command/SynchronizeCommentsCountCommand.php
  25. 0 { → src}/Controller/Api/CommentController.php
  26. 0 { → src}/Controller/Api/PostController.php
  27. 0 { → src}/Controller/CommentAdminController.php
  28. 0 { → src}/Controller/PostController.php
  29. 0 { → src}/DependencyInjection/Configuration.php
  30. 0 { → src}/DependencyInjection/SonataNewsExtension.php
  31. 0 { → src}/Document/BaseComment.php
  32. 0 { → src}/Document/BasePost.php
  33. 0 { → src}/Document/BasePostRepository.php
  34. 0 { → src}/Document/CommentManager.php
  35. 0 { → src}/Document/PostManager.php
  36. 0 { → src}/Entity/BaseComment.php
  37. 0 { → src}/Entity/BasePost.php
  38. 0 { → src}/Entity/BasePostRepository.php
  39. 0 { → src}/Entity/CommentManager.php
  40. 0 { → src}/Entity/PostManager.php
  41. 0 { → src}/Form/Type/ApiCommentType.php
  42. 0 { → src}/Form/Type/ApiPostType.php
  43. 0 { → src}/Form/Type/CommentStatusType.php
  44. 0 { → src}/Form/Type/CommentType.php
  45. 0 { → src}/Mailer/Mailer.php
  46. 0 { → src}/Mailer/MailerInterface.php
  47. 0 { → src}/Model/Blog.php
  48. 0 { → src}/Model/BlogInterface.php
  49. 0 { → src}/Model/Comment.php
  50. 0 { → src}/Model/CommentInterface.php
  51. 0 { → src}/Model/CommentManagerInterface.php
  52. 0 { → src}/Model/Post.php
  53. 0 { → src}/Model/PostInterface.php
  54. 0 { → src}/Model/PostManagerInterface.php
  55. 0 { → src}/Permalink/CollectionPermalink.php
  56. 0 { → src}/Permalink/DatePermalink.php
  57. 0 { → src}/Permalink/PermalinkInterface.php
  58. 0 { → src}/Resources/config/admin.xml
  59. 0 { → src}/Resources/config/api_controllers.xml
  60. 0 { → src}/Resources/config/api_form.xml
  61. 0 { → src}/Resources/config/block.xml
  62. 0 { → src}/Resources/config/core.xml
  63. 0 { → src}/Resources/config/doctrine/BaseComment.mongodb.xml
  64. 0 { → src}/Resources/config/doctrine/BaseComment.orm.xml
  65. 0 { → src}/Resources/config/doctrine/BasePost.mongodb.xml
  66. 0 { → src}/Resources/config/doctrine/BasePost.orm.xml
  67. 0 { → src}/Resources/config/doctrine/Comment.mongodb.xml.skeleton
  68. 0 { → src}/Resources/config/doctrine/Comment.orm.xml.skeleton
  69. 0 { → src}/Resources/config/doctrine/Post.mongodb.xml.skeleton
  70. 0 { → src}/Resources/config/doctrine/Post.orm.xml.skeleton
  71. 0 { → src}/Resources/config/form.xml
  72. 0 { → src}/Resources/config/mongodb.xml
  73. 0 { → src}/Resources/config/orm.xml
  74. 0 { → src}/Resources/config/routing/api.xml
  75. 0 { → src}/Resources/config/routing/news.xml
  76. 0 { → src}/Resources/config/serializer.xml
  77. 0 { → src}/Resources/config/serializer/Model.Comment.xml
  78. 0 { → src}/Resources/config/serializer/Model.Post.xml
  79. 0 { → src}/Resources/config/twig.xml
  80. 0 { → src}/Resources/config/validation.xml
  81. 0 { → src}/Resources/meta/LICENSE
  82. 0 { → src}/Resources/translations/SonataNewsBundle.cs.xliff
  83. 0 { → src}/Resources/translations/SonataNewsBundle.de.xliff
  84. 0 { → src}/Resources/translations/SonataNewsBundle.en.xliff
  85. 0 { → src}/Resources/translations/SonataNewsBundle.es.xliff
  86. 0 { → src}/Resources/translations/SonataNewsBundle.fr.xliff
  87. 0 { → src}/Resources/translations/SonataNewsBundle.hu.xliff
  88. 0 { → src}/Resources/translations/SonataNewsBundle.ja.xliff
  89. 0 { → src}/Resources/translations/SonataNewsBundle.nl.xliff
  90. 0 { → src}/Resources/translations/SonataNewsBundle.pt_BR.xliff
  91. 0 { → src}/Resources/translations/SonataNewsBundle.ru.xliff
  92. 0 { → src}/Resources/translations/SonataNewsBundle.sk.xliff
  93. 0 { → src}/Resources/translations/SonataNewsBundle.sl.xliff
  94. 0 { → src}/Resources/views/Admin/inner_row_comment.html.twig
  95. 0 { → src}/Resources/views/Admin/list_post_custom.html.twig
  96. 0 { → src}/Resources/views/Block/recent_comments.html.twig
  97. 0 { → src}/Resources/views/Block/recent_posts.html.twig
  98. 0 { → src}/Resources/views/Mail/comment_notification.txt.twig
  99. 0 { → src}/Resources/views/Post/archive.html.twig
  100. 0 { → src}/Resources/views/Post/archive.rss.twig
  101. 0 { → src}/Resources/views/Post/comment_form.html.twig
  102. 0 { → src}/Resources/views/Post/comments.html.twig
  103. 0 { → src}/Resources/views/Post/view.html.twig
  104. 0 { → src}/Serializer/PostSerializerHandler.php
  105. 0 { → src}/SonataNewsBundle.php
  106. 0 { → src}/Status/CommentStatusRenderer.php
  107. 0 { → src}/Twig/Extension/NewsExtension.php
  108. 0 { → src}/Util/HashGenerator.php
  109. 0 { → src}/Util/HashGeneratorInterface.php
  110. 0 {Tests → tests}/Controller/Api/CommentControllerTest.php
  111. 0 {Tests → tests}/Controller/Api/PostControllerTest.php
  112. 0 {Tests → tests}/DependencyInjection/ConfigurationTest.php
  113. 0 {Tests → tests}/Document/CommentManagerTest.php
  114. 0 {Tests → tests}/Document/PostManagerTest.php
  115. 0 {Tests → tests}/Entity/CommentManagerTest.php
  116. 0 {Tests → tests}/Entity/PostManagerTest.php
  117. 0 {Tests → tests}/Model/BaseModelTest.php
  118. 0 {Tests → tests}/Model/CommentTest.php
  119. 0 {Tests → tests}/Model/PostTest.php
  120. 0 {Tests → tests}/Permalink/CollectionPermalinkTest.php
  121. 0 {Tests → tests}/Permalink/DatePermalinkTest.php
  122. +3 −3 {Tests → }/tests/autoload.php.dist
  123. 0 {Tests → }/tests/bootstrap.php
View
@@ -1,4 +1,4 @@
.* export-ignore
*.md export-ignore
Tests/* export-ignore
Resources/doc/* export-ignore
docs/* export-ignore
View
@@ -1,5 +1,5 @@
/build
/Resources/doc/_build/
/docs/_build/
/vendor
.php_cs.cache
composer.lock
View
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
set -ev
pip install -r Resources/doc/requirements.txt --user
pip install -r docs/requirements.txt --user
View
@@ -74,13 +74,13 @@ php-cs-fixer fix --verbose
#### The documentation
The documentation is mostly written with the `rst` format, and can be found in the `Resources/doc` directory.
The documentation is mostly written with the `rst` format, and can be found in the `docs` directory.
You can test the doc rendering with the `make docs` command, but to do this, you will need [Sphinx][sphinx_install].
Just like php dependencies can be managed with Composer, python dependencies can be managed with [pip][pip_install].
To get sphinx, simply run the following command.
```bash
pip install --requirement Resources/doc/requirements.txt --user
pip install --requirement docs/requirements.txt --user
```
Some python binaries should be downloaded to `~/.local/bin` for Linux or `~/Library/Python/2.7/bin` for Mac OS,
@@ -90,7 +90,7 @@ so that it contains this path and then, from the root of the project, run `make
If `make docs` is successful, you should be able to see your modifications:
```bash
$YOUR_FAVORITE_BROWSER Resources/doc/_build/html/index.html
$YOUR_FAVORITE_BROWSER docs/_build/html/index.html
```
If your PR contains a new feature, you must add documentation for it.
View
@@ -19,4 +19,4 @@ test:
phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
docs:
cd Resources/doc && sphinx-build -W -b html -d _build/doctrees . _build/html
cd docs && sphinx-build -W -b html -d _build/doctrees . _build/html
View
@@ -57,13 +57,10 @@
"sonata-project/notification-bundle": "^2.2"
},
"autoload": {
"psr-4": { "Sonata\\NewsBundle\\": "" },
"exclude-from-classmap": [
"Tests/"
]
"psr-4": { "Sonata\\NewsBundle\\": "src/" }
},
"autoload-dev": {
"psr-4": { "Sonata\\NewsBundle\\Tests\\": "Tests/" }
"psr-4": { "Sonata\\NewsBundle\\Tests\\": "tests/" }
},
"extra": {
"branch-alias": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -9,23 +9,17 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="Tests/tests/bootstrap.php"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="NewsBundle Test Suite">
<directory>./Tests</directory>
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Tests/</directory>
<directory>./DataFixtures/</directory>
<directory>./Resources/</directory>
<directory>./vendor/</directory>
</exclude>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -3,9 +3,9 @@
// if the bundle is within a symfony project, try to reuse the project's autoload
$files = array(
__DIR__.'/../../vendor/autoload.php',
__DIR__.'/../../../../../app/autoload.php',
__DIR__.'/../../../../../apps/autoload.php',
__DIR__.'/../vendor/autoload.php',
__DIR__.'/../../../../app/autoload.php',
__DIR__.'/../../../../apps/autoload.php',
);
$autoload = false;
File renamed without changes.

0 comments on commit fe90dfa

Please sign in to comment.