sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

More granular rebuilds #67

Closed sc0ttj closed 4 years ago

sc0ttj commented 5 years ago

rebuild a group of index pages

- `rebuild 2019` => rebuild all monthly index pages in posts/2019/
- `rebuild authors` => rebuild all author pages
- `rebuild categories` => rebuild all category pages
- `rebuild tags` => rebuild all tag pages

rebuild a specific index page:

- `rebuild 2019/03` => rebuilds 2019/03/index.html
- `rebuild authors/bob` => rebuilds authors/bob.html
- `rebuild categories/blog` => rebuilds categories/blog.html
- `rebuild tags/markdown` => rebuilds tags/markdown.html

...and so on.

Implementation

A major rerwite of update_pages.sh, and updates to .site_config and .app/cli-interface.bash

Possible solution

Move each section of update_pages.sh to its own function, then use those functions in update_page.sh, and also in clit-interface.bash.

sc0ttj commented 5 years ago

Partial rebuilds were added in this PR (merged): https://github.com/sc0ttj/mdsh/pull/77

Stuff not implemented in that PR left in this ticket.

sc0ttj commented 4 years ago

Done in commit https://github.com/sc0ttj/mdsh/commit/f990e75f9a0b3930d8833c7290eb4d742ac4e037