-
Notifications
You must be signed in to change notification settings - Fork 24
ci: add markdown, website, and image lint checks #1010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f662666
ci: add markdown, website, and image lint checks
vdusek c741baa
ci: enforce 4-space indentation for nested Markdown lists
vdusek ead5c47
ci: clarify lint:md to ignore only the generated changelog
vdusek 4f04bdc
ci: lint all Markdown and MDX files except the changelog
vdusek f302966
ci: declare single-quote style in website .oxfmtrc.json
vdusek df99b37
ci: double-quote lint:md globs for Windows compatibility
vdusek 877f837
ci: address review feedback (Node 24, ul-style MD004, image-lint fetc…
vdusek 9514e94
ci: align Node to 24 across workflows and fix JSX SVG attribute casing
vdusek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,5 +1,30 @@ | ||
| # markdownlint config for the docs and top-level Markdown files. | ||
| # Run via `pnpm lint:md` / `pnpm lint:md:fix` from the `website/` directory. | ||
| default: true | ||
| line-length: | ||
| line_length: 150 | ||
| ul-style: dash | ||
|
|
||
| # Prose is written one sentence per line, so line length is not enforced. | ||
| line-length: false | ||
|
|
||
| ul-style: | ||
| style: dash | ||
|
|
||
| # Nested unordered lists use 4-space indentation. | ||
| ul-indent: | ||
| indent: 4 | ||
|
|
||
| # Docs are MDX and embed JSX components. | ||
| no-inline-html: false | ||
|
|
||
| # MDX pages set their title via front matter, so multiple/duplicate H1s are fine. | ||
| single-title: false | ||
| no-duplicate-heading: | ||
| siblings_only: true | ||
|
|
||
| # Anchor links into other pages can't be validated locally. | ||
| link-fragments: false | ||
|
|
||
| no-bare-urls: false | ||
| no-trailing-punctuation: | ||
| punctuation: ".,;:。,;:" | ||
| no-multiple-blanks: | ||
| maximum: 2 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,20 @@ | ||
| { | ||
| "printWidth": 120, | ||
| "singleQuote": true, | ||
| "ignorePatterns": [ | ||
| "**/*.md", | ||
| "**/*.mdx", | ||
| "**/*.json", | ||
| "**/*.jsonc", | ||
| "**/*.yaml", | ||
| "**/*.yml", | ||
| "**/*.css", | ||
| "**/*.scss", | ||
| "**/*.html", | ||
| "**/node_modules", | ||
| "build", | ||
| ".docusaurus", | ||
| "versioned_docs", | ||
| "versioned_sidebars" | ||
| ] | ||
| } |
This file contains hidden or 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 hidden or 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,20 @@ | ||
| import { defineConfig } from '@apify/oxlint-config'; | ||
|
|
||
| export default defineConfig({ | ||
| plugins: ['react'], | ||
| ignorePatterns: [ | ||
| '**/node_modules', | ||
| '.docusaurus', | ||
| 'build', | ||
| 'versioned_docs', | ||
| 'versioned_sidebars', | ||
| 'api-typedoc-generated.json', | ||
| 'module_shortcuts.json', | ||
| ], | ||
| rules: { | ||
| // Docusaurus theme/plugin/page modules are loaded via their default export. | ||
| 'import/no-default-export': 'off', | ||
| // Site code logs intentionally (plugin diagnostics, build-time helpers). | ||
| 'no-console': 'off', | ||
| }, | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.