Skip to content

Commit 2995f49

Browse files
authored
docs: bring alex into build process (#469)
1 parent e6b946a commit 2995f49

9 files changed

+11523
-7019
lines changed

.alexignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG.md

.alexrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
profanitySureness: 1,
3+
};

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
coverage/
2+
!.alexrc.js

CODE_OF_CONDUCT.md

+17-12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Our Pledge
44

5+
<!-- alex ignore sex sexual-->
6+
57
We as members, contributors, and leaders pledge to make participation in our
68
community a harassment-free experience for everyone, regardless of age, body
79
size, visible or invisible disability, ethnicity, sex characteristics, gender
@@ -17,23 +19,26 @@ diverse, inclusive, and healthy community.
1719
Examples of behavior that contributes to a positive environment for our
1820
community include:
1921

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
22+
- Demonstrating empathy and kindness toward other people
23+
- Being respectful of differing opinions, viewpoints, and experiences
24+
- Giving and gracefully accepting constructive feedback
25+
- Accepting responsibility and apologizing to those affected by our mistakes,
26+
and learning from the experience
27+
<!-- alex ignore just -->
28+
- Focusing on what is best not just for us as individuals, but for the
2629
overall community
2730

2831
Examples of unacceptable behavior include:
2932

30-
* The use of sexualized language or imagery, and sexual attention or
33+
<!-- alex ignore sexual-->
34+
35+
- The use of sexualized language or imagery, and sexual attention or
3136
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
37+
- Trolling, insulting or derogatory comments, and personal or political attacks
38+
- Public or private harassment
39+
- Publishing others' private information, such as a physical or email
3540
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
41+
- Other conduct which could reasonably be considered inappropriate in a
3742
professional setting
3843

3944
## Enforcement Responsibilities
@@ -106,7 +111,7 @@ Violating these terms may lead to a permanent ban.
106111
### 4. Permanent Ban
107112

108113
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
114+
standards, including sustained inappropriate behavior, harassment of an
110115
individual, or aggression toward or disparagement of classes of individuals.
111116

112117
**Consequence**: A permanent ban from any sort of public interaction within

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Running Shell Commands Locally 🐚
44

5-
To run test commands from within the repository, simply run your commands from the root of the repository and use `./bin/rdme` instead of `rdme` so it properly points to the command executable, like so:
5+
To run test commands from within the repository, run your commands from the root of the repository and use `./bin/rdme` instead of `rdme` so it properly points to the command executable, like so:
66

77
```sh
88
./bin/rdme validate __tests__/__fixtures__/ref-oas/petstore.json
@@ -25,7 +25,7 @@ As of this writing, this is the version of `act` that is able to successfully ru
2525
act version HEAD-9abc87b
2626
```
2727

28-
Once you've installed `act`, it'll ask you what Docker image size you'd like. The standard Medium ones should work just fine. Here's what your `~/.actrc` file should look like:
28+
Once you've installed `act`, it'll ask you what Docker image size you'd like. The standard Medium ones should do the trick. Here's what your `~/.actrc` file should look like:
2929

3030
```
3131
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest

documentation/legacy-github-action.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you previously had a GitHub Workflow file set up that used this action to syn
3333
3434
where the `readme-oas-key` was a concatenation of the `API_KEY` (your project API key) and the `API_DEFINITION_ID` (your API definition ID), separated by a colon.
3535

36-
For migrating to [the `rdme`-based GitHub Action](https://docs.readme.com/docs/rdme), simply modify the step to look like this:
36+
For migrating to [the `rdme`-based GitHub Action](https://docs.readme.com/docs/rdme), modify the step to look like this:
3737

3838
```yml
3939
- uses: readmeio/rdme@RDME_VERSION
@@ -53,13 +53,13 @@ There are a few things to note:
5353

5454
## Legacy Docs
5555

