Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding support for template refs: #371

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vhvb1989
Copy link
Member

@vhvb1989 vhvb1989 commented May 3, 2024

As part of the list of templates, this PR is adding support to have an entry like:

{
    "ref": "https://url/templates.json",
    "tags": ["externalSource"]
}

When this entry is found, awesome-azd will expand that entry into all the entries referenced on that url. Then, the tags are appended to the tags from the original entries.

This feature allow a seemly experience to batch a group of templates which are already maintained as part of another source and avoid duplicity.

As part of the list of templates, this PR is adding support to have an entry like:

{
    "ref": "https://url/templates.json",
    "tags": ["aiApps"]
}

When this entry is found, awesome-azd will expand that entry into all the entries referenced on that url. Then, the tags are appended to the tags from the original entries.

This feature allow a seemly experience to batch a group of templates which are already maintained as part of another source and avoid duplicity.
Copy link
Contributor

@hemarina hemarina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vhvb1989 for this great feature. Just have one quick question.

website/src/data/tags.tsx Outdated Show resolved Hide resolved
@@ -16,12 +16,34 @@ import templates from '../../static/templates.json'
// *************** CARD DATA STARTS HERE ***********************
// Add your site to this list
// prettier-ignore
const expandedTemplates: Template[] = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a Set to prevent duplicate data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants