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
693 stars 58 forks source link

[Bug]: When exporting several files, all pages display the same content #436

Open Hitumi opened 1 month ago

Hitumi commented 1 month ago

What happened?

When exporting several files, all pages display the same content. The titles are correct, but the contents are all the same as the first page.

截屏2024-05-19 00 17 24 截屏2024-05-19 00 17 33 截屏2024-05-19 00 17 36 截屏2024-05-19 00 17 42

Reproduction

It happens when exporting several files and the whole vault, and it seems that it has nothing to do with the browsers.

Last Working Version

No response

Version

1.8.01

Operating System

macOS Sonama 14.2.1 (23C71)

Obsidian Version

1.5.12

Which browsers can you reproduce this in?

Safari

Relevant log output

Log:
[INFO]  Including stylesheet: css-settings-manager
[WARNING]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[WARNING]   No existing search index found. All files will be exported.
[INFO]  Closing render window
[WARNING]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[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]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[WARNING]   No existing search index found. All files will be exported.
[INFO]  No old files to delete
[INFO]  Closing render window
[WARNING]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[WARNING]   No existing search index found. All files will be exported.
[INFO]  Closing render window
[WARNING]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[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]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[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 "js简介" header as title because it was H1 at the top of the page
[INFO]  Closing render window
[WARNING]   The Banner plugin version 2.0.5 or higher is required for full support. You have version 1.3.3.
[WARNING]   Creating an RSS feed requires a site url to be set in the export settings.
[INFO]  Including stylesheet: css-settings-manager
[INFO]  Including stylesheet: svelte-pcimu8-style
[INFO]  Including stylesheet: svelte-1vwr9dd-style
[INFO]  Including stylesheet: svelte-156w7na-style
[INFO]  Including stylesheet: svelte-egt0yd-style
[INFO]  Including stylesheet: svelte-q3wqg9-style
[INFO]  Including stylesheet: ADMONITIONS_CUSTOM_STYLE_SHEET
[INFO]  Including stylesheet: svelte-1widvzq-style
[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

Settings:
    settingsVersion --------- 1.8.01
    makeOfflineCompatible     false
    inlineAssets ------------ true
    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 -------------- true
    makeNamesWebStyle         false
    onlyExportModified ------ true
    deleteOldFiles            true
    addThemeToggle ---------- true
    addOutline                true
    addFileNav -------------- true
    addSearchBar              false
    addGraphView ------------ false
    addTitle                  true
    addRSSFeed -------------- true
    siteURL                  
    authorName --------------
    vaultTitle                Obsidian Vault
    exportPreset ------------ documents
    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/wangling/Desktop
    filesToExport             0

Enabled Plugins:
    Editing Toolbar
    增强编辑
    Full Calendar
    Calendar
    Admonition
    Table Extended
    Multi-Column Markdown
    Dataview
    Natural Language Dates
    Obsidian Columns
    Banners
    Templater
    Style Settings
    Hotkeys for specific files
    QuickAdd
    Workspaces Plus
    React Components
    Buttons
    Force note view mode
    Waypoint
    Remember cursor position
    Homepage
    Fast Image Cleaner
    Charts
    Any Block
    Contribution Graph
    Better footnote
    Webpage HTML Export

Additional Info

No response

KosmosisDire commented 1 month ago

Can you try exporting with the online web export rather than the local documents preset? I want to see if that makes any change to this bug happening

Hitumi commented 1 month ago

Can you try exporting with the online web export rather than the local documents preset? I want to see if that makes any change to this bug happening

Sorry, I don't have a web server, but it's remains the same when I try to open the web export version locally, so does the raw html file.

截屏2024-05-19 11 31 54 截屏2024-05-19 11 32 06
KosmosisDire commented 1 month ago

Interesting, can you try this in a sandbox vault? Create a small example with only two notes in the vault for example and no other plugins installed?

Hitumi commented 1 month ago

It works in the sandbox!!! Then I tried to reinstall several plugins, and now it can work, thx!!! Sorry for the interruption. ps: I think you need my plugins for improvement

截屏2024-05-19 14 38 17 截屏2024-05-19 14 38 24
Hitumi commented 1 month ago

But I still wonder why it will display the same content yesterday. I opened it with vs code, when I tried to open the linked file in one of the pages, it said that the file cannot be found(?) But the truth is, they are all in the same folder. It's interesting.

KosmosisDire commented 1 month ago

Very strange, I'm glad it's working now though! Thank you!