Built using Middleman.
-
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
-
Install Ruby 3.1 (see
.ruby-version) and the gem dependencies.bundle install
-
Start the Middleman server. It reloads the browser when you edit the site or the docs.
bundle exec middleman server -
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 masterThe 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-
Update the docs through submodule.
rake update
-
Build the static site.
middleman build
-
Deploy the site to gh-pages.
middleman deploy
-
Visit the site at http://padrinorb.com.



