Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publications feature #667

Merged
merged 37 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
48e83ee
Adding MakePublicationTypeCommand
rgasch Nov 2, 2022
5869d4d
Adding CreatesNewPublicationType
rgasch Nov 2, 2022
ca456a5
Cleanup + code reformatting
rgasch Nov 2, 2022
84b37a0
Adding .editorconfig file
rgasch Nov 2, 2022
95140fe
Added MakeNewPublication job + support file + related fixes
rgasch Nov 3, 2022
31e5b00
Added rector composer.json + config file.
rgasch Nov 3, 2022
8be6a6f
Code cleanup + added interfaces
rgasch Nov 4, 2022
b66777d
Converting code to use custom collection class.
rgasch Nov 7, 2022
e492155
Added validation + lots of minor improvements.
rgasch Nov 9, 2022
82bf5f1
Remove leftover dump()
rgasch Nov 9, 2022
e0e9a55
Print proper error message rather than throwing an exception
rgasch Nov 9, 2022
f3cfd53
Added validation for reversed/invalid field lengths
rgasch Nov 9, 2022
208ec48
Minor code cleaup/standardization
rgasch Nov 9, 2022
de473af
Adding phpstan.neon file
rgasch Nov 9, 2022
ca5b2fc
Adding safephp library
rgasch Nov 9, 2022
e1f1078
Adoping safephp library + assorted cleanups.
rgasch Nov 9, 2022
c7a0bec
Added getPublications() method.
rgasch Nov 10, 2022
0dbec9e
Cleanup
rgasch Nov 10, 2022
ff042f7
Remove slug
rgasch Nov 14, 2022
2148d5e
Merge branch 'master' into dev
rgasch Nov 14, 2022
7fa8839
Added overwrite check/protection for existing files.
rgasch Nov 16, 2022
606dc95
Added overwrite check/protection for existing files in handler code
rgasch Nov 16, 2022
91ae9e8
Better hint text + fixed bool/string type error on next/prev links qu…
rgasch Nov 16, 2022
ac4e5be
Use underscore template names to avoid dot confusion
rgasch Nov 16, 2022
349c3b0
Use relative directory name for publication type index + use proper '…
rgasch Nov 16, 2022
81e8b04
Syncing up changes for BuildPublicationTypesSiteCommand + related cha…
rgasch Nov 16, 2022
0ef10bf
Fix dynamic Blade includes
caendesilva Nov 17, 2022
a3c8ac4
Mock the current page
caendesilva Nov 17, 2022
ac255ed
Syncing changes -> pubtype based generation now works.
rgasch Nov 17, 2022
8b0d900
Merge branch 'hydephp:dev' into dev
rgasch Nov 17, 2022
a61eb48
Implemented Array type for publications
rgasch Nov 17, 2022
de5f7f4
Merge remote-tracking branch 'origin/dev' into dev
rgasch Nov 17, 2022
90082b0
Merge branch 'dev' into rgasch-dev
caendesilva Nov 18, 2022
07a3da0
Merge branch 'dev' into rgasch-dev
caendesilva Nov 18, 2022
13b033f
Added support for image fields
rgasch Nov 18, 2022
949f1c4
Merge remote-tracking branch 'origin/dev' into dev
rgasch Nov 18, 2022
93c0912
Comment fix
rgasch Nov 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
902 changes: 902 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions blah/123.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
__canonical: 123
__createdAt: 2022-11-16 11:32:52
f1: 123
f2: 456
f3: 789
---
Raw MD text ...
8 changes: 8 additions & 0 deletions blah/aaa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
__canonical: aaa
__createdAt: 2022-11-16 11:33:05
f1: aaa
f2: bbb
f3: ccc
---
Raw MD text ...
8 changes: 8 additions & 0 deletions blah/abc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
__canonical: abc
__createdAt: 2022-11-16 11:32:36
f1: abc
f2: def
f3: ghi
---
Raw MD text ...
30 changes: 30 additions & 0 deletions blah/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "blah",
"canonicalField": "f1",
"sortField": "__createdAt",
"sortDirection": "DESC",
"pagesize": 0,
"prevNextLinks": true,
"detailTemplate": "blah_detail.blade.php",
"listTemplate": "blah_list.blade.php",
"fields": [
{
"name": "f1",
"min": "0",
"max": "0",
"type": "string"
},
{
"name": "f2",
"min": "0",
"max": "0",
"type": "string"
},
{
"name": "f3",
"min": "0",
"max": "0",
"type": "string"
}
]
}
136 changes: 74 additions & 62 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,77 @@
{
"name": "hyde/hyde",
"description": "Static Site Generator to rapidly create Blogs, Documentation, and more, using Markdown and Blade.",
"keywords": ["framework", "hyde", "hyde framework"],
"homepage": "https://hydephp.com",
"type": "project",
"license": "MIT",
"support": {
"issues": "https://github.com/hydephp/hyde/issues",
"source": "https://github.com/hydephp/hyde"
},
"authors": [
{
"name": "Caen De Silva",
"email": "caen@desilva.se"
}
],
"require": {
"php": "^8.1",
"hyde/framework": "dev-master",
"laravel-zero/framework": "^9.1"
},
"require-dev": {
"hyde/realtime-compiler": "dev-master",
"hyde/testing": "dev-master",
"laravel/tinker": "^2.7",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.8",
"squizlabs/php_codesniffer": "^3.7",
"vimeo/psalm": "^4.24"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"@php -r \"@unlink('./storage/framework/cache/packages.php');\"",
"@php hyde package:discover --ansi"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": false,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"bin": ["hyde"],
"repositories": [
{
"type": "path",
"url": "./packages/*"
}
"name": "hyde/hyde",
"description": "Static Site Generator to rapidly create Blogs, Documentation, and more, using Markdown and Blade.",
"keywords": [
"framework",
"hyde",
"hyde framework"
],
"homepage": "https://hydephp.com",
"type": "project",
"license": "MIT",
"support": {
"issues": "https://github.com/hydephp/hyde/issues",
"source": "https://github.com/hydephp/hyde"
},
"authors": [
{
"name": "Caen De Silva",
"email": "caen@desilva.se"
}
],
"require": {
"php": "^8.1",
"hyde/framework": "dev-master",
"illuminate/validation": "^9.0.0",
"laravel-zero/framework": "^9.1",
"rgasch/illuminate-collection-extended": "^1.0",
"thecodingmachine/safe": "^2.4"
},
"require-dev": {
"driftingly/rector-laravel": "^0.14.0",
"hyde/realtime-compiler": "dev-master",
"hyde/testing": "dev-master",
"laravel/tinker": "^2.7",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.8",
"rector/rector": "^0.14.6",
"squizlabs/php_codesniffer": "^3.7",
"thecodingmachine/phpstan-safe-rule": "^1.2",
"vimeo/psalm": "^4.24"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"@php -r \"@unlink('./storage/framework/cache/packages.php');\"",
"@php hyde package:discover --ansi"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": false,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"bin": [
"hyde"
],
"repositories": [
{
"type": "path",
"url": "./packages/*"
}
]
}
Loading