fix(docs): Added rewrite for guide.
feat(rewrite): Implemented flexible rewriting in docs.* directives.