https://github.com/noteed/web
Browsersync + pandoc
https://github.com/noteed/web
Last synced: 2 months ago
JSON representation
Browsersync + pandoc
- Host: GitHub
- URL: https://github.com/noteed/web
- Owner: noteed
- License: bsd-2-clause
- Created: 2017-07-25T19:08:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T16:58:09.000Z (over 8 years ago)
- Last Synced: 2025-12-27T21:53:04.200Z (6 months ago)
- Language: Shell
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Browsersync image
This image renders Markdown files with Pandoc and uses browsersync to serve
them. The resulting web pages are automatically refreshed whenever the
Markdown, CSS, JS, or template files are changed.
*Note*: Not yet ready for public consumption because the template is a work in
progress.
Probably something like Hakyll should be added to the image (e.g. to generate
an index).
## Building
Run `./build.sh`.
## Running
It is possible to override the internal `css`, `js`, and `templates`
directories by mounting what you want at `/source`. The sample `run.sh` script
does that, by mounting this very repository.
Simply run `./run.sh` and visit [localhost:3000](http://localhost:3000).
If you don't override the `/source` directory. You will need to mount
`/markdown` and touch the files there to generate new files. The sample
`run-blog.sh` script does that.
THe browsersync dashboard is visible at
[localhost:3001](http://localhost:3001).