Repository navigation
Сайт: техническое SEO и начало вики по Modbus - #8
Open
Mercurrial wants to merge 11 commits into
Open
Mercurrial wants to merge 11 commits into
Mercurrial wants to merge 11 commits into
Conversation
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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Первые шаги плана по превращению сайта в вики по Modbus (план —
docs/site-plan.md, на сайт не публикуется).Техническое SEO
lastmodв sitemap — дата последнего коммита страницы, а не дата сборки;changefreq: dailyубран; на странице строка «Обновлено …». В CI — полная история (fetch-depth: 0).BreadcrumbList,TechArticleс датами,WebSiteна главной,FAQPageиз блоков??? question.privacyMaterial, кэш в 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 посчитаны).Проверено:
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; ссылки по сайту поправлены.privacy(скачивает шрифты; кэшируется). Нужна и полная история git (fetch-depth: 0) — иначе даты страниц станут датой последнего коммита.mainсайт пересоберётся и опубликуется автоматически (docs.yml). В Вебмастере/Search Console стоит отправить sitemap на переобход.🤖 Generated with Claude Code