Skip to content
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

fix(ru): remove duplicate headings #17699

Merged
merged 3 commits into from
Jan 3, 2024
Merged

Conversation

yin1999
Copy link
Member

@yin1999 yin1999 commented Jan 3, 2024

Description

remove duplicate headings. Since I don't speak Russian, please feel free to correct my mistakes.

Motivation

Prepare for enabling the no-duplicate-heading markdown-lint rule.
Part of #17582

@github-actions github-actions bot added the l10n-ru Issues related to Russian content. label Jan 3, 2024
Copy link
Contributor

github-actions bot commented Jan 3, 2024

Preview URLs (14 pages)
Flaws (234)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /ru/docs/Web/SVG/Element/ellipse
Title: <ellipse>
Flaw count: 16

  • macros:
    • /ru/docs/Web/API/SVGEllipseElement does not exist but fell back to /en-US/docs/Web/API/SVGEllipseElement
  • broken_links:
    • Can't resolve /docs/Web/SVG/Content_type#Length
    • Can't resolve /docs/Web/SVG/Content_type#Percentage
    • Can't resolve /docs/Web/SVG/Content_type#Length
    • Can't resolve /docs/Web/SVG/Content_type#Percentage
    • Can't resolve /docs/Web/SVG/Content_type#Length
    • and 9 more flaws omitted
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /ru/docs/Web/API/Event/bubbles
Title: Event.bubbles
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (1 in common of 3 possible)

URL: /ru/docs/Web/API/EventSource
Title: EventSource
Flaw count: 4

  • macros:
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Can't resolve /en/Server-sent_events/Using_server-sent_events
    • Can't resolve /en/long
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /ru/docs/Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context
Title: Добавление двухмерного контента в контекст WebGL
Flaw count: 7

  • broken_links:
    • Can't resolve /ru/docs/Web/WebGL/Getting_started_with_WebGL
    • Is currently http:// but can become https://
    • Can't resolve /en/HTML/Element/Script
    • Can't resolve /en/HTML/Element/Script
    • Can't resolve /samples/webgl/sample2
    • and 1 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 2 possible)

URL: /ru/docs/Web/API/Screen_Capture_API/Using_Screen_Capture
Title: Использование интерфейса Screen Capture API
Flaw count: 34

  • macros:
    • /ru/docs/Web/API/MediaDevices/getDisplayMedia does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getDisplayMedia
    • /ru/docs/Web/API/MediaDevices/getDisplayMedia does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getDisplayMedia
    • /ru/docs/Web/API/DisplayMediaStreamConstraints does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getDisplayMedia
    • /ru/docs/Web/API/MediaTrackSupportedConstraints does not exist but fell back to /en-US/docs/Web/API/MediaTrackSupportedConstraints
    • /ru/docs/Web/API/MediaTrackSettings does not exist but fell back to /en-US/docs/Web/API/MediaTrackSettings
    • and 20 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/Web/HTTP/Feature_Policy
    • Can use the English (en-US) link as a fallback
    • and 3 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 4 possible)

URL: /ru/docs/Web/HTML/Element/dfn
Title: <dfn>: Элемент определения
Flaw count: 23

  • macros:
    • /ru/docs/Web/HTML/Attributes/accept does not exist but fell back to /en-US/docs/Web/HTML/Attributes/accept
    • /ru/docs/Web/HTML/Attributes/autocomplete does not exist but fell back to /en-US/docs/Web/HTML/Attributes/autocomplete
    • /ru/docs/Web/HTML/Attributes/capture does not exist but fell back to /en-US/docs/Web/HTML/Attributes/capture
    • /ru/docs/Web/HTML/Attributes/dirname does not exist but fell back to /en-US/docs/Web/HTML/Attributes/dirname
    • /ru/docs/Web/HTML/Attributes/disabled does not exist but fell back to /en-US/docs/Web/HTML/Attributes/disabled
    • and 13 more flaws omitted
  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (4 in common of 10 possible)

URL: /ru/docs/Web/HTML/Element/title
Title: <title>: элемент заголовка документа
Flaw count: 24

  • macros:
    • /ru/docs/Web/HTML/Attributes/accept does not exist but fell back to /en-US/docs/Web/HTML/Attributes/accept
    • /ru/docs/Web/HTML/Attributes/autocomplete does not exist but fell back to /en-US/docs/Web/HTML/Attributes/autocomplete
    • /ru/docs/Web/HTML/Attributes/capture does not exist but fell back to /en-US/docs/Web/HTML/Attributes/capture
    • /ru/docs/Web/HTML/Attributes/dirname does not exist but fell back to /en-US/docs/Web/HTML/Attributes/dirname
    • /ru/docs/Web/HTML/Attributes/disabled does not exist but fell back to /en-US/docs/Web/HTML/Attributes/disabled
    • and 15 more flaws omitted
  • broken_links:
    • Can't resolve /ru/docs/Web/Guide/HTML/Content_categories
    • Can't resolve /ru/docs/Web/Guide/HTML/Content_categories#Метаданные
    • Can't resolve /ru/docs/Web/HTML/Общие_атрибуты
    • Can use the English (en-US) link as a fallback

