Skip to content

Commit e2cbd6e

Browse files
authored
Merge pull request #165 from phel-lang/add-releases-section
Create ReleasesGenerator module
2 parents d486e99 + cebe8e6 commit e2cbd6e

File tree

60 files changed

+792
-784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+792
-784
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ content/documentation/api.md
2121
/css/tailwind.entry.css
2222
/static/syntax-theme-dark.css
2323
/static/syntax-theme-light.css
24+
25+
/content/releases/*
26+
!/content/releases/_index.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is the code for the website of Phel: https://phel-lang.org.
1313
# install phel as a composer dependency
1414
composer install
1515

16-
# build the API doc page & the API search index
16+
# build the API doc page, API search index & releases pages
1717
composer build
1818
```
1919

build/api-page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use Gacela\Framework\Gacela;
88
use Phel\Phel;
9-
use PhelWeb\FileGenerator\Facade as FileGeneratorFacade;
9+
use PhelWeb\ApiGenerator\Facade as ApiGeneratorFacade;
1010

1111
Gacela::bootstrap(__DIR__, Phel::configFn());
1212

13-
$facade = new FileGeneratorFacade();
13+
$facade = new ApiGeneratorFacade();
1414
$facade->generateApiMarkdownFile();

build/api-search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Gacela\Framework\Gacela;
88
use Phel\Phel;
9-
use PhelWeb\FileGenerator\Facade as FileGeneratorFacade;
9+
use PhelWeb\ApiGenerator\Facade as FileGeneratorFacade;
1010

1111
Gacela::bootstrap(__DIR__, Phel::configFn());
1212

build/generate-releases.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
require __DIR__ . '/../vendor/autoload.php';
6+
7+
use Gacela\Framework\Gacela;
8+
use Phel\Phel;
9+
use PhelWeb\ReleasesGenerator\Facade as ReleasesGeneratorFacade;
10+
11+
Gacela::bootstrap(__DIR__, Phel::configFn());
12+
13+
$facade = new ReleasesGeneratorFacade();
14+
$facade->generateIndividualReleasePages();

build/src/php/FileGenerator/Application/ApiMarkdownGenerator.php renamed to build/src/php/ApiGenerator/Application/ApiMarkdownGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhelWeb\FileGenerator\Application;
5+
namespace PhelWeb\ApiGenerator\Application;
66

77
use Phel\Api\Transfer\PhelFunction;
88
use Phel\Shared\Facade\ApiFacadeInterface;

build/src/php/FileGenerator/Application/ApiSearchGenerator.php renamed to build/src/php/ApiGenerator/Application/ApiSearchGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhelWeb\FileGenerator\Application;
5+
namespace PhelWeb\ApiGenerator\Application;
66

77
use Phel\Shared\Facade\ApiFacadeInterface;
88

build/src/php/FileGenerator/DependencyProvider.php renamed to build/src/php/ApiGenerator/DependencyProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhelWeb\FileGenerator;
5+
namespace PhelWeb\ApiGenerator;
66

77
use Gacela\Framework\AbstractProvider;
88
use Gacela\Framework\Container\Container;

build/src/php/FileGenerator/Facade.php renamed to build/src/php/ApiGenerator/Facade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhelWeb\FileGenerator;
5+
namespace PhelWeb\ApiGenerator;
66

77
use Gacela\Framework\AbstractFacade;
88

build/src/php/FileGenerator/Factory.php renamed to build/src/php/ApiGenerator/Factory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace PhelWeb\FileGenerator;
5+
namespace PhelWeb\ApiGenerator;
66

77
use Gacela\Framework\AbstractFactory;
88
use Gacela\Framework\Config\Config;
99
use Phel\Shared\Facade\ApiFacadeInterface;
10-
use PhelWeb\FileGenerator\Application\ApiMarkdownGenerator;
11-
use PhelWeb\FileGenerator\Application\ApiSearchGenerator;
12-
use PhelWeb\FileGenerator\Infrastructure\ApiMarkdownFile;
13-
use PhelWeb\FileGenerator\Infrastructure\ApiSearchFile;
10+
use PhelWeb\ApiGenerator\Application\ApiMarkdownGenerator;
11+
use PhelWeb\ApiGenerator\Application\ApiSearchGenerator;
12+
use PhelWeb\ApiGenerator\Infrastructure\ApiMarkdownFile;
13+
use PhelWeb\ApiGenerator\Infrastructure\ApiSearchFile;
1414

1515
/**
1616
* @method Config getConfig()

0 commit comments

Comments
 (0)