Skip to content

About

Official Padrino website

Resources

Stars

14 stars

Watchers

4 watching

Forks

Repository files navigation

New Padrino Website

Built using Middleman.

Screenshots

Home page Guide page Home page in dark mode Guide page on mobile

Local Server Instructions

  1. Clone the repository with the docs submodule, which holds the guides and blog posts.

    git clone --recurse-submodules https://github.com/padrino/padrino-web.git
  2. Install Ruby 3.1 (see .ruby-version) and the gem dependencies.

    bundle install
  3. Start the Middleman server. It reloads the browser when you edit the site or the docs.

    bundle exec middleman server
  4. Visit http://localhost:4567

To preview changes from a local checkout of padrino-docs, pull them into the submodule:

cd docs && git pull ../../padrino-docs master

Deployment

The Build and deploy workflow builds the site against the latest padrino-docs master and pushes it to the gh-pages branch, which GitHub Pages serves at https://padrinorb.com. It runs on every push to master, daily to pick up docs changes, and on demand from the Actions tab. Pull requests are built but never deployed.

To deploy right after a docs change, run the workflow manually. It also accepts a docs-updated repository dispatch event, which padrino-docs could send with a token that can write to this repo (not set up).

To deploy from your machine instead, update the docs, build and deploy in a single command. It force-pushes gh-pages, so don't run it while the workflow is deploying:

rake publish

Manual Build Instructions

  1. Update the docs through submodule.

    rake update
  2. Build the static site.

    middleman build
  3. Deploy the site to gh-pages.

    middleman deploy
  4. Visit the site at http://padrinorb.com.

About

Official Padrino website

Resources

Stars

14 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages