docs/: moving documentation from core to lib