56-
With [GitHub Actions](https://github.com/features/actions), it's super easy to automatically sync your OpenAPI document whenever changes occur in your GitHub repo!
56+
With [GitHub Actions](https://github.com/features/actions), you can automatically sync your OpenAPI document whenever changes occur in your GitHub repo!
5757

5858
> ❗️Deprecated workflow instructions below
5959
>
60-
> Just as a reminder, the `readmeio/github-readme-sync` GitHub Action that's described below is now deprecated. The instructions are preserved for posterity. We strongly recommend all new and existing workflows use our newest GitHub Action: [`rdme`](https://docs.readme.com/docs/rdme)!
60+
> As a reminder, the `readmeio/github-readme-sync` GitHub Action that's described below is now deprecated. The instructions are preserved for posterity. We strongly recommend all new and existing workflows use our newest GitHub Action: [`rdme`](https://docs.readme.com/docs/rdme)!
6161

62-
Just create a new file in your GitHub repository called `.github/workflows/readme-github-sync.yml` and populate it with the template below. You only fill in one parameter from the ReadMe Dashboard and you'll be good to go!
62+
Create a new file in your GitHub repository called `.github/workflows/readme-github-sync.yml` and populate it with the template below. You only fill in one parameter from the ReadMe Dashboard and you'll be good to go!
6363

6464
Any subsequent commits to the `main` or `master` branch (whichever is your default branch—you can also specify any GitHub event of your choice—see [GitHub's docs](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#on) for more info) will automatically trigger the sync process and upload your specified OpenAPI file to ReadMe.
6565

@@ -96,7 +96,7 @@ jobs:
9696

9797
### Migrating Existing APIs to GitHub Sync
9898

99-
If you want to migrate APIs that are already synced into ReadMe via another mechanism, it's super easy! The value for `readme-oas-key` is your [ReadMe Project API Key](https://docs.readme.com/developers/docs/authentication#api-key-quick-start) and the API Specification ID (pictured below) separated by a colon (i.e. `apiKey:apiSpecId`).
99+
You can also migrate APIs that are already synced into ReadMe via another mechanism. The value for `readme-oas-key` is your [ReadMe Project API Key](https://docs.readme.com/developers/docs/authentication#api-key-quick-start) and the API Specification ID (pictured below) separated by a colon (i.e. `apiKey:apiSpecId`).
100100

101101
![](https://files.readme.io/9a89ed3-id.png)
102102

documentation/rdme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You can also specify several other page attributes in your YAML front matter, su
6262

6363
#### Dry Run Mode
6464

65-
If you're setting up new docs or if you're just generally unsure if you've set up your page attributes correctly, the `docs` command has a dry run mode. This will allow you preview the changes without actually creating/updating any docs in ReadMe, which can be extremely useful for initial setup (oh, and we have [comprehensive debugging options](#troubleshooting) available as well!). To enable dry run mode, use the `--dryRun` flag:
65+
If you're setting up new docs or if you're generally unsure if you've set up your page attributes correctly, the `docs` command has a dry run mode. This will allow you preview the changes without actually creating/updating any docs in ReadMe, which can be extremely useful for initial setup (oh, and we have [comprehensive debugging options](#troubleshooting) available as well!). To enable dry run mode, use the `--dryRun` flag:
6666

6767
```sh
6868
rdme docs path-to-markdown-files --version={project-version} --dryRun
@@ -72,7 +72,7 @@ The command output will indicate whether each page is being created or updated a
7272

7373
## GitHub Actions Usage
7474

75-
[GitHub Actions](https://docs.github.com/actions) makes it easy to automatically execute workflows when certain events take place in your GitHub repository (e.g. new code is merged into the default branch, a new pull request is opened, etc.).
75+
With [GitHub Actions](https://docs.github.com/actions), you can automatically execute workflows when certain events take place in your GitHub repository (e.g. new code is merged into the default branch, a new pull request is opened, etc.).
7676

7777
> 📘 Keeping `rdme` up-to-date
7878
>
@@ -220,7 +220,7 @@ To use a GitHub secret in your `rdme` GitHub Action, first [create a new reposit
220220

221221
## Usage in Other CI Environments
222222

223-
Since `rdme` is a command-line tool at its core, you can use `rdme` to sync your documentation from virtually any CI/CD environment that runs shell commands—[Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/), [GitLab CI/CD](https://docs.gitlab.com/ee/ci/), you name it! You can do this by invoking `rdme` with `npx -y rdme@RDME_VERSION` in a Node.js environment. See below for a few simple examples.
223+
Since `rdme` is a command-line tool at its core, you can use `rdme` to sync your documentation from virtually any CI/CD environment that runs shell commands—[Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/), [GitLab CI/CD](https://docs.gitlab.com/ee/ci/), you name it! You can do this by invoking `rdme` with `npx -y rdme@RDME_VERSION` in a Node.js environment. See below for several examples.
224224

225225
<!-- Note: the two code blocks below must be joined, despite what VS Code's formatter tells you!-->
226226

0 commit comments

Comments
 (0)