Skip to content

Commit

Permalink
move tools .toml files into plugin directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 10, 2025
1 parent 67c9728 commit 7d1f001
Show file tree
Hide file tree
Showing 41 changed files with 2 additions and 22 deletions.
16 changes: 0 additions & 16 deletions plugins-meta/tools/sdict.toml

This file was deleted.

4 changes: 0 additions & 4 deletions plugins-meta/tools/sdict_source.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/plugin-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def getToolSourceLink(tool):
userPluginsDirPath = Path(userPluginsDir)
plugins = [p for p in Glossary.plugins.values() if pluginIsActive(p)]

toolsDir = join(rootDir, "plugins-meta", "tools")
pluginsDir = join(rootDir, "pyglossary", "plugins")


for p in plugins:
Expand Down Expand Up @@ -240,7 +240,7 @@ def getToolSourceLink(tool):

extraDocs = getattr(module, "extraDocs", [])

toolsFile = join(toolsDir, f"{p.lname}.toml")
toolsFile = join(pluginsDir, p.moduleName, "tools.toml")
try:
with open(toolsFile, encoding="utf-8") as _file:
tools_toml = toml.load(_file)
Expand Down

0 comments on commit 7d1f001

Please sign in to comment.