diff --git a/docs-static/usage.md b/docs-static/usage.md index e848a2a..64b435d 100644 --- a/docs-static/usage.md +++ b/docs-static/usage.md @@ -43,18 +43,18 @@ From master git repository: ## Use in your project ### Sample code +```python +#from pychangelogfactory import ChangeLogFormater - #from pychangelogfactory import ChangeLogFormater - - raw_changelog=''' - feat: add a nice feature to the project - style: reindent the full Foo class - security: fix a security leak on the Foo2 component - ''' - ChangeLogFormater.FactoryProcessFullChangelog(raw_changelog) - changelog = ChangeLogFormater.RenderFullChangelog() - print(changelog) - +raw_changelog=''' +feat: add a nice feature to the project +style: reindent the full Foo class +security: fix a security leak on the Foo2 component +''' +ChangeLogFormater.FactoryProcessFullChangelog(raw_changelog) +changelog = ChangeLogFormater.RenderFullChangelog() +print(changelog) +``` ### Output(Raw) #### Features :sparkles::