Skip to content

Commit

Permalink
docs: Make badges consistent, run markdownlint on all .md files (#130)
Browse files Browse the repository at this point in the history
- Consistently generate badges for GH workflows in roles RHELPLAN-146921
- Run markdownlint on all .md files
- Rename woke action to Woke for a pretty badge
- Use woke from linux-system-roles/lsr-woke-action

Signed-off-by: Sergei Petrosian <[email protected]>
  • Loading branch information
spetrosi authored Aug 24, 2023
1 parent 71b9dbb commit bb02c46
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 19 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Lint README.md
# CHANGELOG.md is generated automatically from PR titles and descriptions
# It might have issues but they are not critical
- name: Lint all markdown files except for CHANGELOG.md
uses: docker://avtodev/markdown-lint:master
with:
args: README.md
args: >-
--ignore=CHANGELOG.md
**/*.md
config: .markdownlint.yaml
11 changes: 6 additions & 5 deletions .github/workflows/woke.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# yamllint disable rule:line-length
name: Check for non-inclusive language
name: Woke
on: # yamllint disable-line rule:truthy
- pull_request
jobs:
woke:
name: woke
name: Detect non-inclusive language
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: woke
uses: get-woke/woke-action@v0
- name: Run lsr-woke-action
# Originally, uses: get-woke/woke-action@v0
uses: linux-system-roles/lsr-woke-action@main
with:
woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml"
woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml --count-only-error-for-failure"
# Cause the check to fail on any broke rules
fail-on-error: true
3 changes: 1 addition & 2 deletions README-ansible.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Introduction to Ansible for Linux System Roles
==============================================
# Introduction to Ansible for Linux System Roles

If you are not familiar with Ansible, please see
[Introduction to Ansible for Linux System Roles](https://linux-system-roles.github.io/documentation/intro-to-ansible-for-system-roles.html),
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# rhc

[![ansible-lint.yml](https://github.com/linux-system-roles/rhc/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/linux-system-roles/rhc/actions/workflows/ansible-lint.yml) [![ansible-test.yml](https://github.com/linux-system-roles/rhc/actions/workflows/ansible-test.yml/badge.svg)](https://github.com/linux-system-roles/rhc/actions/workflows/ansible-test.yml) [![markdownlint.yml](https://github.com/linux-system-roles/rhc/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/linux-system-roles/rhc/actions/workflows/markdownlint.yml) [![woke.yml](https://github.com/linux-system-roles/rhc/actions/workflows/woke.yml/badge.svg)](https://github.com/linux-system-roles/rhc/actions/workflows/woke.yml)

---

![rhc](https://github.com/linux-system-roles/template/workflows/tox/badge.svg)

An ansible role which connects RHEL systems to Red Hat.
Expand Down
7 changes: 2 additions & 5 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Contributing to the rhc Linux System Role
=========================================
# Contributing to the rhc Linux System Role

Where to start
--------------
## Where to start

The first place to go is [Contribute](https://linux-system-roles.github.io/contribute.html).
This has all of the common information that all role developers need:
Expand All @@ -21,4 +19,3 @@ are likely to be suitable for new contributors!

**Code** is managed on [Github](https://github.com/linux-system-roles/rhc), using
[Pull Requests](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests).

10 changes: 5 additions & 5 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ lsr_rhc_test_data:
- `release` is a release to set for the system; it has the same format of the
`rhc_release` parameter of the `rhc` role
- the various `proxy_*` variables represent proxy-related bits:
- `proxy_noauth_hostname` & `proxy_noauth_port` are the hostname & the port
- `proxy_noauth_hostname` & `proxy_noauth_port` are the hostname & the port
of a proxy server that does not require authentication
- `proxy_noauth_scheme` is the scheme for the proxy server that does not
- `proxy_noauth_scheme` is the scheme for the proxy server that does not
require authentication; it can be not specified if the proxy type is "http"
- `proxy_auth_hostname`, `proxy_auth_port`, `proxy_auth_username` &
- `proxy_auth_hostname`, `proxy_auth_port`, `proxy_auth_username` &
`proxy_auth_password` are the hostname & the port of a proxy server that
requires authentication, together with the credentials for it
- `proxy_auth_scheme` is the scheme for the proxy server that requires
- `proxy_auth_scheme` is the scheme for the proxy server that requires
authentication; it can be not specified if the proxy type is "http"
- `proxy_nonworking_hostname`, `proxy_nonworking_port`,
- `proxy_nonworking_hostname`, `proxy_nonworking_port`,
`proxy_nonworking_username` & `proxy_nonworking_password` are wrong details
of proxy server configuration bits
- `envs_register` is a list of working environments to use when registering a
Expand Down

0 comments on commit bb02c46

Please sign in to comment.