Go to file
Simon Petit adf285d723
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
forgot all lines of unordered lists
2025-01-28 16:15:05 +01:00
lib forgot all lines of unordered lists 2025-01-28 16:15:05 +01:00
test adding new link test 2024-12-05 13:26:14 +01:00
.drone.yml typo in repo name 2024-12-05 16:47:35 +01:00
.gitignore improving installation + adding variable to execute awk script 2024-10-28 22:06:49 +01:00
bob modifying the principle : all to be published article shall be in the published folder, and bob publish, publish them all 2024-12-05 11:56:19 +01:00
Dockerfile Init dockerfile 2024-12-05 14:43:06 +01:00
Makefile improving installation + adding variable to execute awk script 2024-10-28 22:06:49 +01:00
README.md Completing readme.md 2024-12-09 14:13:55 +00:00

bob

Bob is a small static generator, for those who wants to maintain a personal website or blog, all from the command line.

Installation

It only is designed in bash script, and should work perfectly fine on any Unix like machine.

git clone https://git.simonpetit.top/simonpetit/bob
cd bob
make test
sudo make install

or using Docker :

docker pull git.simonpetit.top/simonpetit/bob:0.1.0

Usage

Publish : to convert a drafts in markdown into a html article

To write a post, create a markdown file in the drafts folder whose name will also be its title, and convert it to an html file, type the following command from the root.

Once your draft is ready to be published, move it into drafts/published and call bob

bob publish 

Bob will convert all markdown files within drafts/published in html and put them into posts It will also update the index.html to add this newly article into its list.

Unpublish : to remove a published article

To remove a specific post, remove its counterpart from draft/published and rerun :

bob publish

This will remove the html files from the posts folder, and republish accordingly to the drafts/published list of files. The file index.html will be rewritten to match the actually published posts.

Help

See the help for additional command, such as modification of the main configuration of the blog.

bob help

TODO

  • Make a proper header/footer for the posts (e.g. adding links to social networks such as tweeter, github, dev.to ...).
  • Complete the CSS files.
  • Add a comment/like section ?
  • Consider adding configuration files for some/all posts (if they need special javascript included e.g. MathJax, AJAX, sockets ...).