Skip to content

Commit

Permalink
Add search keywords config support
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialBuilder32 committed Sep 22, 2023
1 parent 54c65f1 commit 25cf90d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gm4/plugins/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class WebsiteConfig(PluginOptions):
recommended: list[str]
notes: list[str]
hidden: bool = False
search_keywords: list[str] = []

class ManifestConfig(PluginOptions, extra=Extra.ignore):
versioning: Optional[VersioningConfig]
Expand All @@ -37,7 +38,7 @@ class ManifestModuleModel(BaseModel):
"""Single module's entry in manifest"""
id: str
name: str
version: str # TODO Version() objecT?, defaults to 0.0.0?
version: str
video_link: str = ""
wiki_link: str = ""
credits: CreditsModel
Expand All @@ -46,7 +47,8 @@ class ManifestModuleModel(BaseModel):
recommends: list[str] = []
hidden: bool = False
important_note: Optional[str]
publish_date: Optional[str] # TODO ISO model?
search_keywords: list[str] = []
publish_date: Optional[str]
modrinth_id: Optional[str]
smithed_link: Optional[str]
pmc_link: Optional[int]
Expand Down Expand Up @@ -99,6 +101,7 @@ def create(ctx: Context):
important_note = gm4_meta.website.notes[0] if len(gm4_meta.website.notes)>0 else None,
hidden = gm4_meta.website.hidden,
publish_date = None,
search_keywords = gm4_meta.website.search_keywords,
modrinth_id = modrinth_meta.project_id,
smithed_link = smithed_meta.pack_id,
pmc_link = pmc_meta.uid
Expand Down
13 changes: 13 additions & 0 deletions gm4_metallurgy/beet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ meta:
- gm4_vecto_shamir
notes:
- Modifies the stone block loot table. May cause incompatibilities with Datapacks that also modify this loot table.
search_keywords:
- arborenda
- defuse
- forterra
- gemini
- hypexperia
- infinitas
- moneo
- musical
- sensus
- tinker
- vibro
- shamir
video: null
wiki: https://wiki.gm4.co/wiki/Metallurgy
credits:
Expand Down

0 comments on commit 25cf90d

Please sign in to comment.