The Readme source is used to pull individual Readme.md text files from repositories. This is a lighter weight version of a Git repository resource, which just pulls a single file, rather the whole contents of the repo.

For each retrieved readme, a page is created in the Mosaic file-system. Additional Mosaic metadata can be added, to each created page, using meta For instance we could add metadata which defines which product owns a particular Readme.md and then group this page, with others, based on owner.

yarn add @jpmorganchase/mosaic-source-readme

The Readme source is an HttpSource and shares the same base configuration.

PropertyDescriptionRequired
accessTokenrequest access tokenYes
prefixDirpath to store pagesYes
readmearray of readme filesYes

Each readme is configured from the readme array.

PropertyDescriptionRequired
contentTemplatetemplate for content of pageNo
namepage name used in routeYes
readmeUrlurl of readmeYes
metametadata for pageYes
Mosaic BETA

Coming soon