f55c654de2
Полный обход Form.xml, настраиваемый wiki_prefix, русские типы в именах, ссылки без percent-encoding. Co-authored-by: Cursor <cursoragent@cursor.com>
7.7 KiB
7.7 KiB
Changelog
All notable changes to export_1c_help are documented in this file.
[0.5.0] - 2026-08-14
Added
form_wiki_export.py— полный обход**/Ext/Form.xml, генерация HTML-прототипов и wiki-страниц с префиксомform_для просмотра в Gitea wiki (iframe + вложение).- Отдельный manifest
manifest.export_forms.jsonи маркерыexport_forms:*вHome.md/_Sidebar.md— обновление без затрагивания страницexport_docsи справки. - Конфиг:
configs/form_wiki.crm3-26.json. - Префикс имён страниц:
wiki_prefixв JSON и--wiki-prefixв CLI (по умолчаниюform_; в примере конфига —forms_). - В именах
form_*/forms_*— русские типы объектов (Справочники,Общие_формы), а не английские каталоги выгрузки (Catalogs,CommonForms). - Ссылки в
form_INDEX/ страницах форм: кириллица без percent-encoding (%D0%…).
[0.4.4] - 2026-08-12
Changed
form_xml_to_htmlv0.2.3: DataPath · тип — readonly поле (выделение) + кнопка ⎘ для копирования в буфер обмена.
[0.4.3] - 2026-08-12
Fixed
form_xml_to_htmlv0.2.2: очистка форматированных заголовков 1С (<link>,<bgcolorstyle>,<img>) — «Сегменты (Метизы)» вместо сырой разметки.
[0.4.2] - 2026-08-12
Changed
form_xml_to_html.pyv0.2.1: вplaceholderполей — DataPath и тип данных (атрибуты формы + метаданные объекта/констант).
[0.4.1] - 2026-08-12
Added
form_xml_to_html.pyv0.2.0:-O/--out-file— файл вывода, если не задан-p-T/--elements-tree— текстовое дерево элементов-M/--text-maket— ASCII-макет «как в окне»-t/--text-only— выгрузка текста в-Oбез HTML- без
-O:-T/-Mидут в консоль; с-O: HTML (+ дерево/макет в страницу)
Changed
- Убран неявный default
out/form-prototypes: нужен-pили-O(либо только-T/-Mв консоль).
[0.4.0] - 2026-08-11
Added
form_xml_to_html.py(v0.1.0) — HTML-прототипы управляемых форм изForm.xml. Автор: Michael BAG mk@p7net.ru.-b/--base,-o/--object,-f/--form,-p/--out-path,-c/--config- вывод:
<out>/<конфа>/<тип>/<объект>/<форма>.html - примеры конфигов:
configs/form_prototype.crm3-26.json,configs/form_prototype.crm3-26.rhana.json
[0.3.12] - 2026-07-29
Fixed
_Sidebarfolder tree: list subfolders under their real parent (DFS), not as a flat sort by depth (which made e.g.transfer/mappingappear underws).
Docs
- README: version 0.3.12;
export_docssection covers flat-root naming, folder indexes, Home/_Sidebarnavigation, link rules,clean. SPEC_EXPORT_DOCS.mdaligned with current CLI and behaviour (0.3.9–0.3.12).
[0.3.11] - 2026-07-29
Fixed
- Internal wiki links omit the
.mdsuffix in Markdown targets (Gitea resolves/wiki/page, not/wiki/page.md). - Folder
INDEX.md: merge source body into auto-generated index; do not list INDEX as a self-link under «Статьи». - Relative links to files in the git repo but outside the wiki export (e.g.
ws-rhana/...) rewrite to Giteasrc/branch/...URLs.
[0.3.10] - 2026-07-29
Fixed
export_docswiki push: clear Giteaassume-unchangedonHome.md/_Sidebar.mdbeforegit add, and commit only when the index has staged changes (fixes «no changes added to commit» when nav pages were modified)._Sidebarfolder links: short folder name only (📁 meta), without «Папка» and without fulldocs/...path.
[0.3.9] - 2026-07-29
Added
- New CLI command
export_docs.py cleanto remove export_docs-managed wiki pages by--foldermanifest and remove export_docs nav block fromHome/_Sidebar. - Auto-generated per-folder index pages with links to articles using full page titles.
Changed
export_docs.pydefaults to flat root wiki page naming (docs__path__name.md) for Gitea compatibility where nested/wiki/docs/...routes return 404.- Markdown links are URL-encoded in generated indexes and rewritten content to keep links with spaces/parentheses/Cyrillic valid.
- Wiki clone reuse now validates
originURL before fetch/reset; clone is recreated if target wiki differs.
[0.3.8] - 2026-07-29
Changed
- Wiki page filenames switched to short ASCII transliteration slugs (with stable hash suffix on truncation), while visible page titles remain full Russian.
- Internal links now use Markdown format with human-readable Russian labels and relative
.mdtargets (nowiki/prefix), matching Gitea wiki routing. - Generated article body now always starts with
# <Полное русское наименование>.
[0.3.7] - 2026-07-24
Fixed
- Windows:
git commitno longer fails withValueError: embedded null character— commit message is written via-Fand NULs are stripped from argv/version strings
[0.3.6] - 2026-07-24
Fixed
- Windows: percent-encoded Cyrillic wiki filenames no longer exceed MAX_PATH (~260) under deep roots (e.g. SynologyDrive); encoded slug capped, plus
\\?\long-path writes
[0.3.5] - 2026-07-24
Fixed
push -o …/outno longer deleteswiki_clone-*during convert--clean, and does not copy the clone into itself (wasFileNotFoundErroron push)
[0.3.4] - 2026-07-24
Added
- Page footer / Home / History include configuration display name (Synonym) and vendor (Vendor) from
Configuration.xml
[0.3.3] - 2026-07-23
Fixed
pushno longer deletes user-written wiki pages; only manifest-managed help pages are updated/removed- Full wipe available explicitly via
--wipe-unmanaged
[0.3.2] - 2026-07-23
Fixed
- HTML→MD: bold inside links no longer produces
**** - TOC
#anchorlinks preserved ([text](#id)+<a id>before headings) - Single-cell tip
<table><tt>…converted to blockquote instead of broken| … - Trailing spaces inside
<b>moved outside bold (**Товар** –)
[0.3.1] - 2026-07-23
Fixed
- Replace Unicode minus (U+2212
−) with ASCII-in Home/History/CLI stats
0.3.0 - 2026-07-23
Added
- Export help from any 1C configuration dump (
-c/--configor-s/--src) - Auto wiki URL from the configuration git repo:
repo.git→repo.wiki.git(Gitea/GitLab) - Explicit
--wiki-urlstill supported (any target wiki) infosubcommand: src, version, git remote, derived wiki URL- Per-config default output dirs:
out/wiki-md-<slug>,out/wiki_clone-<slug> - README: connect any submodule / root project to its wiki and run export
0.2.0 - 2026-07-23
Added
- Configuration version on each export (
VERSION/Configuration.xml) - Per-page lifecycle:
created_in/edited_in/deleted_in History.md,pushreads previousmanifest.jsonfrom wiki- CLI:
--prev-manifest,--config-version
0.1.0 - 2026-07-23
Initial release: Help HTML → Markdown, Gitea wiki push, percent-encoded Cyrillic filenames.