joshuaestes / thoth
PHP Static Site Generator
Fund package maintenance!
JoshuaEstes
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
pkg:composer/joshuaestes/thoth
Requires
- php: >=7.1
- mnapoli/front-yaml: ^1.7
- psr/log: ^1.1
- symfony/console: ^4.4
- symfony/dotenv: ^4.4
- symfony/filesystem: ^4.4
- symfony/finder: ^4.4
- symfony/process: ^4.4
- symfony/yaml: ^4.4
- twig/twig: ^3.0
Requires (Dev)
- phpunit/phpunit: ^9.1
- symfony/stopwatch: ^4.4
This package is auto-updated.
Last update: 2023-11-15 04:56:18 UTC
README
PHP Static Site Generator
Install
composer global require "joshuaestes/thoth:dev-master"
Getting Started
Configuration
Config done via .thoth.{yaml|yml} and .env{.local} files
# .thoth.yml theme: default # can use vendor/theme to pull from github source: . destination: ./public
New Command
thoth new [dir], "dir" defaults to currently directory
- Generates a new thoth project in given directory
Watch Command
thoth watch will generate a new site if anything changes
- runs
thoth generate
Generate Command
thoth generate output to /public
/publiccan be configured
Serve Command
thoth serve will use php webserver to serve generated files?
- Option to --watch
Deploy Command?
Themes
Themes are stored in themes directory.
Directory is name of theme
themes/default themes/blog themes/docs
Theme files
base.html.twighome.html.twigpage.html.twigpost.html.twig_head.html.twig_header.html.twig_footer.html.twigfull-width.layout.html.twig
"included" files will be prefixed with an underscore
Assets are store in the assets directory for the theme, ie themes/blog/assets