URL: /ru/docs/Web/CSS/Visual_formatting_model
Title: Модель визуального форматирования
Flaw count: 15

  • macros:
    • /ru/docs/Web/CSS/color does not exist but fell back to /en-US/docs/Web/CSS/color
    • /ru/docs/Web/CSS/left does not exist but fell back to /en-US/docs/Web/CSS/left
    • /ru/docs/Web/CSS/left does not exist but fell back to /en-US/docs/Web/CSS/left
  • broken_links:
    • Can't resolve /ru/docs/Web/CSS/box_model
    • Can't resolve /ru/docs/CSS/Box_positioning_scheme
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/CSS/Positioning_scheme
    • Can't resolve /ru/docs/CSS/Inline_formatting_context
    • and 6 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 5 possible)

URL: /ru/docs/Web/CSS/margin
Title: margin
Flaw count: 9

  • macros:
    • /ru/docs/Web/CSS/margin-block-start does not exist but fell back to /en-US/docs/Web/CSS/margin-block-start
    • /ru/docs/Web/CSS/margin-block-end does not exist but fell back to /en-US/docs/Web/CSS/margin-block-end
    • /ru/docs/Web/CSS/margin-block does not exist but fell back to /en-US/docs/Web/CSS/margin-block
    • /ru/docs/Web/CSS/margin-inline does not exist but fell back to /en-US/docs/Web/CSS/margin-inline
  • broken_links:
    • Can't resolve /ru/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model#margin_area
    • Can't resolve /ru/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
    • Can't resolve /ru/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model
    • Can't resolve /ru/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
  • translation_differences:
    • Differences in the important macros (5 in common of 7 possible)

URL: /ru/docs/Web/JavaScript/Reference/Statements/import
Title: import
Flaw count: 3

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://

URL: /ru/docs/Web/JavaScript/Reference/Statements/let
Title: let
Flaw count: 4

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /ru/docs/Web/JavaScript/Guide/Loops_and_iteration
Title: Циклы и итерации
Flaw count: 3

  • macros:
    • /ru/docs/Web/JavaScript/Reference/Global_Objects/Map does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

URL: /ru/docs/Learn/Server-side/Django/Deployment
Title: Django Руководство часть 11: Разворачивание сайта на сервере
Flaw count: 91

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted
  • broken_links:
    • Is currently http:// but can become https://
    • Anchor not lowercase
External URLs (2)

URL: /ru/docs/Web/API/Screen_Capture_API/Using_Screen_Capture
Title: Использование интерфейса Screen Capture API


URL: /ru/docs/Web/HTML/Element/title
Title: <title>: элемент заголовка документа

(comment last updated: 2024-01-03 15:21:55)

Comment on lines -14 to -18
## Методы

| `void close();` |
| --------------- |

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, as we never use IDL definition in documents (check the "methods" section below)

@@ -43,9 +43,9 @@ _Модель визуального форматирования_ CSS - это

Блоки-контейнеры содержат либо только инлайн-боксы, либо только элементы блочного уровня. Но, как правило, документ содержит и те и другие. В этом случае анонимные блок-боксы создаются вокруг примыкающих к ним инлайн-боксов.

### Пример
### Пример 1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporarily use different numbers to distinguish headings

Comment on lines -46 to -54
## Примечания по использованию

- Элемент `<dfn>` отмечает определяемый термин; определение термина должно быть дано окружающим {{HTMLElement("p")}}, {{HTMLElement("section")}} или группой списков определений (обычно пара {{HTMLElement("dt")}}{{HTMLElement("dd")}}).
- Точное значение определяемого термина определяется следующими правилами:

1. Если элемент `<dfn>` имеет [`title`](/ru/docs/Web/HTML/Global_attributes#title) атрибут, то термин является значением этого атрибута.
2. Иначе, если он содержит только {{HTMLElement("abbr")}} элемент с [`title`](/ru/docs/Web/HTML/Global_attributes#title) атрибутом, тогда термин является значением этого атрибута. Это продемонстрировано в [Использование сокращений и определений вместе](#использование_сокращений_и_определений_вместе) ниже.
3. В противном случае текстовое содержимое `<dfn>` элемента является определяемым термином.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the duplicate part

@@ -138,40 +132,40 @@ import myDefault, { foo, bar } from "/modules/my-module.js";

Такой код выведет ошибку:

##### my-module.js
- my-module.js:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part has been removed from en-US, but for now, I've used unordered list instead

@yin1999 yin1999 marked this pull request as ready for review January 3, 2024 11:24
@yin1999 yin1999 requested a review from a team as a code owner January 3, 2024 11:24
@yin1999 yin1999 requested review from leon-win and removed request for a team January 3, 2024 11:24
Copy link
Member

@leon-win leon-win left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @yin1999 ! 👍

@leon-win leon-win merged commit 4a36622 into mdn:main Jan 3, 2024
7 checks passed
@yin1999 yin1999 deleted the ru-markdown-lint branch January 3, 2024 15:41
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
mfuji09 pushed a commit to mfuji09/MDN-translated-content that referenced this pull request Jan 4, 2024
* fix(ru): remove duplicate headings

* [ru] improve 'Learn/Server-side/Django/Deployment' translation

* [ru] improve 'Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context' translation

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ru Issues related to Russian content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants