Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call dynamic-readme reusable workflow #311

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -->
Loading