Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rybla/modular-blog
https://github.com/rybla/modular-blog
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/rybla/modular-blog
- Owner: rybla
- Created: 2024-07-23T00:12:26.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T01:13:11.000Z (4 months ago)
- Last Synced: 2024-07-24T03:29:21.858Z (4 months ago)
- Language: PureScript
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# modular-blog
```sh
bun run build
bun run serve
```## Organization
Dependencies:
- modular-blog-common
- modular-blog-content <- modular-blog-common
- modular-blog-generate <- modular-blog-common, modular-blog-content
- modular-blog-app <- modular-blog-commonThe package `modular-blog-common` contains all code shared among the other
packages. In particular, `modular-blog-common` defines the types `Page` and
`Note`, and the functions for operating with them e.g. rendering.The `modular-blog-content` package contains all the actual content that will
appear in the blog. In particular, `modular-blog-content` has all the
pre-defined `Note`s and all the `Page`s that will become HTML endpoints.The `modular-blog-app` package contains the application code.
The `modular-blog-generate` package contains runnable modules for generating and
bundling Purescript files in `modular-blog-app`.
- runnable module `GenerateEndpoints` that for each `Page` in `content`:
- import the `Page`
- generate a runnable module in `modular-blog-app` of the same name
- runnable module `BundleApp` that for each `Page` in `content`:
- use spago to bundle the runnable module of the `Page` in
`modular-blog-app` to the appropriate location in `docs/`
- generate the directory and HTML file in `docs/` as well