Renames plugin to "Typst PDF Export"
Updates the plugin's name from "Obsidian Typst PDF Export" to "Typst PDF Export". This change simplifies the plugin's identifier and display name, making it more concise and user-friendly. It involves updates to the manifest file, plugin configuration, and references within the codebase.
This commit is contained in:
8 files changed
+17
-17
No files matched your search
@@ -155,7 +155,7 @@ export class obsidianTypstPDFExport extends Plugin {
|
||||
typstPath: typstPath
|
||||
};
|
||||
|
||||
await this.app.vault.adapter.write('.obsidian/plugins/obsidian-typst-pdf-export/fonts-cache.json',
|
||||
await this.app.vault.adapter.write('.obsidian/plugins/typst-pdf-export/fonts-cache.json',
|
||||
JSON.stringify(cacheData, null, 2));
|
||||
} catch (error) {
|
||||
console.error('Failed to cache fonts from typst:', error);
|
||||
@@ -178,7 +178,7 @@ export class obsidianTypstPDFExport extends Plugin {
|
||||
error: error.message
|
||||
};
|
||||
|
||||
await this.app.vault.adapter.write('.obsidian/plugins/obsidian-typst-pdf-export/fonts-cache.json',
|
||||
await this.app.vault.adapter.write('.obsidian/plugins/typst-pdf-export/fonts-cache.json',
|
||||
JSON.stringify(cacheData, null, 2));
|
||||
}
|
||||
}
|
||||
@@ -188,7 +188,7 @@ export class obsidianTypstPDFExport extends Plugin {
|
||||
*/
|
||||
async getCachedFonts(): Promise<string[]> {
|
||||
try {
|
||||
const cacheContent = await this.app.vault.adapter.read('.obsidian/plugins/obsidian-typst-pdf-export/fonts-cache.json');
|
||||
const cacheContent = await this.app.vault.adapter.read('.obsidian/plugins/typst-pdf-export/fonts-cache.json');
|
||||
const cacheData = JSON.parse(cacheContent);
|
||||
|
||||
// Check if cache is older than 24 hours or typst path changed
|
||||
@@ -776,7 +776,7 @@ ${dependencyResult.allAvailable
|
||||
const fs = require('fs');
|
||||
|
||||
// Copy image to vault temp directory for access
|
||||
const vaultTempImagesDir = pathModule.join(vaultBasePath, '.obsidian', 'plugins', 'obsidian-typst-pdf-export', 'temp-images');
|
||||
const vaultTempImagesDir = pathModule.join(vaultBasePath, '.obsidian', 'plugins', 'typst-pdf-export', 'temp-images');
|
||||
await fs.promises.mkdir(vaultTempImagesDir, { recursive: true });
|
||||
|
||||
// Sanitize the basename for use in filename - replace problematic characters
|
||||
|
||||
Reference in new issue
Block a user