Static HTML version of demainilpleut.dev using the static website generator Bridgetown.
- Ruby
>= 2.5
- Bridgetown Gem
gem install bundler bridgetown -N
- Node
>= 10.13
- Yarn
cd demainilpleut.dev/
bundle install && yarn install
cd demainilpleut.dev/
docker compose build && docker compose up
To start your site in development mode, run bin/bridgetown start
and navigate to localhost:4000!
The same applies to the Docker installation, run docker compose up
and the website is available at the same address.
# running locally
bin/bridgetown start
# build & deploy to production
bin/bridgetown deploy
# load the site up within a Ruby console (IRB)
bin/bridgetown console
Learn more: Bridgetown CLI Documentation
Basic tests are performed on the structure of the site (broken links, alt attributes on images,..), by using the html-proofer Ruby Gem.
They are launched automatically with every Pull Requests, via GitHub Actions (see cibuild.yml file).
You can run them manually via command line:
./bin/cibuild.sh
Or with Docker:
docker compose run --rm web bin/cibuild.sh
This project only accepts Pull Requests that references an issue.
- Fork it http://github.com/jveillet/demainilpleut.dev/fork
- Clone the fork using
git clone
to your local development machine. - Create your feature branch
git checkout -b feature/issue-number
. - Run the specs and our linter
bin/cibuild
. - Commit your changes
git commit -am 'Add some feature'
. - Push to the branch
git push origin feature/issue-number
. - Create new Pull Request.
- Fork it http://github.com/jveillet/demainilpleut.dev/fork
- Clone the fork using
git clone
to your local development machine. - Create your feature branch for the new page
git checkout -b page/my-post-title
- Create a post in the
src/_posts
starting with the date it should be published (ex: '2021-01-01_my-post-title'). - When you are ready, commit the page
git commit -am 'My post title'
. - Push to the branch
git push origin page/my-post-title
. - Create new Pull Request.