LightGuard / asciidoc-splitter

A splitter utility for helping create modular docs from chapter files.
BSD 2-Clause "Simplified" License
8 stars 8 forks source link

Expand logic to rename all references of `chap-` to `assembly-` #76

Closed sterobin closed 3 years ago

sterobin commented 3 years ago

Current behavior

The splitter converts chapter file names and chapter anchor IDs from chap-... to assembly-....

Target behavior

Additionally convert any and all references in the project that point to the chap- anchor ID and to the chap- file name to also be updated during the split. Example, chap-dmn-models ID is converted during the split, so any cross-references to this ID, such as xref:chap-dmn-models or {URL_DECISION_SERVICES}#chap-dmn-models[_{DMN_MODELS}_], should likewise be converted. Same with any references to the same file name. Basically a mass find and replace of chap- to assembly- during the split should do the trick. Otherwise all cross-refs to chapters/assemblies will be broken in the target repo.