Skip to content

Commit

Permalink
Merge branch 'master' of github.com:apify/apify-docs into fix/landing…
Browse files Browse the repository at this point in the history
…-page-margings
  • Loading branch information
webrdaniel committed Mar 6, 2024
2 parents cb2c78e + 74bee05 commit 202718a
Show file tree
Hide file tree
Showing 241 changed files with 8,314 additions and 3,009 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = null
max_line_length = 0
quote_type = single
46 changes: 43 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,59 @@
},
"ecmaVersion": 2022
},
"plugins": [
"@typescript-eslint"
],
"root": true,
"env": {
"browser": true
"browser": true,
"es2020": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"root": true,
"rules": {
"quote-props": ["error", "consistent"],
"react/prop-types": ["off"],
"import/extensions": ["off"],
"no-void": ["off"]
}
},
"overrides": [
{
"files": [
"CONTRIBUTING.md",
"README.md",
"./sources/**/*.{js,json,ts,md}"
],
"parserOptions": {
"files": ["*.js", "*.jsx", "*.ts", "*.tsx", "*.md", "*.mdx"],
"project": null,
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2022
},
"extends":[
"@apify/eslint-config-ts",
"plugin:markdown/recommended",
"plugin:json/recommended-with-comments"
],
"rules": {
// general things that are fine to have in code snippets
"import/no-extraneous-dependencies": "off",
"import/order": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/no-unused-vars": "off",
// not possible to use those for markdown code snippets
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/promise-function-async": "off"
}
}
]
}
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Documentation codeowner

*.md @TC-MO
*.mdx @TC-MO
10 changes: 10 additions & 0 deletions .github/styles/Apify/Apify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: false
level: warning
swap:
Apify Dashboard: Apify Console
apify freelancers: Apify freelancers
Apify Platfrom: Apify platform
'(?:[Tt]he\s)?[Aa]pify\sproxy': Apify Proxy
circa: approx.
11 changes: 11 additions & 0 deletions .github/styles/Apify/Capitalization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends: existence
message: "The word '%s' should always be capitalized."
ignorecase: false
level: error
tokens:
- '\bactor\b'
- '\bactors\b'
- '(?<!@)\bapify\b(?!-\w+)'
- '(?<!\()\bhttps?://[^\s]*\bapify\b[^\s]*\b(?!\))|(?<!\[)\bhttps?://[^\s]*\bapify\b[^\s]*\b(?!\])'

nonword: false
10 changes: 10 additions & 0 deletions .github/styles/Apify/Languages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: false
level: warning
swap:
'javascript|Javascript|javaScript': JavaScript
'(?<!-)python(?!-)': Python
'typescript|Typescript|typescript': TypeScript
'nodejs|Nodejs|node.js': Node.js
# Add more languages or common mistakes as needed
9 changes: 9 additions & 0 deletions .github/styles/Microsoft/AMPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: Use 'AM' or 'PM' (preceded by a space).
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
level: error
nonword: true
tokens:
- '\d{1,2}[AP]M'
- '\d{1,2} ?[ap]m'
- '\d{1,2} ?[aApP]\.[mM]\.'
25 changes: 25 additions & 0 deletions .github/styles/Microsoft/Accessibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
extends: existence
message: "Don't use language (such as '%s') that defines people by their disability."
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms
level: suggestion
ignorecase: true
tokens:
- a victim of
- able-bodied
- affected by
- an epileptic
- crippled
- disabled
- dumb
- handicapped
- handicaps
- healthy
- lame
- maimed
- missing a limb
- mute
- normal
- sight-impaired
- stricken with
- suffers from
- vision-impaired
64 changes: 64 additions & 0 deletions .github/styles/Microsoft/Acronyms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
extends: conditional
message: "'%s' has no definition."
link: https://docs.microsoft.com/en-us/style-guide/acronyms
level: suggestion
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
# ... with the exception of these:
exceptions:
- API
- ASP
- CLI
- CPU
- CSS
- CSV
- DEBUG
- DOM
- DPI
- FAQ
- GCC
- GDB
- GET
- GPU
- GTK
- GUI
- HTML
- HTTP
- HTTPS
- IDE
- JAR
- JSON
- JSX
- LESS
- LLDB
- NET
- NOTE
- NVDA
- OSS
- PATH
- PDF
- PHP
- POST
- RAM
- REPL
- RSA
- SCM
- SCSS
- SDK
- SQL
- SSH
- SSL
- SVG
- TBD
- TCP
- TODO
- URI
- URL
- USB
- UTF
- XML
- XSS
- YAML
- ZIP
Loading

0 comments on commit 202718a

Please sign in to comment.