-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update docs tooling and checks (#1330)
* fix: Remove github token with incorrect access * docs: Improve uninstall CTA in migration guide * fix: Update checkout action version for vale * docs: Vale reports errors in any edited file * docs: Update to make Vale happy * docs: Markdownlint fixes * fix: Remove sync actions as this integration is no longer used * core: Add markdownlint config and github action Uses rules from https://github.com/Redocly/marketing-site-portal/pull/1142 * chore: Move contributing file to top level * chore: Add markdown to the file types that we want prettier to operate on * fix: Make files fit prettier rules, ignore LICENSE since we can't change that * chore: Combine docs-related workflows into one for simplicity * docs: Add instructions for running the CLI docs standalone from this repo * chore: Add changeset, this docs change is quite large * Update .changeset/bright-steaks-walk.md Co-authored-by: Ihor Karpiuk <[email protected]> --------- Co-authored-by: Ihor Karpiuk <[email protected]>
- Loading branch information
1 parent
de80612
commit afb5d94
Showing
18 changed files
with
142 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@redocly/cli": patch | ||
--- | ||
|
||
Support standalone docs development to facilitate more contributors, add docs quality checks to CI. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Documentation tests | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
markdownlint: | ||
name: markdownlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: articulate/actions-markdownlint@v1 | ||
with: | ||
config: .markdownlint.yaml | ||
files: 'docs/**/*.md' | ||
|
||
vale: | ||
name: vale action | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: errata-ai/vale-action@reviewdog | ||
with: | ||
files: '["README.md", "docs"]' | ||
filter_mode: file | ||
|
||
linkcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Markup Link Checker (mlc) | ||
uses: becheran/[email protected] | ||
with: | ||
args: ./docs |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
# Default rules: https://github.com/github/super-linter/blob/master/TEMPLATES/.markdown-lint.yml | ||
|
||
# Rules by id | ||
|
||
# Unordered list style | ||
MD004: false | ||
|
||
# Unordered list indentation | ||
MD007: | ||
indent: 2 | ||
|
||
MD013: | ||
# TODO: Consider to decrease allowed line length | ||
line_length: 800 | ||
tables: false | ||
|
||
## Allow same headers in siblings | ||
MD024: | ||
siblings_only: true | ||
|
||
# Multiple top level headings in the same document | ||
MD025: | ||
front_matter_title: '' | ||
|
||
# Trailing punctuation in heading | ||
MD026: | ||
punctuation: '.,;:。,;:' | ||
|
||
# Ordered list item prefix | ||
MD029: false | ||
|
||
# Unordered lists inside of ordered lists | ||
MD030: false | ||
|
||
# Inline HTML | ||
MD033: false | ||
|
||
# No bare urls | ||
MD034: false | ||
|
||
# Emphasis used instead of a heading | ||
MD036: false | ||
|
||
# Disable "First line in file should be a top level heading" | ||
# We use uncommon format to add metadata. | ||
# TODO: Consider to use "YAML front matter". | ||
MD041: false | ||
|
||
# Rules by tags | ||
blank_lines: false | ||
|
||
MD046: false | ||
# code-block-style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afb5d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report
Test suite run success
646 tests passing in 93 suites.
Report generated by 🧪jest coverage report action from afb5d94