Skip to content

Commit

Permalink
Merge pull request #311 from thoughtbot/sb-add-dynamic-readme-workflow
Browse files Browse the repository at this point in the history
Call dynamic-readme reusable workflow
  • Loading branch information
Stefanni Brasil authored Mar 14, 2024
2 parents 7bfe2f4 + 3f5d3e3 commit 31d62dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dynamic-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: update-templates

on:
push:
branches:
- main
workflow_dispatch:

jobs:
update-templates:
permissions:
contents: write
pull-requests: write
pages: write
uses: thoughtbot/templates/.github/workflows/dynamic-readme.yaml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
30 changes: 10 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Yeah, like "About us", "Directions", marketing pages, etc.

## Installation

There are two ways to install High Voltage.
There are two ways to install High Voltage.

You can run:
You can run:

$ gem install high_voltage

Expand Down Expand Up @@ -152,6 +152,7 @@ Then print the contents of `:title` into the layout:
# app/views/layouts/application.html.erb
<title><%= yield(:page_title) %></title>
```

#### Content path

High Voltage uses a default path and folder of 'pages', i.e. 'url.com/pages/contact',
Expand Down Expand Up @@ -179,10 +180,10 @@ HighVoltage controller as described [below](#override).

Most common reasons to override?

* You need authentication around the pages to make sure a user is signed in.
* You need to render different layouts for different pages.
* You need to render a partial from the `app/views/pages` directory.
* You need to use your own Page resource and would like to use StaticPage resource for high voltage
- You need authentication around the pages to make sure a user is signed in.
- You need to render different layouts for different pages.
- You need to render a partial from the `app/views/pages` directory.
- You need to use your own Page resource and would like to use StaticPage resource for high voltage

Create a `PagesController` of your own:

Expand Down Expand Up @@ -369,21 +370,10 @@ Thank you, [contributors]!

## License

High Voltage is copyright © 2009-2023 thoughtbot. It is free software, and may
High Voltage is copyright © 2009-2024 thoughtbot. It is free software, and may
be redistributed under the terms specified in the [`LICENSE`] file.

[`LICENSE`]: /MIT-LICENSE

## About thoughtbot

![thoughtbot](http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)

High Voltage is maintained and funded by thoughtbot, inc.
The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software!
See [our other projects][community].
We are [available for hire][hire].

[community]: https://thoughtbot.com/community?utm_source=github
[hire]: https://thoughtbot.com/hire-us?utm_source=github
<!-- START /templates/footer.md -->
<!-- END /templates/footer.md -->

0 comments on commit 31d62dd

Please sign in to comment.