Skip to content

Сайт: техническое SEO и начало вики по Modbus - #8

Open
Mercurrial wants to merge 11 commits into
mainfrom
claude/site-improvement-recommendations-d57745
Open

Mercurrial wants to merge 11 commits into
mainfrom
claude/site-improvement-recommendations-d57745

Conversation

@Mercurrial

@Mercurrial Mercurrial commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Первые шаги плана по превращению сайта в вики по Modbus (план — docs/site-plan.md, на сайт не публикуется).

Техническое SEO

  • lastmod в sitemap — дата последнего коммита страницы, а не дата сборки; changefreq: daily убран; на странице строка «Обновлено …». В CI — полная история (fetch-depth: 0).
  • schema.org на всех страницах: BreadcrumbList, TechArticle с датами, WebSite на главной, FAQPage из блоков ??? question.
  • Шрифты отдаются с самого сайта (плагин privacy Material, кэш в CI); Метрика остаётся на Яндексе.

Контент (RU + EN)

  • /modbus/ — новая опорная страница «Протокол Modbus»: обмен, модель данных, функции, исключения, варианты, PDU/ADU, физический уровень, ограничения, сравнение с другими протоколами, FAQ.
  • /modbus/rtu/ — текст про RTU перенесён и дополнен (адреса, 256 байт, t1.5/t3.5 по скоростям, параметры порта, примеры записи и исключения).
  • /modbus/crc/ — алгоритм CRC-16 с пошаговым примером и проверенным кодом на C, Python, JavaScript.
  • /modbus/functions/ (адрес прежний) + по странице на функции 01–06, 15, 16 с разбором кадров (CRC посчитаны).
  • Меню: раздел «Протокол Modbus» / «Modbus protocol» с подразделом «Функции».

Проверено: mkdocs build --strict на закоммиченном дереве, тесты test_updater.py и test_site_tools.py, JSON-LD валиден на всех страницах.

Важные нюансы

  • Черновик исключений (docs/modbus/exceptions/: обзор RU, 01/02/03 RU+EN) закоммичен, но исключён из сборки через exclude_docs в mkdocs.yml — не хватает index.en.md, страниц 04 и 06 и пункта меню. Когда допишем — убрать строку из exclude_docs.
  • /en/modbus/ изменился по смыслу: раньше это была страница «What is Modbus RTU», теперь обзор протокола; текст про RTU переехал на /modbus/rtu/ и /en/modbus/rtu/. Адреса старых страниц не менялись.
  • /modbus/functions/ — адрес прежний, файл переехал в docs/modbus/functions/index.md; ссылки по сайту поправлены.
  • Раздел меню переименован: «Основы Modbus» → «Протокол Modbus» (EN: Modbus basics → Modbus protocol).
  • Сборке в CI теперь нужен интернет для плагина privacy (скачивает шрифты; кэшируется). Нужна и полная история git (fetch-depth: 0) — иначе даты страниц станут датой последнего коммита.
  • После слияния в main сайт пересоберётся и опубликуется автоматически (docs.yml). В Вебмастере/Search Console стоит отправить sitemap на переобход.

🤖 Generated with Claude Code

Mercurrial and others added 11 commits November 23, 2026 11:47
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sitemap's <lastmod> said every page changed on every build, marked
"daily"; search engines learn to ignore such a sitemap. Pages now carry
their last commit date (one git log for the whole site, full-history
checkout in CI), shown under the page as "Обновлено …" / "Updated …";
<changefreq> is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Search engines get each page's place in the site (home → section → page)
and its article data with the git dates; the home page also names the
site. Built in tools/mkdocs_hooks.py, emitted by overrides/main.html.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Material's privacy plugin downloads Inter and JetBrains Mono at build time
(cached in CI) instead of every visitor fetching them from Google — one
connection less, slow from Russia. Yandex Metrika stays on Yandex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every `??? question` block becomes a Question of the page's FAQPage, the
answer as plain text — search engines may show it as a rich answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/modbus/ was "What is Modbus RTU" — the section's entry point now covers
the whole protocol (exchange, data model, functions, exceptions, variants,
PDU/ADU, physical layer, limits, comparison with other protocols, usage,
getting started, FAQ), in Russian and English. The RTU text moved to
/modbus/rtu/ and grew: address ranges, the 256-byte frame, t1.5/t3.5 with
a table by baud rate, serial settings, write and exception examples. The
menu section is now "Протокол Modbus" / "Modbus protocol".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Room for a page per function code under /modbus/functions/; the page
itself keeps its address. Links across the site follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read Coils, Read Discrete Inputs, Read Holding/Input Registers, Write
Single Coil/Register, Write Multiple Coils/Registers — each with the
request and answer byte by byte, a decoded example frame (spec examples,
CRCs computed), its exceptions with ready frames, practical pitfalls and
what ModbusReader does with it. Russian and English; the function tables
link to them, the menu gets a Functions section, protocol variants come
before data in the menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The parameters (0xA001, init 0xFFFF, low byte first, check value 0x4B37),
a step-by-step trace, bitwise and table-driven C, Python and JavaScript
(each compiled/run: C4 0B for 01 03 00 00 00 02), checking a received
frame, common mistakes. Russian and English; linked from Modbus RTU, the
overview and the CRC calculator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Overview (RU) and exceptions 01, 02, 03 (RU+EN) are saved here so nothing
is lost; the English overview, 04, 06 and the menu entry are still to do,
so mkdocs.yml excludes the folder until then (docs/site-plan.md, 3.6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant