Closed rousik closed 4 years ago
This pull request is being automatically deployed with now-deployment
Built with commit 3c9d259070add5748f02caf1535a088152eab3c6
✅ Preview: https://guide-preview-2ftn8934r.now.sh
Noted. I think it might make sense to document how to use this script on our wiki page (along with instructions on how to install dependencies). If it will be built into action, this will come with the dependency installation too.
Seems like using docker is the standard way to wrap things in this project so I will investigate if I could use that.
This script allows comparing structural content (element tree) of the markdown files. This compares English (original) with the translated markdowns files, generates html and then produces diffs for any structural differences found.
Markdown files are transformed into html and parsed into element tree (using lxml). Documents are then traversed and turned into string representations /path/to/tag#attr1=value1#attr2=value2. Lists of these strings are then compared and diffed for each (english, translation) pair.
Flags for this script are:
This script can be used to find issues with markdown styling in translations and detect files where style has drifted between the original content and translations. The underlying issue is described in #354