Skip to content

Commit a2efa58

Browse files
authored
Merge pull request #27 from Bandwidth/sync
Sync Fork with Cherry-Pick
2 parents 4f6935b + 83504d3 commit a2efa58

File tree

76 files changed

+7680
-6742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+7680
-6742
lines changed

.github/CONTRIBUTING.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# ReDoc Contributing Guide
1+
# Redoc Contributing Guide
22

33
Hi! We're really excited that you are interested in contributing to ReDoc. This is the wrong place to do that if you don't work at Bandwidth :). Please contribute to [Redocly/redoc](https://github.com/Redocly/redoc) instead. If you are from Bandwidth, before submitting your contribution, please make sure to take a moment and read through the following guidelines.
44

5-
- [Issue Reporting Guidelines](#issue-reporting-guidelines)
6-
- [Pull Request Guidelines](#pull-request-guidelines)
7-
- [Development Setup](#development-setup)
8-
- [Project Structure](#project-structure)
5+
- [Redoc Contributing Guide](#redoc-contributing-guide)
6+
- [Issue Reporting Guidelines](#issue-reporting-guidelines)
7+
- [Pull Request Guidelines](#pull-request-guidelines)
8+
- [Development Setup](#development-setup)
9+
- [Commonly used NPM scripts](#commonly-used-npm-scripts)
10+
- [Project Structure](#project-structure)
911

1012
## Issue Reporting Guidelines
1113
- Before filing a new issue, try to make sure your problem doesn’t already exist.
@@ -22,7 +24,7 @@ Before submitting a pull request, please make sure the following is done:
2224

2325
## Development Setup
2426

25-
You will need [Node.js](http://nodejs.org) at `v12.0.0+`.
27+
You need [Node.js](http://nodejs.org) at `v12.0.0+`.
2628

2729
After cloning the repo, run:
2830

@@ -88,7 +90,7 @@ There are some other scripts available in the `scripts` section of the `package.
8890

8991
- **`src/common-elements`**: contains common Styled elements or components used in multiple places
9092
- **`src/components`**: contains main visual components
91-
- **`src/services`**: contains different services used by ReDoc including MobX stores
93+
- **`src/services`**: contains different services used by Redoc including MobX stores
9294
- **`src/services/models`**: contains classes for OpenAPI entities (e.g. Response, Operations, etc)
9395
- **`src/types`**: contains extra typescript typings including OpenAPI doc typings
9496
- **`src/utils`**: utility functions
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
extends: substitution
2+
message: 'Use the US spelling "%s" instead of British "%s".'
3+
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
4+
level: error
5+
ignorecase: true
6+
swap:
7+
aeon: eon
8+
aeroplane: airplane
9+
ageing: aging
10+
aluminium: aluminum
11+
anaemia: anemia
12+
anaesthesia: anesthesia
13+
analyse: analyze
14+
annexe: annex
15+
apologise: apologize
16+
behaviour: behavior
17+
busses: buses
18+
calibre: caliber
19+
cancelled: canceled
20+
cancellation: cancelation
21+
catalogue: catalog
22+
categorise: categorize
23+
categorised: categorized
24+
categorises: categorizes
25+
categorising: categorizing
26+
centre: center
27+
cheque: check
28+
civilisation: civilization
29+
civilise: civilize
30+
colour: color
31+
cosy: cozy
32+
cypher: cipher
33+
dependant: dependent
34+
defence: defense
35+
distil: distill
36+
draught: draft
37+
encyclopaedia: encyclopedia
38+
enquiry: inquiry
39+
enrol: enroll
40+
enrolment: enrollment
41+
enthral: enthrall
42+
expiry: expiration
43+
favourite: favorite
44+
fibre: fiber
45+
fillet: filet
46+
flavour: flavor
47+
furore: furor
48+
fulfil: fulfill
49+
gaol: jail
50+
grey: gray
51+
humour: humor
52+
honour: honor
53+
initialled: initialed
54+
initialling: initialing
55+
instil: instill
56+
jewellery: jewelry
57+
labelling: labeling
58+
labelled: labeled
59+
labour: labor
60+
libellous: libelous
61+
licence: license
62+
likeable: likable
63+
liveable: livable
64+
lustre: luster
65+
manoeuvre: maneuver
66+
marvellous: marvelous
67+
matt: matte
68+
meagre: meager
69+
metre: meter
70+
modelling: modeling
71+
moustache: mustache
72+
neighbour: neighbor
73+
normalise: normalize
74+
offence: offense
75+
organise: organize
76+
organisation: organization
77+
orientated: oriented
78+
paralyse: paralyze
79+
plough: plow
80+
pretence: pretense
81+
programme: program
82+
pyjamas: pajamas
83+
rateable: ratable
84+
realise: realize
85+
recognise: recognize
86+
reconnoitre: reconnoiter
87+
rumour: rumor
88+
sabre: saber
89+
saleable: salable
90+
saltpetre: saltpeter
91+
sceptic: skeptic
92+
sepulchre: sepulcher
93+
signalling: signaling
94+
sizeable: sizable
95+
skilful: skillful
96+
sombre: somber
97+
smoulder: smolder
98+
speciality: specialty
99+
spectre: specter
100+
splendour: splendor
101+
standardise: standardize
102+
standardised: standardized
103+
sulphur: sulfur
104+
theatre: theater
105+
travelled: traveled
106+
traveller: traveler
107+
travelling: traveling
108+
unshakeable: unshakable
109+
wilful: willful
110+
yoghurt: yogurt

.github/styles/Rules/FutureTense.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
extends: existence
2+
message: 'Avoid using future tense: "%s". Use present tense instead.'
3+
link: https://intranet.redoc.ly/contributing/documentation-style-guide/#tone-and-audience
4+
ignorecase: true
5+
level: error
6+
raw:
7+
- "(going to( |\n|[[:punct:]])[a-zA-Z]*|"
8+
- "will( |\n|[[:punct:]])[a-zA-Z]*|"
9+
- "won't( |\n|[[:punct:]])[a-zA-Z]*|"
10+
- "[a-zA-Z]*'ll( |\n|[[:punct:]])[a-zA-Z]*)"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends: existence
2+
message: 'Do not start headings with with a gerund (ing word). Use an imperative verb instead.'
3+
link: https://intranet.redoc.ly/contributing/documentation-style-guide/#content-organization
4+
level: error
5+
scope: heading
6+
tokens:
7+
- '^\w*ing.*'
8+
exceptions:
9+
- expandSingleSchemaField
10+
- hideLoading
11+
- hideSingleRequestSampleTab
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
extends: substitution
2+
message: 'Use inclusive language. Consider "%s" instead of "%s".'
3+
link: https://intranet.redoc.ly/contributing/documentation-style-guide/#grammar-and-syntax
4+
level: error
5+
ignorecase: true
6+
swap:
7+
he: they
8+
his: their
9+
she: they
10+
hers: their
11+
blacklist(?:ed|ing|s)?: blocklist
12+
whitelist(?:ed|ing|s)?: allowlist
13+
master: primary, main
14+
slave: replica
15+
he/she: they
16+
s/he: they

.github/styles/Rules/OxfordComma.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extends: existence
2+
message: "Use the Oxford comma in '%s'."
3+
link: https://docs.microsoft.com/en-us/style-guide/punctuation/commas
4+
scope: sentence
5+
level: error
6+
nonword: true
7+
tokens:
8+
- '(?:[^\s,]+,){1,} \w+ (?:and|or) \w+[.?!]'

.github/styles/Vocab/Rules/accept.txt

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
[Aa]nsible
2+
[Aa]utostart
3+
[Bb]locklist
4+
[Bb]locklists
5+
[Bb]oolean
6+
[Bb]reakpoint
7+
[B]reakpoints
8+
[Cc]ancelation
9+
[Cc]lassloading
10+
[Cc]hargeback
11+
[Cc]hargebacks
12+
[Cc]he
13+
[Cc]rypto
14+
[Cc]ryptocurrency
15+
[Dd]evfile|[Dd]evfiles
16+
[Dd]ownstream
17+
[Dd]ownstreaming
18+
[Ff]actories|[Ff]actory
19+
[Gg]it
20+
[Gg]rafana
21+
[Hh]eatmap
22+
[Hh]elm
23+
[Hh]ostname
24+
[Ii]tem
25+
[Jj]etbrains
26+
[Kk]eycloak
27+
[Ll]iveness
28+
[Ll]ombok
29+
[Ll]oopback
30+
[Mm]aven
31+
[Mm]inikube
32+
[Mm]inishift
33+
[Mm]ixin|[Mm]ixins
34+
[Mm]odularization
35+
[Mm]ulticluster
36+
[Mm]ultihost
37+
[Mm]ultinode
38+
[Mm]ultitenant
39+
[Mm]ultiuser
40+
[Mm]ultizone
41+
[Nn]amespace|[Nn]amespaces
42+
[Nn]etcoredebug[Oo]utput
43+
[Nn]ginx
44+
[Oo]nboarding
45+
[Pp]podman
46+
[Pp]reconfigured
47+
[Rr]eadonly
48+
[Rr]epresentment
49+
[Rr]ollout|[Rr]ollouts
50+
[Rr]untime|[Rr]untimes
51+
[Ss]erializer
52+
[Ss]erverless
53+
[Ss]ubnetwork
54+
[Ss]ubpath|[Ss]ubpaths
55+
[Tt]heia
56+
[Tt]olerations
57+
[Tt]ruststore
58+
[Uu]ninstallation
59+
[Uu]nstaged
60+
[Uu]ntrusted
61+
[Ww]orkspace|[Ww]orkspaces
62+
[Yy]eoman
63+
\.NET
64+
adoc
65+
Antora
66+
API
67+
Apigee
68+
AsciiDoc
69+
AWS|aws
70+
Azure
71+
Bierner
72+
Bitbucket
73+
btn
74+
Btrfs
75+
CentOS
76+
Ceph
77+
Che-Theia
78+
CLI
79+
ConfigMap|ConfigMaps
80+
Ctrl
81+
DaemonSet
82+
Dev Workspace
83+
Developer Perspective
84+
DNS
85+
Docker
86+
Dockerfile
87+
Dotnet
88+
Endevor
89+
endif
90+
GitHub|github
91+
GitLab
92+
Gluster
93+
Gradle
94+
Grafana
95+
GUI
96+
HTTPS|https
97+
I/O
98+
IDE|ide|IDEs
99+
Intelephense
100+
IntelliJ IDEA
101+
Java
102+
Java Lombok
103+
JSON|json
104+
JVM|jvm
105+
kbd
106+
Kubespray
107+
Laravel
108+
Let\'s Encrypt
109+
Mattermost
110+
mebibytes
111+
Microsoft Azure
112+
millicores
113+
Mulesoft
114+
MySQL
115+
Netlify
116+
Node.js
117+
npm
118+
NuGet
119+
OAuth
120+
ocp
121+
OmniSharp
122+
OpenShift
123+
OpenTracing
124+
Operator
125+
OperatorHub
126+
OpenAPI
127+
osd
128+
PHP
129+
PostgreSQL
130+
Quarkus
131+
Rebilly
132+
Redoc
133+
Redocly
134+
Redocly-cli
135+
SCM
136+
Sharding
137+
SonarLint
138+
Spring Boot
139+
SVG
140+
Uber
141+
URI|URIs
142+
URL|url|URLs
143+
Velero
144+
Vercel
145+
Visual Studio Code
146+
vsix
147+
Webview|Webviews
148+
Woopra
149+
YAML|yaml
150+
Zowe

.github/styles/Vocab/Rules/reject.txt

Whitespace-only changes.

.github/workflows/vale.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Docs lint
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
6+
jobs:
7+
vale:
8+
name: vale action
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: errata-ai/vale-action@reviewdog
13+
with:
14+
files: '["README.md", "docs"]'
15+
env:
16+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)