Add the `doc` to the `resource`.