2022-10-29 11:41:15 +00:00
|
|
|
# Isidore
|
|
|
|
|
|
|
|
A script helping to statically generate websites using a combination of PHP,
|
|
|
|
HTML, and Markdown.
|
|
|
|
|
2022-11-02 19:45:14 +00:00
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
- Bash
|
|
|
|
- PHP
|
|
|
|
|
2022-10-29 11:41:15 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
Synopsis: `isidore <command> [options]`
|
|
|
|
|
|
|
|
Commands:
|
|
|
|
|
2022-11-07 19:26:23 +00:00
|
|
|
- `new [-i] <dir>`: create a new project directory `<dir>`. Use `-i` for
|
|
|
|
interactive mode.
|
2022-11-08 15:08:56 +00:00
|
|
|
- `build [-v]`: build the website (default). Use `-v` for verbose.
|
2022-11-07 19:26:23 +00:00
|
|
|
- `serve`, `server`: run an HTTP server of the output on port 8080.
|
2022-10-29 11:41:15 +00:00
|
|
|
- `clean`: cleans build files.
|
2022-10-29 12:28:16 +00:00
|
|
|
- `help`: show help information.
|
|
|
|
- `version`: show Isidore version number.
|
2022-10-29 11:41:15 +00:00
|
|
|
|
|
|
|
### New Project
|
|
|
|
|
|
|
|
When you create a new project with Isidore it will create the following
|
|
|
|
directory structure:
|
|
|
|
|
|
|
|
- `<dir>/`: the project directory.
|
|
|
|
- `site/`: contains the pages to be compiled.
|
2022-11-02 19:45:53 +00:00
|
|
|
- `templates/`: templates that can be used in `site/` and can also be compiled.
|
2022-10-29 11:41:15 +00:00
|
|
|
- `output/`: output directory of compiled HTML files.
|
|
|
|
- `config.php`: configuration file with Isidore configuration and global
|
|
|
|
variables.
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Currently the project is still under heavy development. The idea isn't to create
|
|
|
|
some massive static site generator project, as projects like this already exist
|
|
|
|
(e.g. Hugo). The point is to create a simple program with very little
|
|
|
|
functionality, that a user can then manually edit to add extra functionality.
|
|
|
|
Though I may consider adding a directory in the project containing patch files
|
|
|
|
if anyone ever wants to send one in.
|
|
|
|
|
|
|
|
In any case, if you want to contribute towards the development of the project,
|
|
|
|
please take a look at what needs to be done in the [roadmap](/ROADMAP.md), or
|
|
|
|
check if there are any to-do comments in the code:
|
|
|
|
|
|
|
|
```bash
|
2022-11-08 14:59:22 +00:00
|
|
|
grep "TODO" isidore.sh
|
2022-10-29 11:41:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## License & Copyright
|
|
|
|
|
|
|
|
This project is licensed under the terms & conditions of the GNU Affero General
|
|
|
|
Public License version 3 (see the [license file](/LICENSE)) for more
|
|
|
|
information.
|