├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.yml └── workflows │ ├── pint-fix.yml │ ├── pint-lint.yml │ └── tests.yml ├── .gitignore ├── README.md ├── composer.json ├── config └── ssg.php ├── phpunit.xml ├── pint.json ├── src ├── Commands │ ├── StaticSiteClear.php │ ├── StaticSiteGenerate.php │ ├── StaticSiteLinks.php │ └── StaticSiteServe.php ├── ConcurrentTasks.php ├── ConsecutiveTasks.php ├── GeneratedPage.php ├── GenerationFailedException.php ├── Generator.php ├── LengthAwarePaginator.php ├── NotGeneratedException.php ├── Page.php ├── Request.php ├── Route.php ├── SSG.php ├── ServiceProvider.php ├── StatamicRoute.php ├── Tasks.php └── resources │ └── server.php └── tests ├── Concerns └── RunsGeneratorCommand.php ├── ConcurrentTasksTest.php ├── ConsecutiveTasksTest.php ├── Fixtures ├── resources │ └── views │ │ ├── articles │ │ ├── index.antlers.html │ │ └── show.antlers.html │ │ ├── default.antlers.html │ │ ├── errors │ │ └── 404.antlers.html │ │ └── layout.antlers.html ├── site-localized │ └── content │ │ ├── collections │ │ ├── articles.yaml │ │ ├── articles │ │ │ ├── default │ │ │ │ ├── 2023-07-01.one.md │ │ │ │ ├── 2023-07-02.two.md │ │ │ │ ├── 2023-07-03.three.md │ │ │ │ ├── 2023-07-04.four.md │ │ │ │ ├── 2023-07-05.five.md │ │ │ │ ├── 2023-07-06.six.md │ │ │ │ ├── 2023-07-07.seven.md │ │ │ │ └── 2023-07-08.eight.md │ │ │ └── french │ │ │ │ ├── 2023-07-01.le-one.md │ │ │ │ ├── 2023-07-02.le-two.md │ │ │ │ ├── 2023-07-03.le-three.md │ │ │ │ ├── 2023-07-04.le-four.md │ │ │ │ └── 2023-07-05.le-five.md │ │ ├── pages.yaml │ │ └── pages │ │ │ ├── default │ │ │ ├── about.md │ │ │ ├── articles.md │ │ │ ├── home.md │ │ │ └── topics.md │ │ │ └── french │ │ │ ├── le-about.md │ │ │ ├── le-articles.md │ │ │ ├── le-home.md │ │ │ └── le-topics.md │ │ └── trees │ │ └── collections │ │ ├── default │ │ └── pages.yaml │ │ └── french │ │ └── pages.yaml └── site │ └── content │ ├── collections │ ├── articles.yaml │ ├── articles │ │ ├── 2023-07-01.one.md │ │ ├── 2023-07-02.two.md │ │ ├── 2023-07-03.three.md │ │ ├── 2023-07-04.four.md │ │ ├── 2023-07-05.five.md │ │ ├── 2023-07-06.six.md │ │ ├── 2023-07-07.seven.md │ │ └── 2023-07-08.eight.md │ ├── pages.yaml │ └── pages │ │ ├── about.md │ │ ├── articles.md │ │ ├── home.md │ │ └── topics.md │ └── trees │ └── collections │ └── pages.yaml ├── GenerateTest.php ├── Localized └── GenerateTest.php ├── PageTest.php ├── RequestTest.php └── TestCase.php /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/.github/ISSUE_TEMPLATE/bug_report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/.github/ISSUE_TEMPLATE/feature_request.yml -------------------------------------------------------------------------------- /.github/workflows/pint-fix.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/.github/workflows/pint-fix.yml -------------------------------------------------------------------------------- /.github/workflows/pint-lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/.github/workflows/pint-lint.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .phpunit.result.cache 3 | /vendor 4 | /composer.lock 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/composer.json -------------------------------------------------------------------------------- /config/ssg.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/config/ssg.php -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/phpunit.xml -------------------------------------------------------------------------------- /pint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/pint.json -------------------------------------------------------------------------------- /src/Commands/StaticSiteClear.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Commands/StaticSiteClear.php -------------------------------------------------------------------------------- /src/Commands/StaticSiteGenerate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Commands/StaticSiteGenerate.php -------------------------------------------------------------------------------- /src/Commands/StaticSiteLinks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Commands/StaticSiteLinks.php -------------------------------------------------------------------------------- /src/Commands/StaticSiteServe.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Commands/StaticSiteServe.php -------------------------------------------------------------------------------- /src/ConcurrentTasks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/ConcurrentTasks.php -------------------------------------------------------------------------------- /src/ConsecutiveTasks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/ConsecutiveTasks.php -------------------------------------------------------------------------------- /src/GeneratedPage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/GeneratedPage.php -------------------------------------------------------------------------------- /src/GenerationFailedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/GenerationFailedException.php -------------------------------------------------------------------------------- /src/Generator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Generator.php -------------------------------------------------------------------------------- /src/LengthAwarePaginator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/LengthAwarePaginator.php -------------------------------------------------------------------------------- /src/NotGeneratedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/NotGeneratedException.php -------------------------------------------------------------------------------- /src/Page.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Page.php -------------------------------------------------------------------------------- /src/Request.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Request.php -------------------------------------------------------------------------------- /src/Route.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Route.php -------------------------------------------------------------------------------- /src/SSG.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/SSG.php -------------------------------------------------------------------------------- /src/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/ServiceProvider.php -------------------------------------------------------------------------------- /src/StatamicRoute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/StatamicRoute.php -------------------------------------------------------------------------------- /src/Tasks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/Tasks.php -------------------------------------------------------------------------------- /src/resources/server.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/src/resources/server.php -------------------------------------------------------------------------------- /tests/Concerns/RunsGeneratorCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Concerns/RunsGeneratorCommand.php -------------------------------------------------------------------------------- /tests/ConcurrentTasksTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/ConcurrentTasksTest.php -------------------------------------------------------------------------------- /tests/ConsecutiveTasksTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/ConsecutiveTasksTest.php -------------------------------------------------------------------------------- /tests/Fixtures/resources/views/articles/index.antlers.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/resources/views/articles/index.antlers.html -------------------------------------------------------------------------------- /tests/Fixtures/resources/views/articles/show.antlers.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/resources/views/articles/show.antlers.html -------------------------------------------------------------------------------- /tests/Fixtures/resources/views/default.antlers.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/resources/views/default.antlers.html -------------------------------------------------------------------------------- /tests/Fixtures/resources/views/errors/404.antlers.html: -------------------------------------------------------------------------------- 1 |

