KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
871 stars 74 forks source link

[Bug] [1.8.01]: All exported pages display the same content #427

Open ericcarl opened 6 months ago

ericcarl commented 6 months ago

What happened?

When exporting the resulting HTML files all contain the same content. The file names match the names of my vault markdown files, but the contents are all duplicated from one of the files selected for export.

export

Reproduction

For me this occurs when exporting via the button in the ribbon, or using the context menu. It occurs when exporting the entire vault or a smaller number of files.

Last Working Version

No response

Version

1.8.01

Operating System

macOS Sonoma 14.4.1

Obsidian Version

Current: 1.5.12, Installer: 1.4.16

Which browsers can you reproduce this in?

No response

Relevant log output

Log:
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[WARNING]   No existing export metadata found. All files will be exported.
[WARNING]   No existing search index found. All files will be exported.
[WARNING]   No existing RSS feed found. All files will be exported.
[INFO]  Closing render window
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[WARNING]   No existing export metadata found. All files will be exported.
[WARNING]   No existing search index found. All files will be exported.
[WARNING]   No existing RSS feed found. All files will be exported.
[INFO]  Using "brutalism" header because it was very similar to the file's title.
[INFO]  Using "brutalism" header as title because it was H1 at the top of the page
[INFO]  Using "brutalism" header as title because it was H1 at the top of the page
[INFO]  Using "brutalism" header as title because it was H1 at the top of the page
[INFO]  Using "brutalism" header as title because it was H1 at the top of the page
[INFO]  Using "brutalism" header as title because it was H1 at the top of the page
[INFO]  Using "brutalism" header as title because it was H1 at the top of the page
[INFO]  Closing render window
[WARNING]   No existing export metadata found. All files will be exported.
[WARNING]   No existing search index found. All files will be exported.
[INFO]  Closing render window
[WARNING]   No existing export metadata found. All files will be exported.
[WARNING]   No existing search index found. All files will be exported.
[INFO]  Closing render window
[WARNING]   No existing export metadata found. All files will be exported.
[WARNING]   No existing search index found. All files will be exported.
[INFO]  Using "postmodernism" header because it was very similar to the file's title.
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Closing render window
[WARNING]   No existing export metadata found. All files will be exported.
[WARNING]   No existing search index found. All files will be exported.
[INFO]  Using "postmodernism" header because it was very similar to the file's title.
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Using "postmodernism" header as title because it was H1 at the top of the page
[INFO]  Closing render window

Settings:
    settingsVersion ------------- 1.8.01
    makeOfflineCompatible         false
    inlineAssets ---------------- false
    includePluginCSS              1 plugins included
    includeSvelteCSS ------------ true
    titleProperty                 title
    customHeadContentPath -------
    faviconPath                  
    documentWidth --------------- 40em
    sidebarWidth                  20em
    minOutlineCollapse ---------- 2
    startOutlineCollapsed         false
    allowFoldingHeadings -------- true
    allowFoldingLists             true
    allowResizingSidebars ------- true
    logLevel                      warning
    minifyHTML ------------------ false
    makeNamesWebStyle             true
    onlyExportModified ---------- true
    deleteOldFiles                true
    addThemeToggle -------------- false
    addOutline                    false
    addFileNav ------------------ true
    addSearchBar                  true
    addGraphView ---------------- true
    addTitle                      true
    addRSSFeed ------------------ false
    siteURL                      
    authorName ------------------
    vaultTitle                    Notes
    exportPreset ---------------- website
    openAfterExport               false
    graphAttractionForce -------- 1
    graphLinkLength               10
    graphRepulsionForce --------- 150
    graphCentralForce             3
    graphEdgePruning ------------ 100
    graphMinNodeSize              3
    graphMaxNodeSize ------------ 7
    showDefaultTreeIcons          false
    emojiStyle ------------------ Native
    defaultFileIcon               lucide//file
    defaultFolderIcon ----------- lucide//folder
    defaultMediaIcon              lucide//file-image
    exportPath ------------------ /Users/eca/Desktop/Export Test
    filesToExport                 6
    inlineCSS ------------------- false
    inlineJS                      false
    inlineImages ---------------- false
    sidebarsAlwaysCollapsible     false
    addFilenameTitle ------------ true
    customLineWidth              
    contentWidth ----------------
    incrementalExport             false
    deleteOldExportedFiles ------ false
    addDarkModeToggle             true
    includeOutline -------------- false
    includeGraphView              true
    includeFileTree ------------- true
    beautifyHTML                  false
    dataviewBlockWaitTime ------- 700
    showWarningsInExportLog       true
    lastExportPath -------------- /Users/eca (Deleted)/Desktop/Test

Enabled Plugins:
    Obsidian42 - BRAT
    Opener
    Text Format
    Webpage HTML Export

Additional Info

No response

KosmosisDire commented 2 months ago

Hey, I just released a beta version that might address this. If you could try it out and let me know if this issue is fixed and if you find any other issues. There are instructions for installing the beta in the readme :) Thanks!

ericcarl commented 6 days ago

Thanks! Unfortunately I still experience the bug with the beta. It behaves a little different depending on the Export Mode chosen:

KosmosisDire commented 1 day ago

@ericcarl Hi thanks, I have never been able to replicate this issue. If you could create a minimum reproduction or provide an exact enironment in which I can be guarenteed to reproduce this behavior, that is what I need to be able to fix this. Thanks!