def test_multifile_exampele(tmpdir): tmpdir.join("root.md").write(root_source) tmpdir.join("example.md").write(doc) source = str(tmpdir.join("root.md")) target = str(tmpdir.join("target.md")) transform_file(source, target)
def docs(): try: from chmp.tools.mddocs import transform_file except ImportError: raise RuntimeError("Need chmp installed to create docs") self_path = pathlib.Path(__file__).parent.resolve() transform_file(self_path / "Readme.in", self_path / "Readme.md")
def docs(c): try: from chmp.tools.mddocs import transform_file except ImportError: raise RuntimeError("Need chmp installed to create docs") self_path = os.path.dirname(__file__) transform_file( os.path.join(self_path, "Readme.in"), os.path.join(self_path, "Readme.md") )