Add the `doc` to the `resource`.

Add the `doc` to the `resource`.