404!

2 | -------------------------------------------------------------------------------- /tests/Fixtures/resources/views/layout.antlers.html: -------------------------------------------------------------------------------- 1 | {{ seo_pro:meta }} 2 | {{ template_content }} 3 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles.yaml -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-01.one.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: a356f052-06a3-4f37-8376-2f136fe973c3 3 | title: One 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-02.two.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: ca648856-ff12-407d-a523-72074f5997e1 3 | title: Two 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-03.three.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles/default/2023-07-03.three.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-04.four.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: d813ea6f-a637-4c6b-a724-c9e5f70e23de 3 | title: Four 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-05.five.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 3a2e2f92-f93e-481d-b120-c63ff09c1775 3 | title: Five 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-06.six.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: c72306d0-b6ae-4f3a-88eb-6c01d5a83c0d 3 | title: Six 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-07.seven.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 6614e8af-4c11-4790-a47e-ebb6b685851d 3 | title: Seven 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/default/2023-07-08.eight.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 219487f7-3390-444b-814f-7fc4dc412d6c 3 | title: Eight 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/french/2023-07-01.le-one.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles/french/2023-07-01.le-one.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/french/2023-07-02.le-two.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles/french/2023-07-02.le-two.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/french/2023-07-03.le-three.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles/french/2023-07-03.le-three.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/french/2023-07-04.le-four.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles/french/2023-07-04.le-four.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/articles/french/2023-07-05.le-five.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/articles/french/2023-07-05.le-five.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages.yaml -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/default/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/default/about.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/default/articles.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/default/articles.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/default/home.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/default/home.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/default/topics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/default/topics.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/french/le-about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/french/le-about.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/french/le-articles.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/french/le-articles.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/french/le-home.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/french/le-home.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/collections/pages/french/le-topics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site-localized/content/collections/pages/french/le-topics.md -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/trees/collections/default/pages.yaml: -------------------------------------------------------------------------------- 1 | tree: 2 | - 3 | entry: home 4 | -------------------------------------------------------------------------------- /tests/Fixtures/site-localized/content/trees/collections/french/pages.yaml: -------------------------------------------------------------------------------- 1 | tree: 2 | - 3 | entry: home-french 4 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/articles.yaml -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-01.one.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: a356f052-06a3-4f37-8376-2f136fe973c3 3 | title: One 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-02.two.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: ca648856-ff12-407d-a523-72074f5997e1 3 | title: Two 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-03.three.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/articles/2023-07-03.three.md -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-04.four.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: d813ea6f-a637-4c6b-a724-c9e5f70e23de 3 | title: Four 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-05.five.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 3a2e2f92-f93e-481d-b120-c63ff09c1775 3 | title: Five 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-06.six.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: c72306d0-b6ae-4f3a-88eb-6c01d5a83c0d 3 | title: Six 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-07.seven.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 6614e8af-4c11-4790-a47e-ebb6b685851d 3 | title: Seven 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/articles/2023-07-08.eight.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 219487f7-3390-444b-814f-7fc4dc412d6c 3 | title: Eight 4 | --- 5 | -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/pages.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/pages.yaml -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/pages/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/pages/about.md -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/pages/articles.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/pages/articles.md -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/pages/home.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/pages/home.md -------------------------------------------------------------------------------- /tests/Fixtures/site/content/collections/pages/topics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Fixtures/site/content/collections/pages/topics.md -------------------------------------------------------------------------------- /tests/Fixtures/site/content/trees/collections/pages.yaml: -------------------------------------------------------------------------------- 1 | tree: 2 | - 3 | entry: home 4 | -------------------------------------------------------------------------------- /tests/GenerateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/GenerateTest.php -------------------------------------------------------------------------------- /tests/Localized/GenerateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/Localized/GenerateTest.php -------------------------------------------------------------------------------- /tests/PageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/PageTest.php -------------------------------------------------------------------------------- /tests/RequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/RequestTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/statamic/ssg/HEAD/tests/TestCase.php --------------------------------------------------------------------------------