Commit Graph

64 Commits

Author SHA1 Message Date
Dmytro Anansky
58abf6fed4 feat: adding spot arazzo rules (#1713) 2024-09-09 15:42:04 +03:00
Lorna Jane Mitchell
1002e80f40 docs: Fix an outdated admonition format (#1711) 2024-09-04 13:56:32 +01:00
Dmytro Anansky
7c3de8509b feat: spot-arazzo rules (#1670) 2024-08-29 12:19:34 +03:00
volodymyr-rutskyi
7a0e52f57e feat: add support for a plugin interface common with Realm (#1661) 2024-08-21 14:23:02 +03:00
Dmytro Anansky
7b0ff3ad77 chore: remap arazzo schema to our internal type (#1656) 2024-08-16 15:50:05 +03:00
Alex Varchuk
48f1401844 feat: add asyncapi 3.0 (#1620) 2024-07-24 11:29:24 +03:00
Lorna Jane Mitchell
9c3263266f docs: add a guide for linting Arazzo files (#1642)
* docs: add a guide for linting Arazzo files

* chore: fix formatting

* Update docs/guides/lint-arazzo.md

* Apply suggestions from code review

Co-authored-by: JLekawa <164185257+JLekawa@users.noreply.github.com>

* docs: More PR feedback and add the output sample

* docs: fix a link

---------

Co-authored-by: JLekawa <164185257+JLekawa@users.noreply.github.com>
2024-07-23 10:15:51 +01:00
JLekawa
e2b59a0dfc 1534-review-guide-for-replacing-servers (#1542)
* Removed header numbering, removed "We do" admonition, improved language for consistency.

* Cleaned up markdownlint and vale errors

* Cleaned up markdown

* Ran Prettier

* Apply suggestions from code review

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* docs: Revert changes to package files

* Update docs/guides/replace-servers-url.md

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update replace-servers-url.md

Included changes from comments

* Extended intro, added subheadings to "Verify the output", added a summary and resources

* docs: Prettier being fussy

---------

Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
Co-authored-by: Heather Cloward <heathercloward@gmail.com>
Co-authored-by: Lorna Mitchell <lorna.mitchell@redocly.com>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
2024-05-09 10:59:59 +01:00
romana-la
875dfa8d8b docs: replace relative links leading outside of the directory (#1515)
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
2024-05-08 11:15:57 +01:00
Lorna Jane Mitchell
e8ea285762 docs: add a guide for linting and bundling as two separate but chained commands (#1385)
* docs: add a guide for linting and bundling as two separate but chained commands

* Apply suggestions from code review

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* docs: reformat wrapping

* docs: grammar fix for guides index page

* Update docs/guides/lint-and-bundle.md

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

---------

Co-authored-by: Heather Cloward <heathercloward@gmail.com>
2024-01-11 08:46:18 +00:00
Julien
918f570203 docs: fix typo in the migration guide (#1366) 2023-12-21 19:20:16 +02:00
Ihor Karpiuk
d5e2e289b8 chore: update link to async api specification (#1350) 2023-12-07 18:35:28 +02:00
Lorna Jane Mitchell
afb5d9425f 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 <106662428+IgorKarpiuk@users.noreply.github.com>

---------

Co-authored-by: Ihor Karpiuk <106662428+IgorKarpiuk@users.noreply.github.com>
2023-11-20 16:00:32 +00:00
Lorna Jane Mitchell
de80612b55 chore: Run prettier on all docs files (#1334) 2023-11-17 09:45:03 +00:00
redocly-bot
d008291a32 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-11-09 15:56:27 +00:00
redocly-bot
eadf29f6a8 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-11-03 15:28:27 +00:00
Andrew Tatomyr
4620f79f29 feat: add built-in recommeded-strict ruleset (#1311) 2023-10-26 15:07:19 +03:00
redocly-bot
1280b08336 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-10-18 14:49:40 +00:00
redocly-bot
c4ae8fac66 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-10-10 13:31:02 +00:00
redocly-bot
85a5c6b281 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-10-09 19:12:22 +00:00
redocly-bot
9199b2bab7 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-10-09 16:35:49 +00:00
Adam Altman
0a73f1f557 refactor: rename to API description for consistency (#1239) 2023-09-18 15:22:26 +02:00
Roman Hotsiy
680c431cbb AsyncAPI linting support (#1127)
* chore: progress on asyncapi

* chore: more progress

* chore: enable assertions

* Feat: Start adding protocol-specific channel bindings

* Feat: flesh out components fields

* Fix: remove link and x-code-sample, not supported for asyncapi

* Feat: Add solace protocol support

* chore: refactor channel/server bindings to define and add to collection

* chore: re-order nodes to group by protocol

* chore: re-order node listings to also group by protocol

* feat: add topicConfiguration for Kafka and fix a typo

* feat: rename ServerMap for clarity

* feat: Add message bindings, remove incomplete protocols

* fix: a few tests were failing after original refactoring

* feat: add MessageTrait object

* feat: Add operation bindings, export operation and message bindings

* Feat: add a few rules for asyncapi, create channels-kebab-case

* fix: Add messageBindings and operationBindings to components section

* feat: Add no-channel-trailing-slash rule for asyncapi

* fix: Update allowed/required list for httpAPIkey

* chore: add tests for new AsyncAPI rules

* Feat: Add sample asyncapi descriptions as tests

* chore: generate snapshot.js for async-api tests

* chore: fix some minor drift between main branch and this one after
rebasing

* docs: add a guide to linting AsyncAPI

* fix: broken links in guide

* chore: run prettier

* chore: update test snapshot

* chore: clean up comments and stray log message

* docs: Update from review feedback, and add a health warning

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* fix: allow async2 as the only feature in custom plugins

* chore: add tests and tweak error messages for document type detection

* chore: fix tests and rename majorSpecVersion->getMajorSpecVersion

* chore: run prettier

* chore: Tidy and improve comments in main asyncapi types file

* chore: remove outdated comment

* fix: remove extraneous empty extends from guide and tests

* docs: Add changeset for AsyncAPI feature

* Update .changeset/quick-emus-punch.md

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

---------

Co-authored-by: Lorna Mitchell <lorna.mitchell@redocly.com>
Co-authored-by: SmoliyY <yevhen.smoliy@gmail.com>
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
2023-09-15 13:52:03 +01:00
redocly-bot
06c8fda196 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-08-21 16:58:19 +00:00
Lorna Jane Mitchell
daf030b7a8 Custom plugin documentation (#1222)
* Remove extra 'resources' landing page, redirect from main one

* Move custom plugins file to its own directory, add redirect to handle

* docs: split the custom plugins page into one page per feature

* docs: extend decorators explanation and link to it from the custom plugins section

* docs: Fix all the links that were broken when I moved things

* Apply excellent suggestions from code review

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* docs: Add examples of how to use the custom rule

* docs: Replace the nested visitor example with an object rather than a function

* Update custom-rules.md

minor consistency edits

* Apply suggestions from code review

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* docs: clearer explanation of skip, and finish a broken sentence

* Update docs/custom-plugins/index.md

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* docs: use object rather than function for visitor

---------

Co-authored-by: Heather Cloward <heathercloward@gmail.com>
Co-authored-by: Adam Altman <adam@redoc.ly>
2023-08-16 14:26:56 +01:00
redocly-bot
f7a6a036ec sync: Synced local 'docs/' with remote 'docs/cli/' 2023-07-27 12:39:02 +00:00
redocly-bot
0976fbabab sync: Synced local 'docs/' with remote 'docs/cli/' 2023-07-25 18:37:28 +00:00
Lorna Jane Mitchell
50d699d181 Docs for migrating from Spectral to Redocly CLI (#1131)
* docs: Draft of spectral migration guide

* docs: add redocly and spectral rules list

* docs: fix configurable rule example and some links, add a punchline

* docs: Expand on the custom and configurable rules options

* fix: a broken link
2023-07-24 11:22:33 +01:00
redocly-bot
78c9119143 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-06-26 16:28:57 +00:00
Lorna Jane Mitchell
909fb471ca Add Vale for prose linting (#1099)
* feat: Add Vale configuration and rules

* docs: Fix top-level files to match Vale rules

* docs: Vale updates for the commands docs

* docs: apply Vale updates to the decorator docs

* docs: Update guides to match Vale rules

* docs: update rules and other content to meet Vale standards

* docs: add Vale link and information to CONTRIBUTING

* feat: Add GitHub action for Vale

* docs: minor editing to readme.md

* docs: minor editing to the changelog.md file

* docs: minor edits to the join.md file in commands folder

* docs: minor edits to lint.md file in the commands directory

* docs: minor edit to the login.md file in the commands directory

* docs: minor edits to the preview.md file in the commands directory

* docs: minor edits to push.md file in the comands directory

* docs: minor edits to the info-description-override.md file in the decorators directory

* docs: minor edits to the configure-rules.md file in the guides directory

* docs: minor edits to custom-plugin.md file in the resources directory

* docs: minor editing to the no-http-verbs-in-paths.md file in the rules directory

---------

Co-authored-by: Heather Cloward <heathercloward@gmail.com>
2023-06-01 10:10:43 +01:00
Lorna Jane Mitchell
0455569a39 Docs: top-level refresh and restructure (#1043)
* docs: Start with a more developer and purpose oriented landing page

* docs: Clear installation options, autocomplete is a separate guide

* docs: update links in installation guide

* docs: Move update instructions to be a guide, remove local installation

* docs: Remove git documentation from starter project

* docs: Add a quicker quickstart

* docs: Re-organise and flesh out commands page

* docs: add built-in ruleset docs, add concept, start guide

* docs: Add a guide for configuring linting

* Docs: rename custom rules to assertions

* docs: Sort assertion docs and examples alphabetically

* docs: clearer linting explanations and signposting of rule types

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* docs: Remove reference to a  config object, after user confusion

* docs: Add docs-building entrypoint article

* docs: Add one-line descriptions alongside rule names

* fix: Correct images for docs overview page

* docs: Link to custom function in custom plugin docs

* fix: Links in rules need updating after this file moved

* docs: Add concept article for openapi file wrangling

* docs: assertions are now called configurable rules

* fix: Broken links and a renamed file

* docs: Titles, links, and restructuring

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* fix: Redirect for renamed CLI update guide

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* chore: reduce filesize of images

* docs: Detangle the custom/configurable rules vs assertions confusion

* fix: labels as well as links to configurable rules

* Update docs/guides/configure-rules.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* fix: Better example wording and fix title case

* Update docs/commands/index.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/rules/recommended.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/quickstart.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/rules.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* chore: rename file built-in-rules.md and corresponding links (#1075)

---------

Co-authored-by: Adam Altman <adam@redoc.ly>
2023-05-10 17:40:59 +01:00
Antonio
b87cd5e9f0 docs: add missing guide to the list on the cli guides page (#989) 2023-01-21 08:53:36 -06:00
Antonio
f310b4b8a3 docs: Guide on how to hide openapi extensions (#988)
* docs: add guide to hide custom openapi extensions

* docs: update naming consistency in guide on how to hide openapi extensions

* Rename hide-custom-extensions.md to hide-specification-extensions.md

* docs: change custom extensions to specification extensions

- change file name and links
- change code
- change inline text links
- minor other changes
- fix OpenAPI capitalization

Co-authored-by: Adam Altman <adam@redoc.ly>
2023-01-08 05:55:48 -06:00
Adam Altman
9cad7e2e8d docs: rework assertions into custom rules (#917) 2022-11-02 06:58:54 -05:00
redocly-bot
7265665b66 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-10-14 02:49:45 +00:00
Adam Altman
a146a79345 docs: update guide for replace servers url (#907) 2022-10-10 17:29:01 -05:00
Adam Altman
fcdd782d18 refactor: rename four types (#906)
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
2022-10-10 15:36:35 -05:00
redocly-bot
e0c57206f3 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-09-13 17:43:59 +00:00
redocly-bot
b7af3d9ceb sync: Synced local 'docs/' with remote 'docs/cli/' 2022-09-06 15:04:15 +00:00
Antonio
1ee713651a docs: response contains property guide (#746)
* docs: refactor response-contains-property guide

This refactor includes:
- switch content to describe a new built-in rule instead of an old custom one
- case when one response contains one property
- case when multiple responses contain one property
- case when multiple responses contain multiple properties
- short description of status code priority

* docs: add link to gist for the response-contains-property guide

In this update there is a link to the corresponding gist that is
used for the response-contains-property guide

* docs: minify assets for response contains property guide. Update links with alt text

* docs: resolve review comments in response-contains-property guide

* docs: change npm test to npx redocly lint. Update command listings

* chore: fix broken image paths

Co-authored-by: Adam Altman <adam@redoc.ly>
2022-08-30 20:17:38 -05:00
Andrew Tatomyr
504cf32a39 docs: rename "lint" to "styleguide" in Redocly config (#791) 2022-08-11 10:01:27 +02:00
redocly-bot
a73c884b2c sync: Synced local 'docs/' with remote 'docs/cli/' 2022-08-03 12:21:37 +00:00
redocly-bot
296ffe5637 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-08-01 23:30:33 +00:00
redocly-bot
4d8cf1f186 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-05-14 18:42:52 +00:00
redocly-bot
5c1a65af9c sync: Synced local 'docs/' with remote 'docs/cli/' 2022-05-12 09:15:22 +00:00
Roman Hotsiy
1cacff2044 chore: rename package to @redocly/cli (#672)
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@gmail.com>
Co-authored-by: Ivana Isadora Devcic <skadinna@gmail.com>
2022-05-06 16:12:56 +02:00
redocly-bot
83475ab23a sync: Synced local 'docs/' with remote 'docs/cli/' 2022-05-05 10:42:12 +00:00
redocly-bot
73048f7034 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-05-05 01:02:23 +00:00
redocly-bot
297082a16b sync: Synced local 'docs/' with remote 'docs/cli/' 2022-03-23 22:07:26 +00:00
redocly-bot
e152cc45ff sync: Synced local 'docs/' with remote 'docs/cli/' 2022-03-14 10:21:56 +00:00