Skip to content

Commit 6648873

Browse files
authored
Merge pull request #3 from rubocop/chore
Add necessary files
2 parents c136d88 + 450f5e3 commit 6648873

File tree

10 files changed

+75
-1
lines changed

10 files changed

+75
-1
lines changed

.codespellignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rouge

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.adoc whitespace=trailing-space,tab-in-indent

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'

.github/workflows/codespell.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CodeSpell
2+
on:
3+
- pull_request
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
6+
cancel-in-progress: true
7+
jobs:
8+
codespell:
9+
name: CodeSpell
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: CodeSpell
14+
uses: codespell-project/actions-codespell@master
15+
with:
16+
check_filenames: true
17+
check_hidden: true
18+
ignore_words_file: .codespellignore
19+
exclude_file: docs/index.html

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy documentation to GitHub Pages
2+
on:
3+
push:
4+
branches: ["main"]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: true
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
if: ${{ github.repository == 'rubocop/capybara-style-guide' && !startsWith(github.event_name, 'pull') }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: "3.4"
22+
bundler-cache: true
23+
- name: Setup Pages
24+
id: pages
25+
uses: actions/configure-pages@v5
26+
- name: AsciiDoc to HTML
27+
run: bundle exec asciidoctor -a toc="left" -a toclevels=2 README.adoc -o docs/index.html
28+
- uses: actions/upload-pages-artifact@v3
29+
deploy:
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
runs-on: ubuntu-latest
34+
needs: build
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
README.html
2+
README.pdf
3+
Gemfile.lock

.nojekyll

Whitespace-only changes.

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gem 'asciidoctor'
6+
gem 'rouge', '3.3.0'

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ gem install rouge
4848

4949
== A Living Document
5050

51-
This guide is work in progress - trying to fill in the arguments by which the rubocop-capbyara cops were written so that users can undestand the tradeoffs on different approaches (whether to configure, enable or disable different cops) and understand where it's a question of consistency and/or style, or are there other issues at play.
51+
This guide is work in progress - trying to fill in the arguments by which the rubocop-capbyara cops were written so that users can understand the tradeoffs on different approaches (whether to configure, enable or disable different cops) and understand where it's a question of consistency and/or style, or are there other issues at play.
5252

5353
== Using Capybara
5454

docs/index.html

Whitespace-only changes.

0 commit comments

Comments
 (0)