Skip to content
Snippets Groups Projects
Unverified Commit 42e842d0 authored by Queen Vinyl Da.i'gyu-Kazotetsu's avatar Queen Vinyl Da.i'gyu-Kazotetsu Committed by GitHub
Browse files

Enable linting rules to prevent smart quotes (#14223)

parent 13d2ced6
No related branches found
No related tags found
No related merge requests found
...@@ -140,23 +140,22 @@ ...@@ -140,23 +140,22 @@
// https://github.com/OnkarRuikar/markdownlint-rule-search-replace // https://github.com/OnkarRuikar/markdownlint-rule-search-replace
"search-replace": { "search-replace": {
"rules": [ "rules": [
// XXX Many instances still found in translated content {
// { // Does not apply to zh-cn
// // Does not apply to zh-cn "name": "curly-double-quotes",
// "name": "curly-double-quotes", "message": "Don't use curly double quotes",
// "message": "Don't use curly double quotes", "searchPattern": "/“|”/g",
// "searchPattern": "/“|”/g", "replace": "\"",
// "replace": "\"", "searchScope": "text"
// "searchScope": "text" },
// }, {
// { // Does not apply to zh-cn
// // Does not apply to zh-cn "name": "curly-single-quotes",
// "name": "curly-single-quotes", "message": "Don't use curly single quotes",
// "message": "Don't use curly single quotes", "searchPattern": "/‘|’/g",
// "searchPattern": "/‘|’/g", "replace": "'",
// "replace": "'", "searchScope": "text"
// "searchScope": "text" },
// },
{ {
"name": "nbsp", "name": "nbsp",
"message": "Don't use no-break spaces", "message": "Don't use no-break spaces",
......
...@@ -63,7 +63,7 @@ Once that is done, you will also need to fork and clone this repository by follo ...@@ -63,7 +63,7 @@ Once that is done, you will also need to fork and clone this repository by follo
cd /path/to/content cd /path/to/content
``` ```
2. Next, define an environment variable in a `.env` file called `CONTENT_TRANSLATED_ROOT` containing the path to the _translated-content_ repos `files` directory: 2. Next, define an environment variable in a `.env` file called `CONTENT_TRANSLATED_ROOT` containing the path to the _translated-content_ repo's `files` directory:
```bash ```bash
echo CONTENT_TRANSLATED_ROOT=/path/to/translated-content/files >> .env echo CONTENT_TRANSLATED_ROOT=/path/to/translated-content/files >> .env
......
# Contributing to the translated content of MDN Web Docs # Contributing to the translated content of MDN Web Docs
:tada: First of all, thanks for taking the time to contribute to [MDN Web Docs](https://developer.mozilla.org) translated content! :tada: :tada: First of all, thanks for taking the time to contribute to [MDN Web Docs](https://developer.mozilla.org)' translated content! :tada:
The following is a set of guidelines for contributing to the [translated content of MDN Web Docs](https://github.com/mdn/translated-content), which is hosted within the [MDN Organization](https://github.com/mdn) on GitHub. The following is a set of guidelines for contributing to the [translated content of MDN Web Docs](https://github.com/mdn/translated-content), which is hosted within the [MDN Organization](https://github.com/mdn) on GitHub.
......
...@@ -75,7 +75,7 @@ Un site de chat voudrait afficher la liste des utilisateurs actuellement connect ...@@ -75,7 +75,7 @@ Un site de chat voudrait afficher la liste des utilisateurs actuellement connect
</ul> </ul>
``` ```
#### Détails des propriétés « live » dARIA #### Détails des propriétés « live » d'ARIA
- L'attribut `aria-live="polite"` indique au lecteur d'écran qu'il doit attendre que l'utilisateur soit inactif avant de lui présenter une mise à jour. C'est la valeur la plus communément utilisée, car interrompre l'utilisateur avec la valeur `assertive` briserait son flux de lecture. - L'attribut `aria-live="polite"` indique au lecteur d'écran qu'il doit attendre que l'utilisateur soit inactif avant de lui présenter une mise à jour. C'est la valeur la plus communément utilisée, car interrompre l'utilisateur avec la valeur `assertive` briserait son flux de lecture.
- L'attribut `aria-atomic` n'est pas défini (`false` par défaut), ainsi seuls les utilisateurs ajoutés ou supprimés devraient être lus et non l'intégralité de la liste, à chaque mise à jour. - L'attribut `aria-atomic` n'est pas défini (`false` par défaut), ainsi seuls les utilisateurs ajoutés ou supprimés devraient être lus et non l'intégralité de la liste, à chaque mise à jour.
......
...@@ -90,7 +90,7 @@ HTML 표준은 지원해야 하는 이미지 형식을 명시하고 있지 않 ...@@ -90,7 +90,7 @@ HTML 표준은 지원해야 하는 이미지 형식을 명시하고 있지 않
- {{htmlattrdef("intrinsicsize")}} {{deprecated_inline}} - {{htmlattrdef("intrinsicsize")}} {{deprecated_inline}}
- This attribute tells the browser to ignore the actual intrinsic size of the image and pretend its the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html) - This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it's the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)
- {{htmlattrdef("ismap")}} - {{htmlattrdef("ismap")}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment