relativePath static method
Implementation
static String relativePath(String path) {
final regX = RegExp(r'.+/docs/');
path = path.replaceFirst(regX, './docs/'); // *.......*
if (path.startsWith('./docs/')) return path; // *.....*
return './docs/${path.replaceFirst(RegExp(r'\A/'), '')}';
}