Merge branch 'mg/format-ref-doc-fix'