|
@ -3,6 +3,7 @@ |
|
|
// repositoryUrl and categoryUrl are twig templates, which take the following input values: |
|
|
// repositoryUrl and categoryUrl are twig templates, which take the following input values: |
|
|
// {{ repositoryId }} id of the repository |
|
|
// {{ repositoryId }} id of the repository |
|
|
// {{ categoryId }} id of the category (not for repositoryUrl) |
|
|
// {{ categoryId }} id of the category (not for repositoryUrl) |
|
|
|
|
|
// {{ branchId }} id of the branch (not for repositoryUrl) |
|
|
$repositories = array( |
|
|
$repositories = array( |
|
|
'default' => array( |
|
|
'default' => array( |
|
|
'path' => 'node_modules/openstreetbrowser-categories-main', |
|
|
'path' => 'node_modules/openstreetbrowser-categories-main', |
|
@ -10,7 +11,7 @@ $repositories = array( |
|
|
// public URL of repository |
|
|
// public URL of repository |
|
|
'repositoryUrl' => 'https://github.com/example/categories', |
|
|
'repositoryUrl' => 'https://github.com/example/categories', |
|
|
// public URL of source of a category in repository |
|
|
// public URL of source of a category in repository |
|
|
'categoryUrl' => 'https://github.com/example/categories/tree/master/{{ categoryId }}.json', |
|
|
|
|
|
|
|
|
'categoryUrl' => 'https://github.com/example/categories/tree/{{ branchId }}/{{ categoryId }}.json', |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|